diff options
author | Warner Losh <imp@FreeBSD.org> | 2002-02-14 01:59:47 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2002-02-14 01:59:47 +0000 |
commit | fc69394f0a37d10251c40a43effda0cff3889ec4 (patch) | |
tree | eeb67e79cff6a9d2211b5a4a193d0f32f920619a /bin | |
parent | 5244eac968e7d5762b4a7a01d7cfaf333608df9a (diff) | |
download | src-fc69394f0a37d10251c40a43effda0cff3889ec4.tar.gz src-fc69394f0a37d10251c40a43effda0cff3889ec4.zip |
Move user_from_uid to pwd.h
Move group_from_gid to grp.h
Remove from stdlib.h
Make the prototypes match the code
Fix rm and mv to include new files.
NetBSD has these defined in those files, and others too that I've not
done.
Approved by: terminal room kabal
Reviewed by: jhb, phk
Notes
Notes:
svn path=/head/; revision=90644
Diffstat (limited to 'bin')
-rw-r--r-- | bin/mv/mv.c | 2 | ||||
-rw-r--r-- | bin/rm/rm.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 8a2fb2b4376b..25f56a37869e 100644 --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -57,7 +57,9 @@ static const char rcsid[] = #include <err.h> #include <errno.h> #include <fcntl.h> +#include <grp.h> #include <limits.h> +#include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/bin/rm/rm.c b/bin/rm/rm.c index eee413537483..54617241fbb9 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -54,6 +54,8 @@ static const char rcsid[] = #include <errno.h> #include <fcntl.h> #include <fts.h> +#include <grp.h> +#include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> |