summaryrefslogtreecommitdiffstats
path: root/source3/include/smb_macros.h
Commit message (Collapse)AuthorAgeFilesLines
* s3:include: implement trans_oob() as wrapper to smb_buffer_oob()Stefan Metzmacher2011-10-261-0/+3
| | | | metze
* s3:include: make smb_setlen() a macroStefan Metzmacher2011-10-211-0/+1
| | | | metze
* s3:include: use smb_[set]len_[nbt|tcp]() macrosStefan Metzmacher2011-10-191-4/+4
| | | | metze
* s3:smb_macros.h: simplify _smb_setlen() and _smb_setlen_large()Stefan Metzmacher2011-08-101-6/+4
| | | | | | This also takes care of the correct casting. metze
* s3: Remove unused ERROR_FORCE_NT macroVolker Lendecke2011-08-021-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 2 20:32:08 CEST 2011 on sn-devel-104
* s3: Remove unused ERROR_DOS macroVolker Lendecke2011-08-021-1/+0
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-08-021-3/+3
|
* s3:include: make use of cli_state_capabilities() in SERVER_HAS_UNIX_CIFS()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-1/+0
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-091-1/+0
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+0
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-091-1/+0
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+0
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-2/+1
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3-talloc Remove unused TALLOC zeronull functions and macro definitionsAndrew Bartlett2011-06-091-21/+0
| | | | | | These have been under #if 0 for a long time now. Andrew Bartlett
* Fix many const compiler warnings.Jeremy Allison2011-05-051-0/+1
|
* s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCHAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEMAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDENAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLYAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-lib: Remove unused _w functions.Andrew Bartlett2011-04-131-1/+0
| | | | | | | | | In general we don't manipulate UTF16 strings internally, particularly as they are also multibyte, so are no easier to work with than UTF8. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* 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)