VirtualBox

Changeset 2470 in kBuild for trunk/src/lib


Ignore:
Timestamp:
Jul 12, 2011 1:11:42 PM (13 years ago)
Author:
bird
Message:

solaris build fix; wrap readlink too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/restartable-syscall-wrappers.c

    r2468 r2470  
    3737*******************************************************************************/
    3838#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
    3946#include <sys/stat.h>
    4047#include <utime.h>
     
    4451#include <stdarg.h>
    4552#include <stddef.h>
    46 #ifdef KBUILD_OS_SOLARIS
    47 # undef __PRAGMA_REDEFINE_EXTNAME
    48 #endif
    4953#include <stdio.h>
    5054
     
    144148
    145149
    146 
     150#undef open
    147151int open(const char *pszPath, int fFlags, ...)
    148152{
     
    170174}
    171175
     176#undef open64
    172177int open64(const char *pszPath, int fFlags, ...)
    173178{
     
    235240#undef stat
    236241WRAP_FN(stat, (const char *pszPath, struct stat *pStBuf), (pszPath, pStBuf), int, -1);
    237 #undef stat64
    238 WRAP_FN(stat64, (const char *pszPath, struct stat *pStBuf), (pszPath, pStBuf), int, -1);
    239 
    240242#undef lstat
    241243WRAP_FN(lstat, (const char *pszPath, struct stat *pStBuf), (pszPath, pStBuf), int, -1);
     244
     245#undef stat64
     246WRAP_FN(stat64, (const char *pszPath, struct stat64 *pStBuf), (pszPath, pStBuf), int, -1);
    242247#undef lstat64
    243 WRAP_FN(lstat64, (const char *pszPath, struct stat *pStBuf), (pszPath, pStBuf), int, -1);
     248WRAP_FN(lstat64, (const char *pszPath, struct stat64 *pStBuf), (pszPath, pStBuf), int, -1);
    244249
    245250#undef read
     
    273278WRAP_FN(pathconf, (const char *pszPath, int iCfgNm), (pszPath, iCfgNm), long, -1);
    274279
    275 
     280#undef readlink
     281WRAP_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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette