Penguin
Blame: getdirentries(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of getdirentries(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 GETDIRENTRIES
2 !!!GETDIRENTRIES
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 ERRORS
8 SEE ALSO
9 ----
10 !!NAME
11
12
13 getdirentries - get directory entries in a filesystem independent format
14 !!SYNOPSIS
15
16
17 __#define _BSD_SOURCE__ or __#define _SVID_SOURCE
18 #include
19
20
21 __ssize_t getdirentries(int__ ''fd''__, char
22 *__''buf''__, size_t__ ''nbytes'' __, off_t
23 *__''basep''__);__
24 !!DESCRIPTION
25
26
27 Read directory entries from the directory specified by
28 ''fd'' into ''buf''. At most ''nbytes'' are read.
29 Reading starts at offset *''basep'', and *''basep'' is
30 updated with the new position after reading.
31 !!RETURN VALUE
32
33
34 __getdirentries__ returns the number of bytes read or
35 zero when at the end of the directory. If an error occurs,
36 -1 is returned, and ''errno'' is set
37 appropriately.
38 !!ERRORS
39
40
41 See the Linux library source code for details.
42 !!SEE ALSO
43
44
45 open(2), lseek(2)
46 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.