projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new copyright notice
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
scandir.3
diff --git
a/usr/src/lib/libc/gen/scandir.3
b/usr/src/lib/libc/gen/scandir.3
index
9893c97
..
8ad2c5c
100644
(file)
--- a/
usr/src/lib/libc/gen/scandir.3
+++ b/
usr/src/lib/libc/gen/scandir.3
@@
-1,13
+1,14
@@
.\" Copyright (c) 1983 Regents of the University of California.
.\" Copyright (c) 1983 Regents of the University of California.
-.\" All rights reserved. The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" All rights reserved.
.\"
.\"
-.\"
@(#)scandir.3 5.1 (Berkeley) %G
%
+.\"
%sccs.include.redist.man
%
.\"
.\"
-.TH SCANDIR 3 "19 January 1983"
+.\" @(#)scandir.3 6.5 (Berkeley) %G%
+.\"
+.TH SCANDIR 3 ""
.UC 5
.SH NAME
.UC 5
.SH NAME
-scandir \- scan a directory
+scandir
, alphasort
\- scan a directory
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
@@
-15,7
+16,7
@@
scandir \- scan a directory
.PP
.B scandir(dirname, namelist, select, compar)
.B char *dirname;
.PP
.B scandir(dirname, namelist, select, compar)
.B char *dirname;
-.B struct direct *
(*namelist[])
;
+.B struct direct *
**namelist
;
.B int (*select)();
.B int (*compar)();
.PP
.B int (*select)();
.B int (*compar)();
.PP
@@
-29,8
+30,9
@@
reads the directory
and builds an array of pointers to directory
entries using
.IR malloc (3).
and builds an array of pointers to directory
entries using
.IR malloc (3).
-It returns the number of entries in the array and a pointer to the
-array through
+It returns the number of entries in the array.
+A pointer to the array of directory entries is stored in the location
+referenced by
.IR namelist .
.PP
The
.IR namelist .
.PP
The