Ignore:
Timestamp:
Jul 15, 2008, 10:16:11 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Implement additional functions required on HP-UX: fopen64, fseeko64, freopen64, open64, lseek64.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-fd.c

    r2527 r2528  
    8484static int     (*ORIG(open64))  (const char *file, int oflag, ...);
    8585#endif
     86#if defined HAVE___OPEN64
     87static int     (*ORIG(__open64))(const char *file, int oflag, ...);
     88#endif
    8689#if defined HAVE_DUP
    8790static int     (*ORIG(dup))     (int oldfd);
     
    133136#if defined HAVE_LSEEK64
    134137static off64_t (*ORIG(lseek64)) (int fd, off64_t offset, int whence);
     138#endif
     139#if defined HAVE___LSEEK64
     140static off64_t (*ORIG(__lseek64)) (int fd, off64_t offset, int whence);
    135141#endif
    136142static int     (*ORIG(close))   (int fd);
     
    177183{
    178184    int ret; OPEN(open64); return ret;
     185}
     186#endif
     187
     188#if defined HAVE___OPEN64
     189int NEW(__open64)(const char *file, int oflag, ...)
     190{
     191    int ret; OPEN(__open64); return ret;
    179192}
    180193#endif
     
    523536off64_t NEW(lseek64)(int fd, off64_t offset, int whence)
    524537{
    525     off64_t ret;
    526     LSEEK(lseek64, off64_t);
    527     return ret;
     538    off64_t ret; LSEEK(lseek64, off64_t); return ret;
     539}
     540#endif
     541
     542#if defined HAVE___LSEEK64
     543off64_t NEW(__lseek64)(int fd, off64_t offset, int whence)
     544{
     545    off64_t ret; LSEEK(__lseek64, off64_t); return ret;
    528546}
    529547#endif
Note: See TracChangeset for help on using the changeset viewer.