diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-17 19:16:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-17 19:16:12 +0000 |
commit | ac9b687cc2496409e1c8d86393812faf94ec7550 (patch) | |
tree | 6aba6987dae6cec43881ec186be8975bc21194a2 /source3/include | |
parent | 25ebd393bf117477125db42a9b4bdc7f09ce0b08 (diff) | |
download | samba-ac9b687cc2496409e1c8d86393812faf94ec7550.tar.gz samba-ac9b687cc2496409e1c8d86393812faf94ec7550.tar.bz2 samba-ac9b687cc2496409e1c8d86393812faf94ec7550.zip |
configure configure.in: Added tests for fseek64 and ftell64.
config.h.in: Added fseek64 and ftell64.
includes.h: Added definition of SMB_BIG_INTEGER.
smb.h: Changed (*getsmbpwpos) and (*setsmbpwpos) to use SMB_BIG_INTEGER.
access.c: Tidyup of dbug statement.
system.c: Added sys_fseek and sys_ftell. Changed mode calls to use mode_t.
asyncdns.c: Tidyup of comment.
loadparm.c: Tidyup of set_default_server_announce_type() function definition.
ldap.c: Changed (*getsmbpwpos) and (*setsmbpwpos) to use SMB_BIG_INTEGER.
nispass.c: Changed (*getsmbpwpos) and (*setsmbpwpos) to use SMB_BIG_INTEGER.
smbpass.c: Changed (*getsmbpwpos) and (*setsmbpwpos) to use SMB_BIG_INTEGER.
smbpassfile.c: Use sys_fseek().
chgpasswd.c: Tidyup of debug statement.
dosmode.c: Changed mode calls to use mode_t.
ipc.c: Removal of dead code.
nttrans.c: Changed mode calls to use mode_t.
open.c: Changed mode calls to use mode_t.
pipes.c: Removal of dead code.
reply.c: Removal of dead code.
trans2.c: Removal of dead code. Changed mode calls to use mode_t.
Jeremy.
(This used to be commit c381d32e3dc23fe887408016cae821aceb30da2c)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/config.h.in | 6 | ||||
-rw-r--r-- | source3/include/includes.h | 6 | ||||
-rw-r--r-- | source3/include/proto.h | 10 | ||||
-rw-r--r-- | source3/include/smb.h | 4 |
4 files changed, 20 insertions, 6 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in index 615666b7ff..2934d438dc 100644 --- a/source3/include/config.h.in +++ b/source3/include/config.h.in @@ -154,6 +154,9 @@ /* Define if you have the execl function. */ #undef HAVE_EXECL +/* Define if you have the fseek64 function. */ +#undef HAVE_FSEEK64 + /* Define if you have the fstat function. */ #undef HAVE_FSTAT @@ -163,6 +166,9 @@ /* Define if you have the fsync function. */ #undef HAVE_FSYNC +/* Define if you have the ftell64 function. */ +#undef HAVE_FTELL64 + /* Define if you have the ftruncate function. */ #undef HAVE_FTRUNCATE diff --git a/source3/include/includes.h b/source3/include/includes.h index f0271906a5..d8da84bd4e 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -410,6 +410,12 @@ # endif #endif +#if defined(HAVE_LONGLONG) +#define SMB_BIG_INTEGER unsigned long long +#else +#define SMB_BIG_INTEGER unsigned long +#endif + #ifndef MIN #define MIN(a,b) ((a)<(b)?(a):(b)) #endif diff --git a/source3/include/proto.h b/source3/include/proto.h index f2b74b4076..6ddc92824d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -160,18 +160,20 @@ int sys_fstat(int fd,SMB_STRUCT_STAT *sbuf); int sys_lstat(char *fname,SMB_STRUCT_STAT *sbuf); int sys_ftruncate(int fd, SMB_OFF_T offset); SMB_OFF_T sys_lseek(int fd, SMB_OFF_T offset, int whence); +int sys_fseek(FILE *fp, SMB_OFF_T offset, int whence); +SMB_OFF_T sys_ftell(FILE *fp); int dos_unlink(char *fname); -int dos_open(char *fname,int flags,int mode); +int dos_open(char *fname,int flags,mode_t mode); DIR *dos_opendir(char *dname); int dos_stat(char *fname,SMB_STRUCT_STAT *sbuf); int sys_waitpid(pid_t pid,int *status,int options); int dos_lstat(char *fname,SMB_STRUCT_STAT *sbuf); -int dos_mkdir(char *dname,int mode); +int dos_mkdir(char *dname,mode_t mode); int dos_rmdir(char *dname); int dos_chdir(char *dname); int dos_utime(char *fname,struct utimbuf *times); int dos_rename(char *from, char *to); -int dos_chmod(char *fname,int mode); +int dos_chmod(char *fname,mode_t mode); char *dos_getwd(char *s); int sys_chown(char *fname,int uid,int gid); int sys_chroot(char *dname); @@ -1792,7 +1794,7 @@ int reply_nttrans(connection_struct *conn, void fd_add_to_uid_cache(file_fd_struct *fd_ptr, uid_t u); uint16 fd_attempt_close(file_fd_struct *fd_ptr); void open_file_shared(files_struct *fsp,connection_struct *conn,char *fname,int share_mode,int ofun, - int mode,int oplock_request, int *Access,int *action); + mode_t mode,int oplock_request, int *Access,int *action); int open_directory(files_struct *fsp,connection_struct *conn, char *fname, int smb_ofun, int unixmode, int *action); BOOL check_file_sharing(connection_struct *conn,char *fname, BOOL rename_op); diff --git a/source3/include/smb.h b/source3/include/smb.h index 412b1f3383..aa963f9163 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -708,8 +708,8 @@ struct passdb_ops { */ void *(*startsmbpwent)(BOOL); void (*endsmbpwent)(void *); - unsigned long (*getsmbpwpos)(void *); - BOOL (*setsmbpwpos)(void *, unsigned long); + SMB_BIG_INTEGER (*getsmbpwpos)(void *); + BOOL (*setsmbpwpos)(void *, SMB_BIG_INTEGER); /* * smb password database query functions. |