summaryrefslogtreecommitdiffstats
path: root/source/include/includes.h
Commit message (Collapse)AuthorAgeFilesLines
* Fixes for HPUX.Jeremy Allison1999-02-041-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | I have added a new define for configure - HAVE_EXPLICIT_LARGEFILE_SUPPORT. This is tested for at the end of configure by the following check : "As a gating factor for large file support, in order to use <4GB files we must have the following minimal support available. long long, a 64 bit off_t or off64_t, a 64 bit ino_t or ino64_t. If we don't have all of these then disable large file support." I have to do this as HPUX will detect the open64 etc. functions in libc but *THEY DON'T WORK* before HPUX11.x. The definitions in include/includes.h that set up large file defines, and the calls in lib/system.c that use the explicit large file functions are now depended on HAVE_EXPLICIT_LARGEFILE_SUPPORT also being defined. include/rpc_lsa.h: Upped number of groups to 96 as a temporary measure. Jeremy.
* Fixed large (>4GB) filesystem size reporting.Jeremy Allison1999-01-291-0/+2
| | | | Jeremy.
* Added autoconf test for FTRUNCATE_NEEDS_ROOT.Jeremy Allison1999-01-041-0/+6
| | | | | | Fixed <rpc/rpc.h> include bug for SCO. Test for <arpa/inet.h> include for HPUX7.x. Jeremy.
* client/client.c: Fixed comment.Jeremy Allison1998-12-301-0/+20
| | | | | | All others - added checks for the compiler understanding volatile and the system having sig_atomic_t. Changed sighup code to use this. Jeremy.
* Configure fixes for QNX and NCR.Jeremy Allison1998-12-221-1/+8
| | | | Jeremy.
* make sure we include sys/mman.h if availableAndrew Tridgell1998-12-171-1/+1
|
* include/includes.h: Added MAXHOSTNAMELEN in case it wasn't defined.Jeremy Allison1998-12-171-0/+8
| | | | | web/swat.c: Re-arranged static function to remove compile warning. Jeremy.
* acconfig.h configure configure.in include/config.h.inJeremy Allison1998-12-151-0/+12
| | | | | | | | lib/system.c script/mkproto.awk include/includes.h: Added sys_readdir that wraps readdir64. lib/util.c: Changed gethostname() to use sizeof(hostname) as the second arg for buffer size. Jeremy.
* in 2.0 branch:Andrew Tridgell1998-12-151-0/+11
| | | | | on Linux force fcntl/mmap based shared memory and on other systems force IPC/shmem based shared memory.
* Added RELIANTUNIX define for specific header file order includes for largeJeremy Allison1998-12-061-0/+10
| | | | | | | file support. Based on a patch from "Andrej Borsenkow" <borsenkow.msk@sni.de>. lib/pidfile.c: Changed open() to sys_open(). Jeremy.
* Samba 2.0 wasn't building on Linux-alpha - so I addedJeremy Allison1998-12-031-0/+6
| | | | | | | | | HAVE_SETRESGID and HAVE_SETRESGID_DECL defines, based on the HAVE_SETRESUID checks. I also updated the places that setresgid was being called based on HAVE_SETRESUID being defined and made sure *both* were defined before allowing the call. Jeremy.
* Added check for STAT_STATVFS64 to deterimine is a system is SYSV - neededJeremy Allison1998-12-021-1/+1
| | | | | to ensure the printing infrastructure is set up correctly. Jeremy.
* configure.in: Removed net/route.h from include checks.Jeremy Allison1998-12-011-9/+0
| | | | | | include/includes.h: Removed net/route.h as it breaks SCO. smbd/ipc.c: Memory leak fix from <jasper@Cal005208.student.utwente.nl> Jeremy.
* Makefile.in: Added 'maintainer mode' fixes.Jeremy Allison1998-11-251-0/+4
| | | | | | | aclocal.m4: Added new function - AC_LIBTESTFUNC. configure.in: Fixes for the messy -lsec, -lsecurity code. include/includes.h: Added a default printcap define. Jeremy.
* Added auto detection of the (broken IMHO) typedefs for int32 and uint32Jeremy Allison1998-11-191-22/+43
| | | | | in rpc/types.h in DEC OSF1. Should correctly check on all platforms now. Jeremy.
* Added some of the fixes needed for OSF1 (Digital UNIX).Jeremy Allison1998-11-181-0/+9
| | | | | | | HAVE_PUTPRPWNAM is defined in -lsecurity. <net/route.h> needed to stop compile complaints in <net/if.h> smbpasswd: Moved SunOS optind/optarg to global scope. Jeremy
* Added fixes to stop HAVE_NETGROUPS being defined on systems thatJeremy Allison1998-11-181-1/+1
| | | | | don't have a hope of having them. Jeremy.
* Moved PRINTCAP_NAME into includes to allow it to be tuned perJeremy Allison1998-11-171-0/+3
| | | | | system type. Jeremy.
* Added fixes from HEAD into 2.0 branch.Jeremy Allison1998-11-161-1/+1
| | | | | | | | | | | These are : configure.in: Check for glob.h added. libsmb/namequery.c: Fix for broken parsing of lmhosts. smbd/reply.c: smbd/trans2.c: include/smb.h: Change ROUNDUP to SMB_ROUNDUP. include/includes.h: Fixed include of glob.h Jeremy.
* Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1998-11-131-2/+10
| | | | | | | | | | | | | | UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER.
* reverted includes change for FreeBSD as it breaks IRIXAndrew Tridgell1998-11-131-1/+0
|
* fixes for OSF1 compilationAndrew Tridgell1998-11-131-0/+1
|
* rpcclient registry commands.Luke Leighton1998-11-101-0/+4
|
* Still moving things around. debugparse.h will be removed from the includeChristopher R. Hertel1998-10-281-2/+2
| | | | directory in the next batch. Chris -)-----
* Quick fixes to fix the broken tree. Needed for my morning compiles.Jeremy Allison1998-10-281-1/+3
| | | | | | Chris - feel free to fix these things differently if these fixes don't work for you. Jeremy.
* volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell1998-10-241-0/+6
| | | | | | changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before.
* config: Fix crypt prototype on RedHat Linux.Jeremy Allison1998-10-151-0/+5
| | | | | | | | include/includes.h: Fix crypt prototype on RedHat Linux. smbd/fileio.c: Fix mmap bug found by WinCE client. smbd/ipc.c: Fix WinCE wierdness with pipes being opened as \server\pipe\lanman smbd/password.c: Fix encrypted null passwords. Jeremy.
* more solaris acl fixesAndrew Tridgell1998-10-071-0/+4
|
* yet another attempt at making this stuff portable. This time I useAndrew Tridgell1998-10-071-13/+0
| | | | minimal includes in wrapped.c
* more OSF1 changes as well as changes to allow us to use the standardAndrew Tridgell1998-10-071-0/+23
| | | | includes.h in wrapped.c, thus making porting much simpler
* more smbw cleanups.Andrew Tridgell1998-10-041-0/+1
| | | | | | - cleaned up prototyping. Unfortunately we can't auto-prototype wrapped.c because it replaces system functions. - split stat functions into smbw_stat.c
* define O_ACCMODE if not definedAndrew Tridgell1998-10-031-0/+4
|
* Makefile.in: Fixed bug with continuation line causing proto to fail.Jeremy Allison1998-09-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added $(PROGS) $(SPROGS) as targets for make clean. acconfig.h: Added HAVE_IRIX_SPECIFIC_CAPABILITIES. configure.in: Added sys/capability.h header check. Added function checks for srandom random srand rand. Added HAVE_IRIX_SPECIFIC_CAPABILITIES test. includes.h: Added #include <sys/capability.h>. ntdomain.h: Moved struct acct_info into here from smb.h smb.h: Added KERNEL_OPLOCK_CAPABILITY define. Moved enum action_type into rpcclient.h Moved struct cli_state into client.h Moved struct nt_client_info, struct tar_client_info, struct client_info into rpcclient.h lib/genrand.c: Changed to use sys_random() & friends. lib/smbrun.c: Lose capabilities after fork. lib/system.c: Added set_process_capability(), set_inherited_process_capability() sys_random(), sys_srandom(). lib/util.c: Added Ander's EFBIG lock check to fcntl_lock for 64 bit access to an 32 bit mounted NFS filesystem. nmbd/nmbd.c: Changed to use sys_random() & friends. nmbd/nmbd_browsesync.c: Changed to use sys_random() & friends. passdb/ldap.c: Missed one pdb_encode_acct_ctrl call. passdb/passdb.c: Changed to Ander's code for ' ' characters. passdb/smbpass.c: Added Ander's code to reset ACB_PWNOTREQ. script/mkproto.awk: Added 'long' to prototypes. smbd/chgpasswd.c: Lose capabilities after fork. smbd/open.c: Do the mmap *after* the kernel oplock. smbd/oplock.c: Removed stub code from kernel oplock path. Added set_process_capability(), set_inherited_process_capability() calls. smbd/reply.c: Initialize count = 0, offset = 0. smbd/server.c: Added set_process_capability(), set_inherited_process_capability() calls. tests/summary.c: Ensure we have RANDOM or RAND. utils/smbpasswd.c: Added Ander's code to reset ACB_PWNOTREQ. utils/torture.c: Changed to use sys_random() & friends. Jeremy.
* replace getpass() with getsmbpass() if getsmbpass.c compilesAlexandre Oliva1998-09-211-5/+6
|
* Fixed position of LARGE_SMB_OFF_T definition. The SOFF_T define wasJeremy Allison1998-09-181-8/+6
| | | | | | | | | being done *before* the LARGE_SMB_OFF_T was being defined, but SOFF_T depended on it :-). This broke 64 bit file reporting. Jeremy.
* configure configure.in include/config.h.in include/includes.hJeremy Allison1998-09-181-8/+1
| | | | | | | | | | Fixed bugs in readline autoconf. param/loadparm.c smbd/open.c smbd/oplock.c: Started on kernel oplock code - checking forced by above issue. Should not be used currently. Jeremy.
* Adding rewritten restore code ... Old code is still thereRichard Sharpe1998-09-181-0/+25
| | | | surrounded by a OLD_DOTARPUT.
* got rid of SMB_STRUCT_STATVFS. I don't think we should be definingAndrew Tridgell1998-09-181-17/+0
| | | | structures that only apply on some platforms.
* gto ri of a bunch more #ifdef LARGE_SMB_OFF_T checks by introducing aAndrew Tridgell1998-09-181-0/+8
| | | | | | | SOFF_T() macro for setting an SMB_OFF_T variable also limited mmap based reads to MAX_MMAP_SIZE. We really can't mmap 2^50 bytes due to virtual address space problems.
* added a SMB_OFF_T_BITS define, allowing us to get rid of most of theAndrew Tridgell1998-09-181-0/+2
| | | | #ifdefs for LARGE_OFF_T.
* include/includes.h:Jeremy Allison1998-09-181-1/+6
| | | | | | | lib/system.c: Can't assume every system has a statvfs varient. Return -1 for those that don't. smbd/reply.c: Fixed printf warning. Jeremy.
* configure configure.in: Added checks for statvfs64. Last bit of 64 bit ↵Jeremy Allison1998-09-171-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | widening (I hope :-). include/config.h.in: Added #undef STAT_STATVFS64. include/includes.h: Added SMB_STRUCT_STATVFS type, Changed SMB_BIG_INTEGER to SMB_BIG_UINT and SMB_BIG_INT types. include/smb.h: Added flag defines from CIFS spec. lib/debug.c: Fixed one more mode_t issue. lib/system.c: Added sys_statvfs wrapper. lib/util.c: Changed trim_string to use size_t. param/loadparm.c: Moved "blocking locks" into locking section. Alphabetised locking options. Question - shuld we do this for all options ? passdb/ldap.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. passdb/nispass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. passdb/smbpass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. smbd/dfree.c: Changed to use 64 bit types if available. Moved to use unsigned types. smbd/dosmode.c: Fixed one more mode_t issue. smbd/negprot.c: Changed literals to be FLAG_ #defines. smbd/nttrans.c: Removed dead code. smbd/open.c: Changed disk_free call. smbd/process.c: Changed literals to be FLAG_ #defines. smbd/reply.c: Changed disk_free call. smbd/trans2.c: Fixed but in SMB_QUERY_FS_VOLUME_INFO call. Was using UNICODE - should use ascii. tests/summary.c: Added STAT_STATVFS64 check. Jeremy.
* configure configure.in: Added tests for fseek64 and ftell64.Jeremy Allison1998-09-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Modified dev_t and ino_t code to be 64 bit clean (including changesJeremy Allison1998-09-041-2/+16
| | | | | | | | | | to oplock break message passing). I think that smbd/nmbd are now inode and offset size independent (at least for 32 bit and 64 bit systems). Now to expose all this new functionality to NT clients..... Jeremy.
* More 64 bit stuff - now the fcntl locks are 64 bit clean.Jeremy Allison1998-09-041-12/+48
| | | | | | Nearly at the stage where I can expose the 64-bit-ness to the NT clients.... Jeremy.
* Ok - this is the 64 bit widening check in. It changes the configureJeremy Allison1998-09-031-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | to check for stat64 and friends, and then changes much of Samba to use the data type SMB_OFF_T for file size information. stat/fstat/lstat/lseek/ftruncate have now become sys_stat etc. to hide the 64 bit calls if needed. Note that this still does not expose 64 bit functionality to the client, as the changes to the reply_xxx smb's are not yet done. This code change should make these changes possible. Still to do before full 64 bit-ness to the client: fcntl lock code. statfs code widening of dev_t and ino_t (now possible due to SMB_DEV_T and SMB_OFF_T types being in place). Let me know if wierd things happen after this check-in and I'll fix them :-). Jeremy.
* More abstraction of file system data types, to move to a 64Jeremy Allison1998-09-011-0/+11
| | | | | | | | | | | | | | | | | | | | | 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.
* configure.in, configure: include/config.h.in: Added stropts and poll.Jeremy Allison1998-08-311-0/+45
| | | | | | | | | | | include/smb.h: Moved old typedefs of uint8 etc. into include/includes.h where all the other defines live (changed them from typedefs to defines). Other changes : changed from using uint32 to SMB_DEV_T and SMB_INO_T in preparation for moving to size independed (ie. 64 bit clean) device and inode access. Stat call wrapper comes next :-). Jeremy.
* This is the stat cache code - seems to work fine (needs heavyJeremy Allison1998-08-271-0/+4
| | | | | | NetBench testing though.... :-). Attempts to efficiently reduce the number of stat() calls Samba does. Jeremy.
* get includes right for systems that use getpwanam()Andrew Tridgell1998-08-261-0/+6
|