From 28aa182dbffaa4ffd86047e608400de4b26e80eb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 1 Sep 1998 20:11:54 +0000 Subject: More abstraction of file system data types, to move to a 64 bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy. --- source/locking/locking_slow.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/locking') diff --git a/source/locking/locking_slow.c b/source/locking/locking_slow.c index 0a766c9ab94..4c2ba43cd8e 100644 --- a/source/locking/locking_slow.c +++ b/source/locking/locking_slow.c @@ -159,7 +159,7 @@ static BOOL slow_lock_share_entry(connection_struct *conn, do { - struct stat dummy_stat; + SMB_STRUCT_STAT dummy_stat; fd = (int)open(fname,read_only?O_RDONLY:(O_RDWR|O_CREAT), SHARE_FILE_MODE); @@ -221,7 +221,7 @@ static BOOL slow_unlock_share_entry(connection_struct *conn, { int fd = token; int ret = True; - struct stat sb; + SMB_STRUCT_STAT sb; pstring fname; if (read_only) return True; @@ -267,7 +267,7 @@ Read a share file into a buffer. ********************************************************************/ static int read_share_file(connection_struct *conn, int fd, char *fname, char **out, BOOL *p_new_file) { - struct stat sb; + SMB_STRUCT_STAT sb; char *buf; int size; @@ -680,7 +680,7 @@ static BOOL slow_set_share_mode(int token,files_struct *fsp, uint16 port, uint16 pstring fname; int fd = (int)token; int pid = (int)getpid(); - struct stat sb; + SMB_STRUCT_STAT sb; char *buf; int num_entries; int header_size; -- cgit