Fixed divots that I created when I moved prototypes of group_from_gid
and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp
This commit is contained in:
parent
a448c26154
commit
576541a9e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90878
@ -58,8 +58,10 @@ static char sccsid[] = "@(#)ls.c 8.5 (Berkeley) 4/2/94";
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fts.h>
|
||||
#include <grp.h>
|
||||
#include <limits.h>
|
||||
#include <locale.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -51,10 +51,12 @@ static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <grp.h>
|
||||
#include <langinfo.h>
|
||||
#include <locale.h>
|
||||
#include <math.h>
|
||||
#include <nlist.h>
|
||||
#include <pwd.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -41,9 +41,10 @@
|
||||
.Sh LIBRARY
|
||||
.Lb libc
|
||||
.Sh SYNOPSIS
|
||||
.In stdlib.h
|
||||
.In pwd.h
|
||||
.Ft char *
|
||||
.Fn user_from_uid "unsigned long uid" "int nouser"
|
||||
.In grp.h
|
||||
.Ft char *
|
||||
.Fn group_from_gid "unsigned long gid" "int nogroup"
|
||||
.Sh DESCRIPTION
|
||||
|
@ -40,9 +40,9 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <grp.h>
|
||||
#include <string.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <utmp.h>
|
||||
|
||||
#define NCACHE 64 /* power of 2 */
|
||||
|
@ -45,13 +45,19 @@ static const char rcsid[] =
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fts.h>
|
||||
#include <grp.h>
|
||||
#include <langinfo.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <utmp.h>
|
||||
|
||||
#include "find.h"
|
||||
#include "extern.h"
|
||||
|
||||
/* Derived from the print routines in the ls(1) source code. */
|
||||
|
||||
static void printlink __P((char *));
|
||||
@ -63,7 +69,7 @@ printlong(name, accpath, sb)
|
||||
char *accpath; /* current valid path to filename */
|
||||
struct stat *sb; /* stat buffer */
|
||||
{
|
||||
char modep[15], *user_from_uid(), *group_from_gid();
|
||||
char modep[15];
|
||||
|
||||
(void)printf("%6lu %4qd ", (u_long) sb->st_ino, sb->st_blocks);
|
||||
(void)strmode(sb->st_mode, modep);
|
||||
|
@ -33,10 +33,12 @@ static const char rcsid[] =
|
||||
#include <assert.h>
|
||||
#include <err.h>
|
||||
#include <fcntl.h>
|
||||
#include <grp.h>
|
||||
#include <kvm.h>
|
||||
#include <nlist.h>
|
||||
#include <limits.h>
|
||||
#include <paths.h>
|
||||
#include <pwd.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -52,6 +52,7 @@ static const char rcsid[] =
|
||||
#include <ctype.h>
|
||||
#include <err.h>
|
||||
#include <fcntl.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -39,6 +39,7 @@ static const char rcsid[] =
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
Loading…
Reference in New Issue
Block a user