summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
AgeCommit message (Collapse)AuthorFilesLines
2009-07-08The migration to struct stat_ex broke the calculation ofJeremy Allison1-0/+2
create time from the existing timestamps (for systems that need to do this). Once the write time is changed via a sticky write, the create time might need to be recalculated. To do this I needed to add a bool into struct stat_ex to remember if the st_ex_btime field was calculated, or read from the OS. Also fixed the returning of modified write timestamps in the return from NTCreateX, SMBattr and SMBattrE (which weren't taking into account the modified timestamp stored in the open file table). Attempting to fix an issue with Excel 2003 and offline files. Volker and Metze, please review. Jeremy
2009-07-03do not redefine _INT32Matt Kraai1-2/+4
2009-06-27Add tstream_read_packetVolker Lendecke1-0/+1
2009-06-08Set SIGRTMIN to NSIGTimur I. Bakeyev1-1/+1
In the includes we define SIGRTMIN to 32 if it's not defined already. This value could be fairly low and it's better to use NSIG(number of defined signals) as the lower mark for the available signals. We have similar defenition in the source3/smbd/aio.c, which can be safely removed, as it comes from includes.h then. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-06Add some samba-style tldap utility functionsVolker Lendecke1-0/+1
2009-06-06Add the early start of an async ldap libraryVolker Lendecke1-0/+1
There's a lot of things this does not do yet: For example it does not parse the reply blob in the sasl bind, it does not do anything with controls yet, a lot of the ldap requests are not covered yet. But it provides a basis for me to play with a pdb_ads passdb module.
2009-05-27Gna, how long do I program in C now??? :-)Volker Lendecke1-2/+2
2009-05-26Attempt to fix the build on HP/UXVolker Lendecke1-0/+10
2009-05-26Attempt to fix the build on NetBSDVolker Lendecke1-0/+3
2009-05-26Revert "s3: fix build on systems with struct stat member st_flags"Björn Jacke1-3/+0
for a cleaner and more complete patch that Volker has in the queue :-)
2009-05-26s3: fix build on systems with struct stat member st_flagsBjörn Jacke1-0/+3
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke1-7/+26
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.
2009-04-21Move the security_descriptor utility code to the top-level.Jelmer Vernooij1-0/+1
2009-04-20Move some libgpo files to root.Jelmer Vernooij1-1/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-10Link in the threads functions, not yet used.Jeremy Allison1-0/+2
Jeremy.
2009-04-08Remove async_reqVolker Lendecke1-1/+0
2009-04-07s3:kerberos Rework smb_krb5_unparse_name() to take a talloc contextAndrew Bartlett1-3/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2009-03-23s3:libsmb: add a much simplified smb_siging infrastructureStefan Metzmacher1-0/+1
It's the job of the caller to maintain the seqnum/mid mapping. Hopefully we can use this code in s4 later too. metze
2009-03-18s3-spoolss: remove include/rpc_spoolss.h.Günther Deschner1-1/+0
Guenther
2009-03-03lib/util: remove samba specific talloc_get_type_abort()Stefan Metzmacher1-4/+0
metze
2009-03-01Use shared header file for character sets, remove old definitions from ↵Jelmer Vernooij1-1/+1
samba3 smb.h.
2009-03-01Add header files for secace and secacl.Jelmer Vernooij1-0/+2
2009-03-01Keep using Samba3's charset.h for now.Jelmer Vernooij1-1/+1
2009-03-01Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents.Jelmer Vernooij1-1/+1
2009-02-26Add tevent_req helpers to includes.hVolker Lendecke1-0/+2
2009-02-24s3: remove unused smb_ldap.hStefan Metzmacher1-2/+0
metze
2009-02-23prefer gssapi header files from subdirectoryBjörn Jacke1-3/+3
this fixes some compile time noise on FreeBSD 7
2009-02-18S3: Allow SMBD processes to survive in low memory condidtionstodd stecher1-0/+4
This commit adds a configure argument which allows for setting MADV_PROTECT in the madvise() API. With this enabled the kernel won't kill SMBD when it's running low on memory.
2009-02-13Fix the build. When you do "make distclean; ./autogen; ./configure; make" ↵Jeremy Allison1-0/+2
and it still doesn't build you know it's messed up. Jeremy.
2009-02-12[Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman1-0/+1
- port functionality from v3_3_test to master Derrell
2009-02-12today valgrind is available on 64bit Linux, tooBjörn Jacke1-4/+1
2009-02-09S3: New module interface for SMB message statistics gatheringtodd stecher1-0/+1
This changelist allows for the addition of custom performance monitoring modules through smb.conf. Entrypoints in the main message processing code have been added to capture the command, subop, ioctl, identity and message size statistics.
2009-02-09Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 ↵Jelmer Vernooij1-0/+2
and s4" lib/util already has discard_const_p. This reverts commit 0cb430c22e9c0af2248fbc15ce97a4d760df189d.
2009-02-05s3-lsa: move remaining lsa policy access_mask defines to idl.Günther Deschner1-1/+0
Guenther
2009-02-04s3-eventlog: w00t! remove last traces of old eventlog rpc marshalling.Günther Deschner1-1/+0
spoolss, I'm coming! Guenther
2009-02-01Add two new parameters to control how we verify kerberos tickets. Removes ↵Dan Sledz1-1/+18
lp_use_kerberos_keytab parameter. The first is "kerberos method" and replaces the "use kerberos keytab" with an enum. Valid options are: secrets only - use only the secrets for ticket verification (default) system keytab - use only the system keytab for ticket verification dedicated keytab - use a dedicated keytab for ticket verification. secrets and keytab - use the secrets.tdb first, then the system keytab For existing installs: "use kerberos keytab = yes" corresponds to secrets and keytab "use kerberos keytab = no" corresponds to secrets only The major difference between "system keytab" and "dedicated keytab" is that the latter method relies on kerberos to find the correct keytab entry instead of filtering based on expected principals. The second parameter is "dedicated keytab file", which is the keytab to use when in "dedicated keytab" mode. This keytab is only used in ads_verify_ticket.
2009-02-01Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke1-1/+1
2009-01-28async_sock: Move to top levelKai Blin1-1/+1
2009-01-27s3:smbd: make mdns registration event driven.Stefan Metzmacher1-14/+0
metze
2009-01-27async_req: Fix the S4 buildKai Blin1-1/+1
2009-01-21s3:libsmbconf: remove the init headers from smbconf.hMichael Adam1-0/+3
give the smbconf_init() dispatcher and the backends (smbconf_reg and smbconf_txt) a header of their own each. This allows to use the basic infrastructure and single backends individually. Michael
2009-01-15s3: make better use of ccache by not including version.h in every C-file.Michael Adam1-1/+0
version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
2009-01-09s3-svcctl: remove last traces of hand-marshalled svcctl code.Günther Deschner1-1/+0
Guenther
2009-01-05Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij1-1/+2
2009-01-05s3:events: move prototypes to event.hStefan Metzmacher1-1/+2
metze
2009-01-01Add iconv_convenience argument to size functions.Jelmer Vernooij1-1/+0
2008-12-30s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4Tim Prouty1-2/+0
2008-12-17s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.Günther Deschner1-1/+0
Guenther
2008-11-20s3-eventlog: move non rpc eventlog headers to own include file.Günther Deschner1-0/+1
Guenther
2008-11-02Remove global_loadparm stub in Samba 3 as it's no longer used.Jelmer Vernooij1-1/+0