Changeset 2470 in kBuild for trunk/src/lib
- Timestamp:
- Jul 12, 2011 1:11:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/restartable-syscall-wrappers.c
r2468 r2470 37 37 *******************************************************************************/ 38 38 #include <sys/types.h> 39 #ifdef KBUILD_OS_SOLARIS 40 # include <string.h> /* Try drag in feature_tests.h. */ 41 # include <ctype.h> 42 # undef _RESTRICT_KYWD 43 # define _RESTRICT_KYWD 44 # undef __PRAGMA_REDEFINE_EXTNAME 45 #endif 39 46 #include <sys/stat.h> 40 47 #include <utime.h> … … 44 51 #include <stdarg.h> 45 52 #include <stddef.h> 46 #ifdef KBUILD_OS_SOLARIS47 # undef __PRAGMA_REDEFINE_EXTNAME48 #endif49 53 #include <stdio.h> 50 54 … … 144 148 145 149 146 150 #undef open 147 151 int open(const char *pszPath, int fFlags, ...) 148 152 { … … 170 174 } 171 175 176 #undef open64 172 177 int open64(const char *pszPath, int fFlags, ...) 173 178 { … … 235 240 #undef stat 236 241 WRAP_FN(stat, (const char *pszPath, struct stat *pStBuf), (pszPath, pStBuf), int, -1); 237 #undef stat64238 WRAP_FN(stat64, (const char *pszPath, struct stat *pStBuf), (pszPath, pStBuf), int, -1);239 240 242 #undef lstat 241 243 WRAP_FN(lstat, (const char *pszPath, struct stat *pStBuf), (pszPath, pStBuf), int, -1); 244 245 #undef stat64 246 WRAP_FN(stat64, (const char *pszPath, struct stat64 *pStBuf), (pszPath, pStBuf), int, -1); 242 247 #undef lstat64 243 WRAP_FN(lstat64, (const char *pszPath, struct stat *pStBuf), (pszPath, pStBuf), int, -1);248 WRAP_FN(lstat64, (const char *pszPath, struct stat64 *pStBuf), (pszPath, pStBuf), int, -1); 244 249 245 250 #undef read … … 273 278 WRAP_FN(pathconf, (const char *pszPath, int iCfgNm), (pszPath, iCfgNm), long, -1); 274 279 275 280 #undef readlink 281 WRAP_FN(readlink, (const char *pszPath, char *pszBuf, size_t cbBuf), (pszPath, pszBuf, cbBuf), ssize_t, -1); 282
Note:
See TracChangeset
for help on using the changeset viewer.