summaryrefslogtreecommitdiffstats
path: root/source/include/smb_macros.h
Commit message (Collapse)AuthorAgeFilesLines
* small merges from SAMBA_3_0; mostly typos, renames, etc...Gerald Carter2003-01-151-1/+0
|
* Make the 'service' in make_connection() use an fstrcpy(), and an fstring,Andrew Bartlett2003-01-121-1/+0
| | | | | | | | | becouse that is what it's input (reply_tcon_and_x) uses, and becouse we really don't want supprises for service names. Also remove a legacy #define, in favor of the lp_ equiv. Andrew Bartlett
* Remove FILE_MACRO as __FILE__ is ANSI C.Tim Potter2002-12-041-6/+6
|
* use FILE_MACRO instead of __FILE__Herb Lewis2002-12-031-6/+6
| | | | use FUNCTION_MACRO instead of __FUNCTION_
* Ensure we've failed a lock with a lock denied message before automaticallyJeremy Allison2002-09-111-6/+9
| | | | | pushing it onto the blocking queue. Jeremy.
* Merged initial allocation code for IFSTEST fix.Jeremy Allison2002-08-231-2/+1
| | | | Jeremy.
* fixed a problem with the smb_buf() macro on some compilersAndrew Tridgell2002-04-161-1/+1
|
* i forgot to commit these parts of the string handling patch earlier. Sorry.Andrew Tridgell2002-04-161-1/+4
|
* include/smb_macros.h: Don't round up an allocation if the size is zero.Jeremy Allison2002-03-131-1/+1
| | | | | | | | | | | | | | "One of these locks is not like the others... One of these locks is not quite the same" :-). When is a zero timeout lock not zero ? When it's being processed by Windows 2000 of course.. This code change, ugly though it is - completely fixes the foxpro/access multi-user file system database problems that people have been having. I used a *wonderful* test program donated by "Gerald Drouillard" <gerald@drouillard.ca> which allowed me to completely reproduce this problem, and to finally determine the correct fix. This also explains why Windows 2000 is *so slow* when responding to the smbtorture lock tests. I *love* it when all these things come together and finally make sense :-). Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-1/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Added CIFS UNIX extension code to client.Jeremy Allison2002-01-161-0/+6
| | | | Jeremy.
* First part of UNIX extensions (#ifdefed out) more to follow.Jeremy Allison2002-01-101-0/+6
| | | | Jeremy.
* Clarify doc for SAFE_FREE.Martin Pool2002-01-031-3/+7
|
* Welcome to preprocessor hell. Had to put a #ifndef around SAFE_FREE toTim Potter2002-01-031-0/+3
| | | | | | | stop smb_macros.h and tdb.h from fighting with each other. I tried to rearrange the #include file order but that breaks other stuff. Aargh!
* Fixed allocation bug in database prog. Some format fixes.Jeremy Allison2001-11-121-0/+1
| | | | Jeremy.
* Fixup __LPID -> _LPID.Jeremy Allison2001-11-091-1/+1
| | | | Jeremy.
* a big one:Simo Sorce2001-11-041-0/+1
| | | | | | | | | | | | | | | | | - old mangle code has gone, the new one based on tdb seem resonably ok probably the valid.dat table need to be updated to treat wild chars as invalid ones (work ok without it) - a LOT of new string manipulation function for unicode, they are somewhat tested but a review would not be bad - some new function I will need for the new unix_convert function I'm writing, this will be renamed filename_convert and use only unicode strings. - charconv, I attached a comment, if someone wnat to look if I'm right or just was hacking to late in the night to make a sane one :) of course any bug is my responsibility an will be pleased to see patches if you find any. :-) Simo.
* Restored old Bmpx code - actually used by OS/2.Jeremy Allison2001-10-191-0/+12
| | | | Jeremy.
* Finally kill off the SMBENCRYPT() macro.Andrew Bartlett2001-09-301-2/+0
|
* introduce SAFE_FREE() macro as suggested by andreas moroder.Simo Sorce2001-09-171-0/+3
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-1/+1
| | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default.
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-1/+0
|
* - fixed proto.h build on systems using a parallel makeAndrew Tridgell2001-09-061-0/+3
| | | | - changed DENY1 and DENY2 tests to only report errors
* added filename to error_packet()Andrew Tridgell2001-09-051-4/+4
|
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-1/+1
| | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-17/+8
| | | | | | | | | | | | | | | | major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night
* Added "use mmap" for HPUX.Jeremy Allison2001-07-301-0/+1
| | | | Jeremy.
* The big character set handling changeover!Andrew Tridgell2001-07-041-12/+12
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Fixed the nastiest locking bug to track down.... smb_pids are sent in theJeremy Allison2001-07-021-0/+1
| | | | | lockingX calls - use that instead of smb_pid in the packet. Jeremy.
* Ok - this is a big patch - and it may break smbd a bit (althoughJeremy Allison2000-10-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | I hope not). If you encounter strange file-serving behavior after this patch then back it out. I analysed our stat() usage and realised we were doing approx. 3 stat calls per open, and 2 per getattr/setattr. This patch should fix all that. It causes the stat struct returned from unix_convert() (which now *must* be passed a valid SMB_STRUCT_STAT pointer) to be passed through into the open code. This should prevent the multiple stats that were being done so as not to violate layer encapsulation in the API's. Herb - if you could run a NetBench test with this code and do a padc/par syscall test and also run with the current 2.2.0 code and test the padc/par syscalls I'd appreciate it - you should find the number of stat calls reduced - not sure by how much. The patch depends on unix_convert() actually finding the file and returning a stat struct, or returning a zero'd out stat struct if the file didn't exist. I believe we can guarentee this to be the case - I just wasn't confident enough to make this an assertion before. Ok ok - I did write this whilst at the Miami conference..... sometimes you get a little free time at these things :-). Jeremy.
* Inlined many of the vfs_XXX calls as macros for speed.Jeremy Allison2000-10-061-0/+41
| | | | Jeremy.
* fixed IRIX compiller error messageHerb Lewis2000-09-261-1/+1
|
* Reverted the change Luke made. Removed IS_BITS_SET_XX macros.Jeremy Allison2000-08-141-5/+0
| | | | | | | | Do not re-add them. These macros are unsafe as they are not understood. Change all TNG code using them to correct '&' and '|' please. IS_BITS_SET_ALL was being used in cmd_interp.c when IS_BITS_SET_SOME should have been used. Jeremy.
* restored IS_BITS_SET_xxx macros.Luke Leighton2000-08-141-0/+5
|
* removed (void) typecast from SMB_ASSERTGerald Carter2000-08-121-1/+1
| | | | jerry
* Tidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need ↵Jeremy Allison2000-08-011-5/+0
| | | | | | | | NT_STATUS_XXX). Removed IS_BITS_xxx macros as they were just reproducing "C" syntax in a more obscure way. Jeremy.
* Luke, I am moving the code back into passdb/passdb.c, this the correctJeremy Allison2000-06-091-8/+0
| | | | | | | | | | | | | place to do this, not in smbd/passwd.c Please don't change this without asking first, I have run this past Andrew so talk to him (I'm on vacation next week). I also removed the g_newXXX macros. There are essentially a private C extension, not used anywhere else in the code, and add no functionality over malloc(XX) and make the code harder to understand (everyone knows what malloc does). Jeremy.
* dynamic allocation of NET_USER_INFO_3 gids.Luke Leighton2000-06-091-0/+8
| | | | | | | | | | jeremy, the intent is to call se_access_check() with usr-sid, grp-sid, array-of-group-rids (but array-of-group-sids would do). please do look at smbd/lanman.c's api_NetWkstaGetInfo, it will show you that we really do need to store the entire NET_USER_INFO_3 structure. then again, api_NetWkstaGetInfo is only used by win9x so who cares :)
* Getting back to a compilable state (not there yet but close).Jeremy Allison2000-06-011-8/+0
| | | | | | | Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy.
* - removed all our old wildcard matching code and replaced it with aAndrew Tridgell2000-04-301-8/+0
| | | | | | | | | | | | | | | | call to ms_fnmatch(). This also removes all the Win9X semantics stuff and a bunch of other associated cruft. - moved the stat cache code into statcache.c - fixed the uint16 alignment requirements of ascii_to_unistr() and unistr_to_ascii() - trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as unicode always (at least thats what NT4 does) - fixed some errors in the in-memory tdb code. Still ugly, but doesn't crash as much
* Now that fsp's are created on successful file open, the structure memberJeremy Allison2000-04-241-2/+2
| | | | | | | | | | | | fsp->open is no longer needed (if an fsp pointer is valid, then it's open :-). NB for Luke, this patch also did not apply to TNG. TNG is not yet identical w.r.t file serving with HEAD. This makes it impossible for me to help maintain TNG. Please fix asap. lib/substitute.c: Removed unused variable (pidstr). Jeremy.
* Ensure that CHECK_FNUM rejects fd == -1 correctly.Jeremy Allison2000-04-121-1/+4
| | | | Jeremy.
* dded Microsoft Dfs services.Shirish Kalele2000-03-081-0/+1
| | | | | | | | | | | | | | | | | * added a new msdfs/ directory under source/ * added msdfs sources under this directory. * modified configure setup to add a --with-msdfs configure time option Modified Files: Makefile.in acconfig.h configure configure.in include/config.h.in include/includes.h include/proto.h include/smb.h include/smb_macros.h param/loadparm.c smbd/negprot.c smbd/nttrans.c smbd/process.c smbd/reply.c smbd/server.c smbd/trans2.c Added Files: include/msdfs.h msdfs/README msdfs/msdfs.c msdfs/msdfs_tdb.c msdfs/parse_dfs_map.c ----------------------------------------------------------------------
* Busting up of source/include/smb.h into smaller pieces which can beTim Potter2000-02-031-0/+236
| | | | #included by VFS modules without bringing in too much other junk.
* 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1999-12-131-154/+0
| | | | that were in the head branch but weren't in SAMBA_2_0
* improving createuser account command to be able to add workstationsLuke Leighton1999-12-011-4/+5
| | | | and then set a default random password.
* Moved a whole bunch of macros out of smb.h and into their own #includeTim Potter1999-07-221-0/+153
file.