getdirentries.2 (165903) | getdirentries.2 (231564) |
---|---|
1.\" Copyright (c) 1989, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)getdirentries.2 8.2 (Berkeley) 5/3/95 | 1.\" Copyright (c) 1989, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)getdirentries.2 8.2 (Berkeley) 5/3/95 |
29.\" $FreeBSD: head/lib/libc/sys/getdirentries.2 165903 2007-01-09 00:28:16Z imp $ | 29.\" $FreeBSD: head/lib/libc/sys/getdirentries.2 231564 2012-02-12 18:29:56Z ed $ |
30.\" 31.Dd May 3, 1995 32.Dt GETDIRENTRIES 2 33.Os 34.Sh NAME 35.Nm getdirentries , 36.Nm getdents 37.Nd "get directory entries in a file system independent format" --- 28 unchanged lines hidden (view full) --- 66.Xr stat 2 . 67Some file systems may not support these system calls 68with buffers smaller than this size. 69.Pp 70The data in the buffer is a series of 71.Vt dirent 72structures each containing the following entries: 73.Bd -literal -offset indent | 30.\" 31.Dd May 3, 1995 32.Dt GETDIRENTRIES 2 33.Os 34.Sh NAME 35.Nm getdirentries , 36.Nm getdents 37.Nd "get directory entries in a file system independent format" --- 28 unchanged lines hidden (view full) --- 66.Xr stat 2 . 67Some file systems may not support these system calls 68with buffers smaller than this size. 69.Pp 70The data in the buffer is a series of 71.Vt dirent 72structures each containing the following entries: 73.Bd -literal -offset indent |
74u_int32_t d_fileno; 75u_int16_t d_reclen; 76u_int8_t d_type; 77u_int8_t d_namlen; | 74uint32_t d_fileno; 75uint16_t d_reclen; 76uint8_t d_type; 77uint8_t d_namlen; |
78char d_name[MAXNAMELEN + 1]; /* see below */ 79.Ed 80.Pp 81The 82.Fa d_fileno 83entry is a number which is unique for each 84distinct file in the file system. 85Files that are linked by hard links (see --- 100 unchanged lines hidden --- | 78char d_name[MAXNAMELEN + 1]; /* see below */ 79.Ed 80.Pp 81The 82.Fa d_fileno 83entry is a number which is unique for each 84distinct file in the file system. 85Files that are linked by hard links (see --- 100 unchanged lines hidden --- |