diff options
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -181,6 +181,8 @@ int opt_match(const char **opts, const char *term); | |||
181 | char *read_passphrase(const char *, int); | 181 | char *read_passphrase(const char *, int); |
182 | int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2))); | 182 | int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2))); |
183 | 183 | ||
184 | int secure_permissions(struct stat *st, uid_t uid); | ||
185 | |||
184 | #define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) | 186 | #define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) |
185 | #define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b)) | 187 | #define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b)) |
186 | #define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) | 188 | #define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) |