dirent.h (2165) | dirent.h (8876) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)dirent.h 8.1 (Berkeley) 6/2/93 | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)dirent.h 8.1 (Berkeley) 6/2/93 |
34 * $Id: dirent.h,v 1.2 1994/08/02 07:52:47 davidg Exp $ | 34 * $Id: dirent.h,v 1.3 1994/08/21 04:41:38 paul Exp $ |
35 */ 36 37#ifndef _SYS_DIRENT_H_ 38#define _SYS_DIRENT_H_ 39 40/* | 35 */ 36 37#ifndef _SYS_DIRENT_H_ 38#define _SYS_DIRENT_H_ 39 40/* |
41 * The dirent structure defines the format of directory entries returned by | 41 * The dirent structure defines the format of directory entries returned by |
42 * the getdirentries(2) system call. 43 * 44 * A directory entry has a struct dirent at the front of it, containing its 45 * inode number, the length of the entry, and the length of the name 46 * contained in the entry. These are followed by the name padded to a 4 47 * byte boundary with null bytes. All names are guaranteed null terminated. 48 * The maximum length of a name in a directory is MAXNAMLEN. 49 */ --- 33 unchanged lines hidden --- | 42 * the getdirentries(2) system call. 43 * 44 * A directory entry has a struct dirent at the front of it, containing its 45 * inode number, the length of the entry, and the length of the name 46 * contained in the entry. These are followed by the name padded to a 4 47 * byte boundary with null bytes. All names are guaranteed null terminated. 48 * The maximum length of a name in a directory is MAXNAMLEN. 49 */ --- 33 unchanged lines hidden --- |