LCOV - app.info - /tools/gcc-4.5/lib/gcc/i686-pc-linux-gnu/4.5.2/include-fixed/sys/stat.h

LCOV - code coverage report
| Current view: | directory - tools/gcc-4.5/lib/gcc/i686-pc-linux-gnu/4.5.2/include-fixed/sys - stat.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 10 | 4 | 40.0 %
| Date: | 2012-04-07 | Functions: | 5 | 2 | 40.0 %

           1                 : /*  DO NOT EDIT THIS FILE.
           2                 :
           3                 :     It has been auto-edited by fixincludes from:
           4                 :
           5                 :         "/usr/include/sys/stat.h"
           6                 :
           7                 :     This had to be done to correct non-standard usages in the
           8                 :     original, manufacturer supplied header file.  */
           9                 :
          10                 : /* Copyright (C) 1991,1992,1995-2004,2005,2006 Free Software Foundation, Inc.
          11                 :    This file is part of the GNU C Library.
          12                 :
          13                 :    The GNU C Library is free software; you can redistribute it and/or
          14                 :    modify it under the terms of the GNU Lesser General Public
          15                 :    License as published by the Free Software Foundation; either
          16                 :    version 2.1 of the License, or (at your option) any later version.
          17                 :
          18                 :    The GNU C Library is distributed in the hope that it will be useful,
          19                 :    but WITHOUT ANY WARRANTY; without even the implied warranty of
          20                 :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
          21                 :    Lesser General Public License for more details.
          22                 :
          23                 :    You should have received a copy of the GNU Lesser General Public
          24                 :    License along with the GNU C Library; if not, write to the Free
          25                 :    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
          26                 :    02111-1307 USA.  */
          27                 :
          28                 : /*
          29                 :  *      POSIX Standard: 5.6 File Characteristics        <sys/stat.h>
          30                 :  */
          31                 :
          32                 : #ifndef _SYS_STAT_H
          33                 : #define _SYS_STAT_H     1
          34                 :
          35                 : #include <features.h>
          36                 :
          37                 : #include <bits/types.h>           /* For __mode_t and __dev_t.  */
          38                 :
          39                 : #if defined __USE_XOPEN || defined __USE_MISC
          40                 : # if defined __USE_XOPEN || defined __USE_XOPEN2K
          41                 : #  define __need_time_t
          42                 : # endif
          43                 : # ifdef __USE_MISC
          44                 : #  define __need_timespec
          45                 : # endif
          46                 : # include <time.h>                /* For time_t resp. timespec.  */
          47                 : #endif
          48                 :
          49                 : #if defined __USE_XOPEN || defined __USE_XOPEN2K
          50                 : /* The Single Unix specification says that some more types are
          51                 :    available here.  */
          52                 : # ifndef __dev_t_defined
          53                 : typedef __dev_t dev_t;
          54                 : #  define __dev_t_defined
          55                 : # endif
          56                 :
          57                 : # ifndef __gid_t_defined
          58                 : typedef __gid_t gid_t;
          59                 : #  define __gid_t_defined
          60                 : # endif
          61                 :
          62                 : # ifndef __ino_t_defined
          63                 : #  ifndef __USE_FILE_OFFSET64
          64                 : typedef __ino_t ino_t;
          65                 : #  else
          66                 : typedef __ino64_t ino_t;
          67                 : #  endif
          68                 : #  define __ino_t_defined
          69                 : # endif
          70                 :
          71                 : # ifndef __mode_t_defined
          72                 : typedef __mode_t mode_t;
          73                 : #  define __mode_t_defined
          74                 : # endif
          75                 :
          76                 : # ifndef __nlink_t_defined
          77                 : typedef __nlink_t nlink_t;
          78                 : #  define __nlink_t_defined
          79                 : # endif
          80                 :
          81                 : # ifndef __off_t_defined
          82                 : #  ifndef __USE_FILE_OFFSET64
          83                 : typedef __off_t off_t;
          84                 : #  else
          85                 : typedef __off64_t off_t;
          86                 : #  endif
          87                 : #  define __off_t_defined
          88                 : # endif
          89                 :
          90                 : # ifndef __uid_t_defined
          91                 : typedef __uid_t uid_t;
          92                 : #  define __uid_t_defined
          93                 : # endif
          94                 : #endif  /* X/Open */
          95                 :
          96                 : #ifdef __USE_UNIX98
          97                 : # ifndef __blkcnt_t_defined
          98                 : #  ifndef __USE_FILE_OFFSET64
          99                 : typedef __blkcnt_t blkcnt_t;
         100                 : #  else
         101                 : typedef __blkcnt64_t blkcnt_t;
         102                 : #  endif
         103                 : #  define __blkcnt_t_defined
         104                 : # endif
         105                 :
         106                 : # ifndef __blksize_t_defined
         107                 : typedef __blksize_t blksize_t;
         108                 : #  define __blksize_t_defined
         109                 : # endif
         110                 : #endif  /* Unix98 */
         111                 :
         112                 : __BEGIN_DECLS
         113                 :
         114                 : #include <bits/stat.h>
         115                 :
         116                 : #if defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN
         117                 : # define S_IFMT         __S_IFMT
         118                 : # define S_IFDIR        __S_IFDIR
         119                 : # define S_IFCHR        __S_IFCHR
         120                 : # define S_IFBLK        __S_IFBLK
         121                 : # define S_IFREG        __S_IFREG
         122                 : # ifdef __S_IFIFO
         123                 : #  define S_IFIFO       __S_IFIFO
         124                 : # endif
         125                 : # ifdef __S_IFLNK
         126                 : #  define S_IFLNK       __S_IFLNK
         127                 : # endif
         128                 : # if (defined __USE_BSD || defined __USE_MISC || defined __USE_UNIX98) \
         129                 :      && defined __S_IFSOCK
         130                 : #  define S_IFSOCK      __S_IFSOCK
         131                 : # endif
         132                 : #endif
         133                 :
         134                 : /* Test macros for file types.  */
         135                 :
         136                 : #define __S_ISTYPE(mode, mask)  (((mode) & __S_IFMT) == (mask))
         137                 :
         138                 : #define S_ISDIR(mode)    __S_ISTYPE((mode), __S_IFDIR)
         139                 : #define S_ISCHR(mode)    __S_ISTYPE((mode), __S_IFCHR)
         140                 : #define S_ISBLK(mode)    __S_ISTYPE((mode), __S_IFBLK)
         141                 : #define S_ISREG(mode)    __S_ISTYPE((mode), __S_IFREG)
         142                 : #ifdef __S_IFIFO
         143                 : # define S_ISFIFO(mode)  __S_ISTYPE((mode), __S_IFIFO)
         144                 : #endif
         145                 : #ifdef __S_IFLNK
         146                 : # define S_ISLNK(mode)   __S_ISTYPE((mode), __S_IFLNK)
         147                 : #endif
         148                 :
         149                 : #if defined __USE_BSD && !defined __S_IFLNK
         150                 : # define S_ISLNK(mode)  0
         151                 : #endif
         152                 :
         153                 : #if (defined __USE_BSD || defined __USE_UNIX98) \
         154                 :     && defined __S_IFSOCK
         155                 : # define S_ISSOCK(mode) __S_ISTYPE((mode), __S_IFSOCK)
         156                 : #endif
         157                 :
         158                 : /* These are from POSIX.1b.  If the objects are not implemented using separate
         159                 :    distinct file types, the macros always will evaluate to zero.  Unlike the
         160                 :    other S_* macros the following three take a pointer to a `struct stat'
         161                 :    object as the argument.  */
         162                 : #ifdef  __USE_POSIX199309
         163                 : # define S_TYPEISMQ(buf) __S_TYPEISMQ(buf)
         164                 : # define S_TYPEISSEM(buf) __S_TYPEISSEM(buf)
         165                 : # define S_TYPEISSHM(buf) __S_TYPEISSHM(buf)
         166                 : #endif
         167                 :
         168                 :
         169                 : /* Protection bits.  */
         170                 :
         171                 : #define S_ISUID __S_ISUID       /* Set user ID on execution.  */
         172                 : #define S_ISGID __S_ISGID       /* Set group ID on execution.  */
         173                 :
         174                 : #if defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN
         175                 : /* Save swapped text after use (sticky bit).  This is pretty well obsolete.  */
         176                 : # define S_ISVTX        __S_ISVTX
         177                 : #endif
         178                 :
         179                 : #define S_IRUSR __S_IREAD       /* Read by owner.  */
         180                 : #define S_IWUSR __S_IWRITE      /* Write by owner.  */
         181                 : #define S_IXUSR __S_IEXEC       /* Execute by owner.  */
         182                 : /* Read, write, and execute by owner.  */
         183                 : #define S_IRWXU (__S_IREAD|__S_IWRITE|__S_IEXEC)
         184                 :
         185                 : #if defined __USE_MISC && defined __USE_BSD
         186                 : # define S_IREAD        S_IRUSR
         187                 : # define S_IWRITE       S_IWUSR
         188                 : # define S_IEXEC        S_IXUSR
         189                 : #endif
         190                 :
         191                 : #define S_IRGRP (S_IRUSR >> 3)    /* Read by group.  */
         192                 : #define S_IWGRP (S_IWUSR >> 3)    /* Write by group.  */
         193                 : #define S_IXGRP (S_IXUSR >> 3)    /* Execute by group.  */
         194                 : /* Read, write, and execute by group.  */
         195                 : #define S_IRWXG (S_IRWXU >> 3)
         196                 :
         197                 : #define S_IROTH (S_IRGRP >> 3)    /* Read by others.  */
         198                 : #define S_IWOTH (S_IWGRP >> 3)    /* Write by others.  */
         199                 : #define S_IXOTH (S_IXGRP >> 3)    /* Execute by others.  */
         200                 : /* Read, write, and execute by others.  */
         201                 : #define S_IRWXO (S_IRWXG >> 3)
         202                 :
         203                 :
         204                 : #ifdef  __USE_BSD
         205                 : /* Macros for common mode bit masks.  */
         206                 : # define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
         207                 : # define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
         208                 : # define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
         209                 :
         210                 : # define S_BLKSIZE      512     /* Block size for `st_blocks'.  */
         211                 : #endif
         212                 :
         213                 :
         214                 : #ifndef __USE_FILE_OFFSET64
         215                 : /* Get file attributes for FILE and put them in BUF.  */
         216                 : #ifdef __GNUC_GNU_INLINE__
         217                 : extern
         218                 : #endif
         219                 : __inline__ int stat (__const char *__restrict __file,
         220                 :                  struct stat *__restrict __buf) __THROW __nonnull ((1, 2));
         221                 :
         222                 : /* Get file attributes for the file, device, pipe, or socket
         223                 :    that file descriptor FD is open on and put them in BUF.  */
         224                 : #ifdef __GNUC_GNU_INLINE__
         225                 : extern
         226                 : #endif
         227                 : __inline__ int fstat (int __fd, struct stat *__buf) __THROW __nonnull ((2));
         228                 : #else
         229                 : # ifdef __REDIRECT_NTH
         230                 : #ifdef __GNUC_GNU_INLINE__
         231                 : extern
         232                 : #endif
         233                 : __inline__ int __REDIRECT_NTH (stat, (__const char *__restrict __file,
         234                 :                                   struct stat *__restrict __buf), stat64)
         235                 :      __nonnull ((1, 2));
         236                 : #ifdef __GNUC_GNU_INLINE__
         237                 : extern
         238                 : #endif
         239                 : __inline__ int __REDIRECT_NTH (fstat, (int __fd, struct stat *__buf), fstat64)
         240                 :      __nonnull ((2));
         241                 : # else
         242                 : #  define stat stat64
         243                 : #  define fstat fstat64
         244                 : # endif
         245                 : #endif
         246                 : #ifdef __USE_LARGEFILE64
         247                 : #ifdef __GNUC_GNU_INLINE__
         248                 : extern
         249                 : #endif
         250                 : __inline__ int stat64 (__const char *__restrict __file,
         251                 :                    struct stat64 *__restrict __buf) __THROW __nonnull ((1, 2));
         252                 : #ifdef __GNUC_GNU_INLINE__
         253                 : extern
         254                 : #endif
         255                 : __inline__ int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2));
         256                 : #endif
         257                 :
         258                 : #ifdef __USE_ATFILE
         259                 : /* Similar to stat, get the attributes for FILE and put them in BUF.
         260                 :    Relative path names are interpreted relative to FD unless FD is
         261                 :    AT_FDCWD.  */
         262                 : # ifndef __USE_FILE_OFFSET64
         263                 : #ifdef __GNUC_GNU_INLINE__
         264                 : extern
         265                 : #endif
         266                 : __inline__ int fstatat (int __fd, __const char *__restrict __file,
         267                 :                     struct stat *__restrict __buf, int __flag)
         268                 :      __THROW __nonnull ((2, 3));
         269                 : # else
         270                 : #  ifdef __REDIRECT_NTH
         271                 : #ifdef __GNUC_GNU_INLINE__
         272                 : extern
         273                 : #endif
         274                 : __inline__ int __REDIRECT_NTH (fstatat, (int __fd, __const char *__restrict __file,
         275                 :                                      struct stat *__restrict __buf,
         276                 :                                      int __flag),
         277                 :                            fstatat64) __nonnull ((2, 3));
         278                 : #  else
         279                 : #   define fstatat fstatat64
         280                 : #  endif
         281                 : # endif
         282                 :
         283                 : #ifdef __GNUC_GNU_INLINE__
         284                 : extern
         285                 : #endif
         286                 : __inline__ int fstatat64 (int __fd, __const char *__restrict __file,
         287                 :                       struct stat64 *__restrict __buf, int __flag)
         288                 :      __THROW __nonnull ((2, 3));
         289                 : #endif
         290                 :
         291                 : #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
         292                 : # ifndef __USE_FILE_OFFSET64
         293                 : /* Get file attributes about FILE and put them in BUF.
         294                 :    If FILE is a symbolic link, do not follow it.  */
         295                 : #ifdef __GNUC_GNU_INLINE__
         296                 : extern
         297                 : #endif
         298                 : __inline__ int lstat (__const char *__restrict __file,
         299                 :                   struct stat *__restrict __buf) __THROW __nonnull ((1, 2));
         300                 : # else
         301                 : #  ifdef __REDIRECT_NTH
         302                 : #ifdef __GNUC_GNU_INLINE__
         303                 : extern
         304                 : #endif
         305                 : __inline__ int __REDIRECT_NTH (lstat,
         306                 :                            (__const char *__restrict __file,
         307                 :                             struct stat *__restrict __buf), lstat64)
         308                 :      __nonnull ((1, 2));
         309                 : #  else
         310                 : #   define lstat lstat64
         311                 : #  endif
         312                 : # endif
         313                 : # ifdef __USE_LARGEFILE64
         314                 : #ifdef __GNUC_GNU_INLINE__
         315                 : extern
         316                 : #endif
         317                 : __inline__ int lstat64 (__const char *__restrict __file,
         318                 :                     struct stat64 *__restrict __buf)
         319                 :      __THROW __nonnull ((1, 2));
         320                 : # endif
         321                 : #endif
         322                 :
         323                 : /* Set file access permissions for FILE to MODE.
         324                 :    If FILE is a symbolic link, this affects its target instead.  */
         325                 : extern int chmod (__const char *__file, __mode_t __mode)
         326                 :      __THROW __nonnull ((1));
         327                 :
         328                 : #ifdef __USE_BSD
         329                 : /* Set file access permissions for FILE to MODE.
         330                 :    If FILE is a symbolic link, this affects the link itself
         331                 :    rather than its target.  */
         332                 : extern int lchmod (__const char *__file, __mode_t __mode)
         333                 :      __THROW __nonnull ((1));
         334                 : #endif
         335                 :
         336                 : /* Set file access permissions of the file FD is open on to MODE.  */
         337                 : #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
         338                 : extern int fchmod (int __fd, __mode_t __mode) __THROW;
         339                 : #endif
         340                 :
         341                 : #ifdef __USE_ATFILE
         342                 : /* Set file access permissions of FILE relative to
         343                 :    the directory FD is open on.  */
         344                 : extern int fchmodat (int __fd, __const char *__file, __mode_t mode, int __flag)
         345                 :      __THROW __nonnull ((2)) __wur;
         346                 : #endif /* Use ATFILE.  */
         347                 :
         348                 :
         349                 :
         350                 : /* Set the file creation mask of the current process to MASK,
         351                 :    and return the old creation mask.  */
         352                 : extern __mode_t umask (__mode_t __mask) __THROW;
         353                 :
         354                 : #ifdef  __USE_GNU
         355                 : /* Get the current `umask' value without changing it.
         356                 :    This function is only available under the GNU Hurd.  */
         357                 : extern __mode_t getumask (void) __THROW;
         358                 : #endif
         359                 :
         360                 : /* Create a new directory named PATH, with permission bits MODE.  */
         361                 : extern int mkdir (__const char *__path, __mode_t __mode)
         362                 :      __THROW __nonnull ((1));
         363                 :
         364                 : #ifdef __USE_ATFILE
         365                 : /* Like mkdir, create a new directory with permission bits MODE.  But
         366                 :    interpret relative PATH names relative to the directory associated
         367                 :    with FD.  */
         368                 : extern int mkdirat (int __fd, __const char *__path, __mode_t __mode)
         369                 :      __THROW __nonnull ((2));
         370                 : #endif
         371                 :
         372                 : /* Create a device file named PATH, with permission and special bits MODE
         373                 :    and device number DEV (which can be constructed from major and minor
         374                 :    device numbers with the `makedev' macro above).  */
         375                 : #if defined __USE_MISC || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
         376                 : #ifdef __GNUC_GNU_INLINE__
         377                 : extern
         378                 : #endif
         379                 : __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
         380                 :      __THROW __nonnull ((1));
         381                 : #endif
         382                 :
         383                 : #ifdef __USE_ATFILE
         384                 : /* Like mknod, create a new device file with permission bits MODE and
         385                 :    device number DEV.  But interpret relative PATH names relative to
         386                 :    the directory associated with FD.  */
         387                 : #ifdef __GNUC_GNU_INLINE__
         388                 : extern
         389                 : #endif
         390                 : __inline__ int mknodat (int __fd, __const char *__path, __mode_t __mode,
         391                 :                     __dev_t __dev) __THROW __nonnull ((2));
         392                 : #endif
         393                 :
         394                 :
         395                 : /* Create a new FIFO named PATH, with permission bits MODE.  */
         396                 : extern int mkfifo (__const char *__path, __mode_t __mode)
         397                 :      __THROW __nonnull ((1));
         398                 :
         399                 : #ifdef __USE_ATFILE
         400                 : /* Like mkfifo, create a new FIFO with permission bits MODE.  But
         401                 :    interpret relative PATH names relative to the directory associated
         402                 :    with FD.  */
         403                 : extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode)
         404                 :      __THROW __nonnull ((2));
         405                 : #endif
         406                 :
         407                 : /* To allow the `struct stat' structure and the file type `mode_t'
         408                 :    bits to vary without changing shared library major version number,
         409                 :    the `stat' family of functions and `mknod' are in fact inline
         410                 :    wrappers around calls to `xstat', `fxstat', `lxstat', and `xmknod',
         411                 :    which all take a leading version-number argument designating the
         412                 :    data structure and bits used.  <bits/stat.h> defines _STAT_VER with
         413                 :    the version number corresponding to `struct stat' as defined in
         414                 :    that file; and _MKNOD_VER with the version number corresponding to
         415                 :    the S_IF* macros defined therein.  It is arranged that when not
         416                 :    inlined these function are always statically linked; that way a
         417                 :    dynamically-linked executable always encodes the version number
         418                 :    corresponding to the data structures it uses, so the `x' functions
         419                 :    in the shared library can adapt without needing to recompile all
         420                 :    callers.  */
         421                 :
         422                 : #ifndef _STAT_VER
         423                 : # define _STAT_VER      0
         424                 : #endif
         425                 : #ifndef _MKNOD_VER
         426                 : # define _MKNOD_VER     0
         427                 : #endif
         428                 :
         429                 : /* Wrappers for stat and mknod system calls.  */
         430                 : #ifndef __USE_FILE_OFFSET64
         431                 : extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf)
         432                 :      __THROW __nonnull ((3));
         433                 : extern int __xstat (int __ver, __const char *__filename,
         434                 :                     struct stat *__stat_buf) __THROW __nonnull ((2, 3));
         435                 : extern int __lxstat (int __ver, __const char *__filename,
         436                 :                      struct stat *__stat_buf) __THROW __nonnull ((2, 3));
         437                 : extern int __fxstatat (int __ver, int __fildes, __const char *__filename,
         438                 :                        struct stat *__stat_buf, int __flag)
         439                 :      __THROW __nonnull ((3, 4));
         440                 : #else
         441                 : # ifdef __REDIRECT_NTH
         442                 : extern int __REDIRECT_NTH (__fxstat, (int __ver, int __fildes,
         443                 :                                       struct stat *__stat_buf), __fxstat64)
         444                 :      __nonnull ((3));
         445                 : extern int __REDIRECT_NTH (__xstat, (int __ver, __const char *__filename,
         446                 :                                      struct stat *__stat_buf), __xstat64)
         447                 :      __nonnull ((2, 3));
         448                 : extern int __REDIRECT_NTH (__lxstat, (int __ver, __const char *__filename,
         449                 :                                       struct stat *__stat_buf), __lxstat64)
         450                 :      __nonnull ((2, 3));
         451                 : extern int __REDIRECT_NTH (__fxstatat, (int __ver, int __fildes,
         452                 :                                         __const char *__filename,
         453                 :                                         struct stat *__stat_buf, int __flag),
         454                 :                            __fxstatat64) __nonnull ((3, 4));
         455                 :
         456                 : # else
         457                 : #  define __fxstat __fxstat64
         458                 : #  define __xstat __xstat64
         459                 : #  define __lxstat __lxstat64
         460                 : # endif
         461                 : #endif
         462                 :
         463                 : #ifdef __USE_LARGEFILE64
         464                 : extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf)
         465                 :      __THROW __nonnull ((3));
         466                 : extern int __xstat64 (int __ver, __const char *__filename,
         467                 :                       struct stat64 *__stat_buf) __THROW __nonnull ((2, 3));
         468                 : extern int __lxstat64 (int __ver, __const char *__filename,
         469                 :                        struct stat64 *__stat_buf) __THROW __nonnull ((2, 3));
         470                 : extern int __fxstatat64 (int __ver, int __fildes, __const char *__filename,
         471                 :                          struct stat64 *__stat_buf, int __flag)
         472                 :      __THROW __nonnull ((3, 4));
         473                 : #endif
         474                 : extern int __xmknod (int __ver, __const char *__path, __mode_t __mode,
         475                 :                      __dev_t *__dev) __THROW __nonnull ((2, 4));
         476                 :
         477                 : extern int __xmknodat (int __ver, int __fd, __const char *__path,
         478                 :                        __mode_t __mode, __dev_t *__dev)
         479                 :      __THROW __nonnull ((3, 5));
         480                 :
         481                 : #if defined __GNUC__ && __GNUC__ >= 2
         482                 : /* Inlined versions of the real stat and mknod functions.  */
         483                 :
         484                 : #ifdef __GNUC_GNU_INLINE__
         485                 : extern
         486                 : #endif
         487                 : __inline__ int
         488               2 : __NTH (stat (__const char *__path, struct stat *__statbuf))
         489                 : {
         490               2 :   return __xstat (_STAT_VER, __path, __statbuf);
         491                 : }
         492                 :
         493                 : # if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
         494                 : #ifdef __GNUC_GNU_INLINE__
         495                 : extern
         496                 : #endif
         497                 : __inline__ int
         498               0 : __NTH (lstat (__const char *__path, struct stat *__statbuf))
         499                 : {
         500               0 :   return __lxstat (_STAT_VER, __path, __statbuf);
         501                 : }
         502                 : # endif
         503                 :
         504                 : #ifdef __GNUC_GNU_INLINE__
         505                 : extern
         506                 : #endif
         507                 : __inline__ int
         508           38406 : __NTH (fstat (int __fd, struct stat *__statbuf))
         509                 : {
         510           38406 :   return __fxstat (_STAT_VER, __fd, __statbuf);
         511                 : }
         512                 :
         513                 : # ifdef __USE_ATFILE
         514                 : #ifdef __GNUC_GNU_INLINE__
         515                 : extern
         516                 : #endif
         517                 : __inline__ int
         518                 : __NTH (fstatat (int __fd, __const char *__filename, struct stat *__statbuf,
         519                 :                 int __flag))
         520                 : {
         521                 :   return __fxstatat (_STAT_VER, __fd, __filename, __statbuf, __flag);
         522                 : }
         523                 : # endif
         524                 :
         525                 : # if defined __USE_MISC || defined __USE_BSD
         526                 : #ifdef __GNUC_GNU_INLINE__
         527                 : extern
         528                 : #endif
         529                 : __inline__ int
         530                 : __NTH (mknod (__const char *__path, __mode_t __mode, __dev_t __dev))
         531                 : {
         532                 :   return __xmknod (_MKNOD_VER, __path, __mode, &__dev);
         533                 : }
         534                 : # endif
         535                 :
         536                 : # ifdef __USE_ATFILE
         537                 : #ifdef __GNUC_GNU_INLINE__
         538                 : extern
         539                 : #endif
         540                 : __inline__ int
         541                 : __NTH (mknodat (int __fd, __const char *__path, __mode_t __mode,
         542                 :                 __dev_t __dev))
         543                 : {
         544                 :   return __xmknodat (_MKNOD_VER, __fd, __path, __mode, &__dev);
         545                 : }
         546                 : # endif
         547                 :
         548                 : # if defined __USE_LARGEFILE64 \
         549                 :   && (! defined __USE_FILE_OFFSET64 \
         550                 :       || (defined __REDIRECT_NTH && defined __OPTIMIZE__))
         551                 : #ifdef __GNUC_GNU_INLINE__
         552                 : extern
         553                 : #endif
         554                 : __inline__ int
         555               0 : __NTH (stat64 (__const char *__path, struct stat64 *__statbuf))
         556                 : {
         557               0 :   return __xstat64 (_STAT_VER, __path, __statbuf);
         558                 : }
         559                 :
         560                 : #  if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
         561                 : #ifdef __GNUC_GNU_INLINE__
         562                 : extern
         563                 : #endif
         564                 : __inline__ int
         565                 : __NTH (lstat64 (__const char *__path, struct stat64 *__statbuf))
         566                 : {
         567                 :   return __lxstat64 (_STAT_VER, __path, __statbuf);
         568                 : }
         569                 : #  endif
         570                 :
         571                 : #ifdef __GNUC_GNU_INLINE__
         572                 : extern
         573                 : #endif
         574                 : __inline__ int
         575               0 : __NTH (fstat64 (int __fd, struct stat64 *__statbuf))
         576                 : {
         577               0 :   return __fxstat64 (_STAT_VER, __fd, __statbuf);
         578                 : }
         579                 :
         580                 : #  ifdef __USE_GNU
         581                 : #ifdef __GNUC_GNU_INLINE__
         582                 : extern
         583                 : #endif
         584                 : __inline__ int
         585                 : __NTH (fstatat64 (int __fd, __const char *__filename, struct stat64 *__statbuf,
         586                 :                   int __flag))
         587                 : {
         588                 :   return __fxstatat64 (_STAT_VER, __fd, __filename, __statbuf, __flag);
         589                 : }
         590                 : #  endif
         591                 :
         592                 : # endif
         593                 :
         594                 : #endif
         595                 :
         596                 : __END_DECLS
         597                 :
         598                 :
         599                 : #endif /* sys/stat.h  */

Generated by: LCOV version 1.7