Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/sys/getdirentries.2
Show All 34 Lines | |||||
.Nm getdirentries , | .Nm getdirentries , | ||||
.Nm getdents | .Nm getdents | ||||
.Nd "get directory entries in a file system independent format" | .Nd "get directory entries in a file system independent format" | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/types.h | .In sys/types.h | ||||
.In dirent.h | .In dirent.h | ||||
.Ft int | .Ft ssize_t | ||||
.Fn getdirentries "int fd" "char *buf" "int nbytes" "long *basep" | .Fn getdirentries "int fd" "char *buf" "size_t nbytes" "off_t *basep" | ||||
.Ft int | .Ft ssize_t | ||||
.Fn getdents "int fd" "char *buf" "int nbytes" | .Fn getdents "int fd" "char *buf" "size_t nbytes" | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Fn getdirentries | .Fn getdirentries | ||||
and | and | ||||
.Fn getdents | .Fn getdents | ||||
system calls read directory entries from the directory | system calls read directory entries from the directory | ||||
referenced by the file descriptor | referenced by the file descriptor | ||||
.Fa fd | .Fa fd | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |