libport: Remove the obsolete O_LARGEFILE define.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
207068c48c
commit
9df976766f
|
@ -1172,7 +1172,7 @@ static BOOLEAN get_dir_case_sensitivity_stat( const char *dir )
|
|||
struct stat st;
|
||||
int fd, flags;
|
||||
|
||||
if ((fd = open( dir, O_RDONLY | O_NONBLOCK | O_LARGEFILE )) == -1)
|
||||
if ((fd = open( dir, O_RDONLY | O_NONBLOCK )) == -1)
|
||||
return TRUE;
|
||||
|
||||
if (ioctl( fd, EXT2_IOC_GETFLAGS, &flags ) != -1 && (flags & EXT4_CASEFOLD_FL))
|
||||
|
|
|
@ -82,11 +82,6 @@ static inline const char *dlerror(void) { return "No dlopen support on Windows";
|
|||
#define RTLD_GLOBAL 0x100
|
||||
#endif
|
||||
|
||||
/* So we open files in 64 bit access mode on Linux */
|
||||
#ifndef O_LARGEFILE
|
||||
# define O_LARGEFILE 0
|
||||
#endif
|
||||
|
||||
/****************************************************************
|
||||
* Constants
|
||||
*/
|
||||
|
|
|
@ -440,8 +440,7 @@ static struct object *device_open_file( struct object *obj, unsigned int access,
|
|||
mode_t mode = 0666;
|
||||
access = file->obj.ops->map_access( &file->obj, access );
|
||||
nt_name.str = device->obj.ops->get_full_name( &device->obj, &nt_name.len );
|
||||
file->fd = open_fd( NULL, device->unix_path, nt_name, O_NONBLOCK | O_LARGEFILE,
|
||||
&mode, access, sharing, options );
|
||||
file->fd = open_fd( NULL, device->unix_path, nt_name, O_NONBLOCK, &mode, access, sharing, options );
|
||||
if (file->fd) set_fd_user( file->fd, &device_file_fd_ops, &file->obj );
|
||||
}
|
||||
else file->fd = alloc_pseudo_fd( &device_file_fd_ops, &file->obj, options );
|
||||
|
|
|
@ -269,7 +269,7 @@ static struct object *create_file( struct fd *root, const char *nameptr, data_si
|
|||
access = map_access( access, &file_type.mapping );
|
||||
|
||||
/* FIXME: should set error to STATUS_OBJECT_NAME_COLLISION if file existed before */
|
||||
fd = open_fd( root, name, nt_name, flags | O_NONBLOCK | O_LARGEFILE, &mode, access, sharing, options );
|
||||
fd = open_fd( root, name, nt_name, flags | O_NONBLOCK, &mode, access, sharing, options );
|
||||
if (!fd) goto done;
|
||||
|
||||
if (S_ISDIR(mode))
|
||||
|
|
Loading…
Reference in New Issue