~ubuntu-branches/ubuntu/natty/eglibc/natty-security

« back to all changes in this revision

Viewing changes to io/sys/stat.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-05-28 14:19:11 UTC
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100528141911-l57usi5f9py1d40x
Tags: upstream-2.12~20100519
ImportĀ upstreamĀ versionĀ 2.12~20100519

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1991, 1992, 1995-2004, 2005, 2006, 2007, 2009
 
1
/* Copyright (C) 1991, 1992, 1995-2004, 2005, 2006, 2007, 2009, 2010
2
2
   Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
 
29
29
#include <bits/types.h>         /* For __mode_t and __dev_t.  */
30
30
 
31
31
#if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \
32
 
         || defined __USE_ATFILE
 
32
         || defined __USE_ATFILE
33
33
# if defined __USE_XOPEN || defined __USE_XOPEN2K
34
34
#  define __need_time_t
35
35
# endif
143
143
# define S_ISLNK(mode)  0
144
144
#endif
145
145
 
146
 
#if (defined __USE_BSD || defined __USE_UNIX98) \
 
146
#if (defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K) \
147
147
    && defined __S_IFSOCK
148
148
# define S_ISSOCK(mode) __S_ISTYPE((mode), __S_IFSOCK)
 
149
#elif defined __USE_XOPEN2K
 
150
# define S_ISSOCK(mode) 0
149
151
#endif
150
152
 
151
153
/* These are from POSIX.1b.  If the objects are not implemented using separate
293
295
#endif
294
296
 
295
297
/* Set file access permissions of the file FD is open on to MODE.  */
296
 
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
 
298
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
297
299
extern int fchmod (int __fd, __mode_t __mode) __THROW;
298
300
#endif
299
301