Fri Jan 22 23:31:30 2016 UTC ()
Uses __GNUC_PREREQ__, needs sys/cdefs.h.


(dholland)
diff -r1.29 -r1.30 src/sys/sys/dirent.h

cvs diff -r1.29 -r1.30 src/sys/sys/dirent.h (expand / switch to unified diff)

--- src/sys/sys/dirent.h 2015/02/26 02:05:54 1.29
+++ src/sys/sys/dirent.h 2016/01/22 23:31:30 1.30
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: dirent.h,v 1.29 2015/02/26 02:05:54 dholland Exp $ */ 1/* $NetBSD: dirent.h,v 1.30 2016/01/22 23:31:30 dholland Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1989, 1993 4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -24,26 +24,27 @@ @@ -24,26 +24,27 @@
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 * 30 *
31 * @(#)dirent.h 8.3 (Berkeley) 8/10/94 31 * @(#)dirent.h 8.3 (Berkeley) 8/10/94
32 */ 32 */
33 33
34#ifndef _SYS_DIRENT_H_ 34#ifndef _SYS_DIRENT_H_
35#define _SYS_DIRENT_H_ 35#define _SYS_DIRENT_H_
36 36
 37#include <sys/cdefs.h>
37#include <sys/featuretest.h> 38#include <sys/featuretest.h>
38 39
39/* 40/*
40 * The dirent structure defines the format of directory entries returned by 41 * The dirent structure defines the format of directory entries returned by
41 * the getdents(2) system call. 42 * the getdents(2) system call.
42 * 43 *
43 * A directory entry has a struct dirent at the front of it, containing its 44 * A directory entry has a struct dirent at the front of it, containing its
44 * inode number, the length of the entry, and the length of the name 45 * inode number, the length of the entry, and the length of the name
45 * contained in the entry. These are followed by the name padded to  46 * contained in the entry. These are followed by the name padded to
46 * _DIRENT_ALIGN() byte boundary with null bytes. All names are guaranteed 47 * _DIRENT_ALIGN() byte boundary with null bytes. All names are guaranteed
47 * NUL terminated. The maximum length of a name in a directory is MAXNAMLEN. 48 * NUL terminated. The maximum length of a name in a directory is MAXNAMLEN.
48 */ 49 */
49struct dirent { 50struct dirent {