All pastes #901852 Raw Edit

MoDaX

public diff v1 · immutable
·published 2008-02-12 23:54 UTC
rendered paste body
+#if defined __GNUC__ && __GNUC__ >= 2 && defined __USE_EXTERN_INLINES /* Inlined versions of the real stat and mknod functions.  */ -extern __inline__ int+__extern_inline int __NTH (stat (__const char *__path, struct stat *__statbuf)) {   return __xstat (_STAT_VER, __path, __statbuf); }  # if defined __USE_BSD || defined __USE_XOPEN_EXTENDED-extern __inline__ int+__extern_inline int __NTH (lstat (__const char *__path, struct stat *__statbuf)) {   return __lxstat (_STAT_VER, __path, __statbuf); } # endif -extern __inline__ int+__extern_inline int __NTH (fstat (int __fd, struct stat *__statbuf)) {   return __fxstat (_STAT_VER, __fd, __statbuf); } +# ifdef __USE_ATFILE+__extern_inline int+__NTH (fstatat (int __fd, __const char *__filename, struct stat *__statbuf,+		int __flag))+{+  return __fxstatat (_STAT_VER, __fd, __filename, __statbuf, __flag);+}+# endif+ # if defined __USE_MISC || defined __USE_BSD-extern __inline__ int+__extern_inline int __NTH (mknod (__const char *__path, __mode_t __mode, __dev_t __dev)) {   return __xmknod (_MKNOD_VER, __path, __mode, &__dev); } # endif +# ifdef __USE_ATFILE+__extern_inline int+__NTH (mknodat (int __fd, __const char *__path, __mode_t __mode,+		__dev_t __dev))+{+  return __xmknodat (_MKNOD_VER, __fd, __path, __mode, &__dev);+}+# endif+ # if defined __USE_LARGEFILE64 \   && (! defined __USE_FILE_OFFSET64 \       || (defined __REDIRECT_NTH && defined __OPTIMIZE__))-extern __inline__ int+__extern_inline int __NTH (stat64 (__const char *__path, struct stat64 *__statbuf)) {   return __xstat64 (_STAT_VER, __path, __statbuf); }  #  if defined __USE_BSD || defined __USE_XOPEN_EXTENDED-extern __inline__ int+__extern_inline int __NTH (lstat64 (__const char *__path, struct stat64 *__statbuf)) {   return __lxstat64 (_STAT_VER, __path, __statbuf); } #  endif -extern __inline__ int+__extern_inline int __NTH (fstat64 (int __fd, struct stat64 *__statbuf)) {   return __fxstat64 (_STAT_VER, __fd, __statbuf); }++#  ifdef __USE_GNU+__extern_inline int+__NTH (fstatat64 (int __fd, __const char *__filename, struct stat64 *__statbuf,+		  int __flag))+{+  return __fxstatat64 (_STAT_VER, __fd, __filename, __statbuf, __flag);+}+#  endifThe key is "defined __USE_EXTERN_INLINES" and s/extern __inline__/__extern_inline/__extern_inline is not available for c++ as in sys/ctypes.h