mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
need to use SYS_open64 not _open64 for solaris 2.6 or stdio doesn't
work right.
This commit is contained in:
parent
c6ee915336
commit
c185585dd9
@ -31,6 +31,7 @@
|
||||
#define real_link(fn1, fn2) (syscall(SYS_link, (fn1), (fn2)))
|
||||
|
||||
#define real_open(fn,flags,mode) (syscall(SYS_open, (fn), (flags), (mode)))
|
||||
#define real_open64(fn,flags,mode) (syscall(SYS_open64, (fn), (flags), (mode)))
|
||||
|
||||
|
||||
#ifdef HAVE__OPENDIR
|
||||
@ -177,12 +178,6 @@
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef HAVE__OPEN64
|
||||
#define real_open64(fn,fl,m) (_open64(fn,fl,m))
|
||||
#elif HAVE___OPEN64
|
||||
#define real_open64(fn,fl,m) (__open64(fn,fl,m))
|
||||
#endif
|
||||
|
||||
#ifdef HAVE__PREAD
|
||||
#define real_pread(fd,buf,size,ofs) (_pread(fd,buf,size,ofs))
|
||||
#elif HAVE___PREAD
|
||||
|
@ -55,6 +55,18 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE__OPEN64
|
||||
int _open64(const char *name, int flags, mode_t mode)
|
||||
{
|
||||
return open64(name, flags, mode);
|
||||
}
|
||||
#elif HAVE___OPEN
|
||||
int __open64(const char *name, int flags, mode_t mode)
|
||||
{
|
||||
return open64(name, flags, mode);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PREAD
|
||||
ssize_t pread(int fd, void *buf, size_t size, off_t ofs)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user