summaryrefslogtreecommitdiffstats
path: root/source3/include/smb_macros.h
Commit message (Collapse)AuthorAgeFilesLines
* s3: remove TvalDiff macro, we can use the shared usec_time_diff functionBjörn Jacke2010-09-161-9/+0
|
* s3: remove TspecDiff macro, we can use the shared nsec_time_diff functionBjörn Jacke2010-09-161-9/+0
|
* s3: add TspecDiff macroBjörn Jacke2010-08-311-0/+9
|
* s3-registry: use some prs macros to the only place where they are used.Günther Deschner2010-07-161-4/+0
| | | | Guenther
* s3-libads: move keytab macros out of ads.h.Günther Deschner2010-07-011-0/+9
| | | | Guenther
* s3: Remove the pointless PRINTERNAME macroVolker Lendecke2010-06-131-1/+0
|
* s3: Remove the pointless SERVICE macroVolker Lendecke2010-06-131-1/+0
|
* Rename reply_doserror() -> reply_force_doserror().Jeremy Allison2009-12-211-1/+1
| | | | | | | Rewrite all calls to reply_nterror(NT_STATUS_DOS()) to reply_force_doserror() and update the comment in smbd/error.c Jeremy.
* reply_force_nterror() is not used anywhere. Remove it.Jeremy Allison2009-12-181-1/+0
| | | | Jeremy.
* Revert "s3: Make the implicit reference to Protocol in is_in_path() explicit"Volker Lendecke2009-11-231-0/+3
| | | | This reverts commit f7b4151a64d8c6851e62255a7139fd00a5fc63a3.
* s3: Make the implicit reference to Protocol in is_in_path() explicitVolker Lendecke2009-11-211-3/+0
|
* Remove reply_unixerror() - no longer needed. Should make Metze's refactoring ↵Jeremy Allison2009-07-101-1/+0
| | | | | | a lot easier. Jeremy.
* s3:smbd: implement smbd_smb2_request_error/done() as macros on top of the ↵Stefan Metzmacher2009-06-051-3/+0
| | | | | | _ex() function metze
* Change smbd_smb2_request_error() to add a __location__.Jeremy Allison2009-06-041-0/+3
| | | | | This allows quick identification of smb2 parsing errors. Jeremy.
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
* s3: only define TALLOC_ZERO if neededStefan Metzmacher2009-03-161-0/+2
| | | | metze
* Remove the global variable "chain_size"Volker Lendecke2009-01-311-1/+1
|
* talloc_free() copes with a NULL pointer just fineVolker Lendecke2009-01-241-1/+1
| | | | Saved around 10kb of code on my box :-)
* Move 128 bytes from the data to the text segmentVolker Lendecke2008-12-141-1/+1
|
* change CHECK_READ to use smb_request instead of inbufVolker Lendecke2008-11-081-2/+2
|
* Remove some direct inbuf references by adding smbreq_bufremVolker Lendecke2008-11-021-0/+2
|
* Remove IS_DOT and IS_DOTDOT macros, already provided by libreplace orJelmer Vernooij2008-11-011-8/+0
| | | | the system.
* Move ABS() to libutil.Jelmer Vernooij2008-11-011-24/+0
|
* Samba3: Include util.h header file rather than having custom prototypes.Jelmer Vernooij2008-11-011-11/+1
|
* Remove unused CHECK_FSP macroVolker Lendecke2008-10-081-16/+0
|
* Remove current_user references from trans2.cVolker Lendecke2008-06-191-2/+0
| | | | | This involved replacing the CHECK_NTQUOTA_HANDLE_OK macro by a function. (This used to be commit 5595cdf837edb82db69a3e57bcf3108be7feeeb8)
* IDL: build generated nbt code.Günther Deschner2008-04-171-0/+3
| | | | | Guenther (This used to be commit 554dcfdab03f9d06f319a3234d56cf44dc38c9da)
* Remove smbmount.Karolin Seeger2008-02-281-3/+2
| | | | | Karolin (This used to be commit 5fbd98f7065268ae134108310119078ad8f62322)
* Fixup hot paths - add macro for toupper (c < 0x80).Jeremy Allison2008-01-091-0/+8
| | | | | | This now matches 3.0.x on my micro-tests. Jeremy. (This used to be commit 329b924cba8225002ca40db26c45b31d141a0925)
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-4/+7
| | | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-10/+6
| | | | | | negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
* Change the client library to write directly out ofJeremy Allison2007-11-021-2/+2
| | | | | | | | the incoming buffer in the non-signed case. Speeds up writes by over 10% or so. Complete the server recvfile implementation. Jeremy. (This used to be commit 81ca5853b2475f123faab3b550f0a7b24ae3c208)
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-3/+2
| | | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy. (This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-5/+14
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r25103: Ensure we don't return unwritten memory (valgrind caught).Jeremy Allison2007-10-101-3/+0
| | | | | Jeremy. (This used to be commit b3f0d39d11fa18b7bfef6cec88efaf4a2be2d6e0)
* r24803: For some funny reason us4/gcc seems to fall over the 'Volker Lendecke2007-10-101-1/+1
| | | | (This used to be commit 08e309e955eea58df1eb88f848386eb2acbd31ba)
* r24762: Fix the build, missed TALLOC_SIZE -> talloc_named_const.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit e2d924248ef4c8158e80bfffa5d734b9723112ce)
* r24759: Comment out the _nonnull calls for 3.2.x, as agreed with tridge.Jeremy Allison2007-10-101-2/+22
| | | | | | | Leaving the commented out code for now, in case I need to re-test some stuff. Jeremy (This used to be commit 343be0464342aac14a9592fd73a71b7589ba34d5)
* r24464: Now Volker removed the readbmpx we don't need cached errors any more.Jeremy Allison2007-10-101-6/+0
| | | | | Jeremy. (This used to be commit 9256ec0a20f532c7dd7ddc2d3534336a47e6c2d2)
* r24311: add a reply_force_nterror() macroStefan Metzmacher2007-10-101-0/+1
| | | | | metze (This used to be commit b9ae00f4980c305f2f7334b139f9bc72fd9afbd6)
* r24078: Add reply_unixerrorVolker Lendecke2007-10-101-0/+1
| | | | (This used to be commit 10ac991750e9476299d39ac6f763d1638ff8c619)
* r23997: Check in the infrastructure for getting rid of the global ↵Volker Lendecke2007-10-101-0/+4
| | | | | | | | | | | | | | | | | | | InBuffer/OutBuffer The complete history of this patch can be found under http://www.samba.org/~vlendec/inbuf-checkin/. Jeremy, Jerry: If possible I would like to see this in 3.2.0. I'm only checking into 3_2 at the moment, as it currently will slow down operations for all non-converted (i.e. all at this moment) operations, as it will copy the talloc'ed inbuf over the global InBuffer. It will need quite a bit of effort to convert everything necessary for the normal operations an XP box does. I have patches for negprot, session setup, tcon_and_X, open_and_X, close. More to come, but I would appreciate some help here. Volker (This used to be commit 5594af2b208c860d3f4b453af6a649d9e4295d1c)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23510: Tidy calls to smb_panic by removing trailing newlines. Print theJames Peach2007-10-101-3/+4
| | | | | failed expression in SMB_ASSERT. (This used to be commit 171dc060e2a576d724eed1ca65636bdafffd7713)
* r22920: Add in the UNIX capability for 24-bit readX, as discussedJeremy Allison2007-10-101-0/+4
| | | | | | | with the Apple guys and Linux kernel guys. Still looking at how to do writeX as there's no recvfile(). Jeremy. (This used to be commit a53268fb2082de586e2df250d8ddfcff53379102)
* r22852: merge fixes for CVE-2007-2446 and CVE-2007-2447 to all branchesGerald Carter2007-10-101-2/+0
| | | | (This used to be commit f65214be68c1a59d9598bfb9f3b19e71cc3fa07b)
* r22564: Move the _strict -> _zeronull functions into lib/util.cJeremy Allison2007-10-101-9/+9
| | | | | | and out of talloc at tridge's request. Jeremy. (This used to be commit da78488b86c464b6861d36398cca7524ad5906fe)
* r22543: Fix bad call to talloc_strict (too few args).Jeremy Allison2007-10-101-1/+1
| | | | | | Should fix build farm breakage. Jeremy. (This used to be commit efb43432b01f0b55df409225c7526ff232c00171)
* r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-10-101-7/+9
| | | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy. (This used to be commit f6fa3080fee1b20df9f1968500840a88cf0ee592)