summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* much cleaner chain pointer handling for both files and pipes.Andrew Tridgell1998-08-172-8/+3
| | | | | | the chain pointer is now stored as a static and is set whenever a handle is created or extracted. This also makes the code less error prone.
* some cleanups from the conversion of Pipes[] to a linked list. I alsoAndrew Tridgell1998-08-173-13/+12
| | | | | | | | removed most cases where a pnum is used and substituted a pipes_struct*. in files.c I added a offset of 0x1000 to all file handles on the wire. This makes it much less likely that bad parsing will give us the wrong field.
* I think it is pretty much decided that the next major version will beAndrew Tridgell1998-08-161-1/+1
| | | | | 2.0, so I've updated version.h to reflect this. I've put in "2.0.0-prealpha".
* added include of sys/resource.hAndrew Tridgell1998-08-162-0/+8
|
* got rid of the Files[] array completely (previously I'd just made itAndrew Tridgell1998-08-162-1/+9
| | | | | | | | | | | | | | | | | private to files.c) It now is a doubly linked list with a bitmap for allocated file numbers. Similarly for the fd_ptr code. I also changed the default maximum number of open files to 4096. The static cost is 1 bit per file. It all seems to work, and it passes the "does Sue scream" test, but if you see weird behaviour then please investigate. With the volume of new code that has gone in there are bound to be one or two bugs lurking. note that you must do a "make clean" before building this as many data structures have changed in size.
* server.c: fixed a bug in close_file() with the new files.c handling codeAndrew Tridgell1998-08-162-12/+19
| | | | | bitmap.c: added bitmap hanlding code in preparation for increasing the default max open files to several thousand
* this checkin gets rid of the global Files[] array and makes it localAndrew Tridgell1998-08-153-42/+59
| | | | | | | in files.c it should now be faily easy to expand the default MAX_OPEN_FILES to many thousands.
* moved the printing related files to a separate printing/ directory.Andrew Tridgell1998-08-152-27/+27
|
* configure: Changes for extra headers.Jeremy Allison1998-08-154-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure.in: Source for header changes. client/clitar.c: Fixed isXXX macros & debugs for gcc pedantic compile. include/config.h.in: Added MEMSET, BZERO, MEMORY, RPCSVC_YPCLNT, STRINGS headers. include/includes.h: Headers for the above. include/smb.h: Made SIGNAL_CAST POSIX by default void (*)(int). lib/access.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/charset.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/debug.c: Fixed signal functs. lib/kanji.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/smbrun.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/util.c: Fixed isXXX macros & debugs for gcc pedantic compile. libsmb/namequery.c: Fixed isXXX macros & debugs for gcc pedantic compile. locking/shmem.c: Fixed isXXX macros & debugs for gcc pedantic compile. locking/shmem_sysv.c: Fixed error messages in sysV stuff. nmbd/asyncdns.c: Fixed signal functs. nmbd/nmbd.c: Fixed isXXX macros & debugs for gcc pedantic compile. passdb/passdb.c: Fixed isXXX macros & debugs for gcc pedantic compile. passdb/smbpassfile.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/chgpasswd.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/ipc.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/nttrans.c: Fixed fsp code path. smbd/password.c: fixed HAVE_YP_GET_DEFAULT_DOMAIN problem. smbd/printing.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/reply.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/server.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/trans2.c: Fixed core dump bug. smbd/uid.c: Fixed isXXX macros & debugs for gcc pedantic compile. Jeremy.
* this is the bug change to using connection_struct* instead of cnum.Andrew Tridgell1998-08-145-189/+251
| | | | | | | | Connections[] is now a local array in server.c I might have broken something with this change. In particular the oplock code is suspect and some .dll files aren't being oplocked when I expected them to be. I'll look at it after I've got some sleep.
* define INADDR_NONE if not already definedAndrew Tridgell1998-08-141-0/+4
|
* Makefile.in: Changed so that make proto will work with ldap & nisplus.Jeremy Allison1998-08-141-14/+17
| | | | | | | | locking/locking.c: Made #ifdef'ed out functions static for Make proto. lib/util.c: Re-instated old mask_match code for UNIX filesystem checks only. Client calls use the new mask_match code. Changed the name of the old function to unix_mask_match. Jeremy.
* Added the APPLEDOUBLE macro for the name of the directory containingJohn Blair1998-08-131-0/+3
| | | | a file's Macintosh resource fork (normally .AppleDouble under Netatalk).
* HAVE_STATVFS should be STAT_STAVFS (caused printing to break on IRIX).Jeremy Allison1998-08-131-1/+1
| | | | Jeremy.
* include/smb.h: Removed dir_ptr. Not needed.Jeremy Allison1998-08-111-4/+1
| | | | | | | | | | | | | | | locking/locking.c: First cut a blocking lock code. #ifdef'ed out for now. locking/locking_shm.c: Removed dir_ptr. Not needed. smbd/nttrans.c: More work on ChangeNotify - return is not an error and needs to be handled as a nttrans with zero params. Removed dir_ptr. Not needed. smbd/reply.c: smbd/server.c: smbd/trans2.c: Removed dir_ptr. Not needed. Hmmm. At the moment smbclient is broken - doesn't issue prompt correctly. This needs looking at. Jeremy.
* I've come up with a different scheme for doing the DEBUG() and DEBUGADD()Christopher R. Hertel1998-08-111-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | macros that meets the RVALUE requirement and doesn't use the (a?b:c) format that Andrew called "ugly". I've added the new macros but kept the old macros within a #if 0..#else..#endif block in case I've missed somthing. Basically, I've used (void)( (a) && (b) ) or (void)( (a) && (b) && (c) ) instead of ( (a) ? (void)(b) : (void)(c) ) or similar. I have this compiled and running now. Here's the diff: $ cvs diff smb.h Enter passphrase for RSA key 'crh@Ruby': Index: smb.h =================================================================== RCS file: /data/cvs/samba/source/include/smb.h,v retrieving revision 1.172 diff -r1.172 smb.h 143a144,145 > #if 0 > 150a153,164 > > #else > > #define DEBUG( level, body ) \ > (void)( (DEBUGLEVEL >= (level)) \ > && (dbghdr( level, FILE_MACRO, FUNCTION_MACRO, (__LINE__) )) \ > && (dbgtext body) ) > > #define DEBUGADD( level, body ) \ > (void)( (DEBUGLEVEL >= (level)) && (dbgtext body) ) > > #endif Chris -)-----
* Removed a stray semicolon in the DEBUGADD() macro.Christopher R. Hertel1998-08-111-5/+5
|
* Makefile.in: Added CHECK target back in (at Herb's request). AddedJeremy Allison1998-08-111-0/+1
| | | | | | | | manpath in (although we don't currently use it). client/client.c: Added John Blair's fixes for "put -". include/nterr.h: Added NT_STATUS_NOTIFY_ENUM_DIR error code. smbd/nttrans.c: Added in devious fix for one-shot NT change notify bug. Jeremy.
* Makefile.in: Fixed make clean bug with CVS directory in bin/.Jeremy Allison1998-08-101-2/+2
| | | | | | | | | include/smb.h: Fixed bugs in Debug macro's with SGI compiler. smbd/trans2.c: Fixed bug reported by Zoltan Palmai <ZSPA@chevron.com> PR#8903 where get_lanman2_dir_entry() could return a mangled name as a resume key and call_trans2findnext() wasn't doing the same. Jeremy.
* moved access.c into lib/ from smbd/ as it is needed by testparm. IAndrew Tridgell1998-08-101-2/+3
| | | | | modified it not to need any smbd specific structures and instead pass things from smbd.
* split the system password checking routines out of smbd/password.c andAndrew Tridgell1998-08-101-10/+14
| | | | | into passdb/pass_check.c. This means SWAT no longer needs to link to smbd/password.c
* a few more things compile.Andrew Tridgell1998-08-091-31/+71
| | | | I'll do the rest tomorrow.
* swat compiles, with some even uglier hacks. we really have to doAndrew Tridgell1998-08-091-46/+85
| | | | something about our dependencies between seemingly unrelated code.
* nmbd compiles and links. I had to do some ugly stuff, putting files inAndrew Tridgell1998-08-091-83/+83
| | | | | | illogical places. Once I get everything compiled these will need to be revisited, but at least the new Makefile.in makes it really obvious what is out of place.
* close to having nmbd linking (just a bit of repository hacking to go)Andrew Tridgell1998-08-091-0/+346
|
* this gets smbd compiling and linking correctly with the new layout.Andrew Tridgell1998-08-093-1118/+705
|
* removed the if statements from the DEBUG() macro definitions.Andrew Tridgell1998-08-091-4/+4
| | | | | | | | | | | Chris, you should never put if statements in macros, use the ugly (a?b:c) form instead, otherwise you can produce incorrect code when you have things like: if (foo) DEBUG((blah)); else DEBUG((blooh));
* added ignore rules for the dummy filesAndrew Tridgell1998-08-091-0/+2
|
* the autoconf scripts are now converted to the new directory structureAndrew Tridgell1998-08-091-1/+1
| | | | now the Makefile .....
* added --with-nisplus-home optionAndrew Tridgell1998-08-081-0/+1
|
* First implementation of ChangeNotify - this version only checksJeremy Allison1998-08-032-2/+18
| | | | | | | | | | | | | | | | | | | for changes in the directory modify timestamps. A better version will look at the requested client flags, and create a hash that represents the current state of the directory, and check against this instead. debug.c: Added lp_timestamp_logs() function. loadparm.c: Added "change notify timeout" in seconds (default 60) - this is the scan rate for a directory. Added ""timestamp logs" boolean - default True. Turns off log timestamps (so I can read them :-). nttrans.c: ChangeNotify implementation. server.c: ChangeNotify implementation. shmem_sysv.c: Added exits on shmem errors (without them smbd can core dump if some calls fail). smb.h: Added ChangeNotify flags for future use. util.c: Tidied up typedef. Jeremy.
* This is the checkin of the debug changes.Christopher R. Hertel1998-07-312-14/+68
| | | | | | | | | | | Makefile.in: I've added debug.o. proto.h : Rebuilt, as is standard for these sorts of things. smb.h : New macros, etc. util.c : Debug code removed. I'll check in debug.c in the next step. Chris -)-----
* added test for getpwanam().Andrew Tridgell1998-07-311-0/+4
|
* Makefile.in: Moved UBIQX stuff into UTILOBJ.Jeremy Allison1998-07-302-4/+19
| | | | | | | | | | | | | | | | loadparm.c: Added "ole locking compatibility" option (default "true"). locking.c: Changes to implement union in files_struct. locking_shm.c: Changes to implement union in files_struct. nttrans.c: Made opening a directory explicit (we have to). Added create directory code for nttrans. reply.c: Changes to implement union in files_struct. server.c: Changes to implement union in files_struct. Added create directory code. trans2.c: Changes to implement union in files_struct. smb.h: Changes to implement union in files_struct. util.c: Changed linked list code to UNIQX linked list. This will make the other lists I need to implement for ChangeNotify and blocking locks easier. Jeremy.
* added HAVE_FUNCTION_MACRO testAndrew Tridgell1998-07-301-0/+1
|
* updated prototypesAndrew Tridgell1998-07-291-0/+1
|
* test for a broken inet_ntoa and replace it if necessary (forAndrew Tridgell1998-07-292-0/+4
| | | | IRIX+gcc-2.8.1)
* get rid of the runtime test for broken getgroups() and add a compileAndrew Tridgell1998-07-294-12/+15
| | | | | time test instead. This also allows us to get rid of the igroups element of a couple of structures.
* some merge cleanupsAndrew Tridgell1998-07-291-0/+0
|
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-295-1250/+657
|
* locking.c: Print messages when we downgrade a lock.Jeremy Allison1998-07-291-0/+1
| | | | | | | reply.c: Do the same mask expansion we do in trans2.c - needed for Win98. trans2.c: Make the mask expansion into a function call now we have to do it twice. Jeremy.
* loadparm.c: Added strict sync parameter.Jeremy Allison1998-07-281-1/+2
| | | | | | | locking.c: Added code to deal with real open mode of file. reply.c: Added strict sync parameter. server.c: Added strict sync parameter. Fixed open modes. Jeremy.
* chgpasswd.c: Fixed up debug calls to stop crashes if ptsname failed.Jeremy Allison1998-07-273-9/+1
| | | | | | | | | | | | local.h: Kept FSTYPE_STRING as Samba for now. nmbd_browsesync.c: Added bugfix from Matt Chapman mattyc@cyberdude.com - lmb_browserlist is now a struct ubi_dlList not a struct browse_cache_record *. server.c: smb.h: uid.c: password.c: Removed attrs code - it is not used anywhere. Jeremy
* Converted the browser database to a ubi_dLinkList. This should reduce codeChristopher R. Hertel1998-07-242-17/+14
| | | | | size, etc. Also did a bit of work to add comments. Chris -)-----
* locking.c: Added lock type to is_locked() and do_lock()Jeremy Allison1998-07-231-2/+4
| | | | | | | | | | | | as the code in reply_lockingX wasn't taking account of the difference between read and write locks ! How did this ever work :-) ! reply.c: server.c: Add lock type to is_locked() and do_lock(). util.c: Also added code from klausr@ITAP.Physik.Uni-Stuttgart.De to fix problem with log files growing too large if an smbd writes less than 100 debug messages. Jeremy.
* Fixed bug found by Richard Sharpe. After increasing files_struct size byJeremy Allison1998-07-222-1/+3
| | | | | | | | | MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that enumerates the array. Created new MAX_FNUMS in local.h, changed all code that iterates through the files_struct array to use this. (sorry Richard). Jeremy.
* includes.h: Added feature type USE_GRANTPT for pty code.Jeremy Allison1998-07-221-1/+5
| | | | | chgpasswd.c: Updated to use USE_GRANTPT feature definition. Jeremy.
* Code added to fix the renaming of a directory under NT SMB calls.Jeremy Allison1998-07-173-15/+18
| | | | | | | | | | | | | | | | local.h: Changed MAXDIR to MAX_OPEN_DIRECTORIES - shmem size also tuned by this. dir.c: Use MAX_OPEN_DIRECTORIES. nttrans.c: Allow opening of a directory to succeed. Doesn't actually open a file descriptor but takes a files_struct slot marked as an fd. reply.c: Changed to close any outstanding is_directory files. reply_close changed to understand directory files. server.c: Added open_directory(), close_directory() calls. smb.h: Added is_directory to files_struct. Changed OPEN_FNUM to check that target is !is_directory (this prevents the normal file calls from processing a directory files_struct. Jeremy.
* local.h: Added NTFS define if HAVE_NT_SMBS is defined.Jeremy Allison1998-07-171-1/+4
| | | | | nttrans.c: Fixed issue with access DELETE on renaming files. Jeremy.
* Makefile: Added nttrans.oJeremy Allison1998-07-163-5/+29
| | | | | | | | | includes.h: Added termios.h for AIX. nttrans.c: Working NT SMB calls ! pipes.c: Use strequal instead of strcmp. server.c: Use #defines rather than numbers. smb.h: Updated NT SMB #defines. Jeremy.