aboutsummaryrefslogtreecommitdiffstats
path: root/src/chown-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/chown-core.h')
-rw-r--r--src/chown-core.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/chown-core.h b/src/chown-core.h
index 024e717ed..bd5d37b01 100644
--- a/src/chown-core.h
+++ b/src/chown-core.h
@@ -19,6 +19,7 @@
# define CHOWN_CORE_H
# include "dev-ino.h"
+# include <stdlib.h>
enum Change_status
{
@@ -72,15 +73,20 @@ void
chopt_free (struct Chown_option *);
char *
-gid_to_name (gid_t) _GL_ATTRIBUTE_MALLOC;
+gid_to_name (gid_t)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
+ _GL_ATTRIBUTE_RETURNS_NONNULL;
char *
-uid_to_name (uid_t) _GL_ATTRIBUTE_MALLOC;
+uid_to_name (uid_t)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
+ _GL_ATTRIBUTE_RETURNS_NONNULL;
bool
chown_files (char **files, int bit_flags,
uid_t uid, gid_t gid,
uid_t required_uid, gid_t required_gid,
- struct Chown_option const *chopt);
+ struct Chown_option const *chopt)
+ _GL_ATTRIBUTE_NONNULL ();
#endif /* CHOWN_CORE_H */