summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-28Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.Jeremy Allison1-4/+5
Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba.
2012-06-19Revert "s3-lib Remove unused sys_fcntl_long()"Stefan Metzmacher1-0/+14
This reverts commit 846a697e20478798288afb43cdb7a9f389a15c69. This is still used in source3/smbd/oplock_irix.c metze
2012-06-06build: Rationalise AIO support in configure, ensure on by defaultAndrew Bartlett1-3/+3
With this change, the define to check for AIO is HAVE_AIO, consistant with other subsystems. It is now also on by default in the autoconf build, as it has been for waf. Andrew Bartlett
2012-06-02lib/replace: xattr wrappers in lib/replace rather than source3/lib/system.cAndrew Bartlett1-678/+0
This also moves all the still-used configure tests etc. The unused OSF API is also removed at this time. Andrew Bartlett
2012-04-06build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett1-5/+5
Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
2012-04-05s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configureAndrew Bartlett1-37/+0
If this is ever needed again, it would be more appropriate as an options argument to removexattr. Andrew Bartlett
2012-04-05s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configureAndrew Bartlett1-64/+0
If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
2012-04-05s3-vfs: Remove unused llistxattr call from VFS modules, system.c and configureAndrew Bartlett1-29/+0
If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
2012-04-05s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configureAndrew Bartlett1-51/+0
2012-04-05build: Remove SMB_STRUCT_DIR defineAndrew Bartlett1-1/+1
2012-04-05build: Remove sys_rewinddir wrapperAndrew Bartlett1-8/+0
2012-04-05build: Remove sys_closedir wrapperAndrew Bartlett1-10/+0
2012-04-05build: Remove sys_telldir wrapperAndrew Bartlett1-9/+0
2012-04-05build: Remove sys_seekdir wrapperAndrew Bartlett1-9/+0
2012-04-05build: Remove sys_readdir wrapperAndrew Bartlett1-9/+0
2012-04-05build: Remove sys_opendir wrapperAndrew Bartlett1-9/+0
2012-04-05build: Remove sys_fopen wrapperAndrew Bartlett1-10/+0
2012-04-05build: Remove sys_open wrapperAndrew Bartlett1-9/+0
2012-04-05build: Remove sys_creat wrapperAndrew Bartlett1-9/+0
2012-04-05build: Remove fallback call to sys_open as HAVE_CREAT is not actually ↵Andrew Bartlett1-8/+0
checked for
2012-04-05build: Remove sys_ftell wrapperAndrew Bartlett1-9/+0
2012-04-05build: Remove sys_lseek wrapperAndrew Bartlett1-9/+0
2012-04-05build: Remove sys_ftruncate wrapperAndrew Bartlett1-9/+0
2012-04-05build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any moreAndrew Bartlett1-143/+44
2012-03-24use usleep rather than sys_usleep in various places, in anticipation of ↵Jelmer Vernooij1-34/+0
usleep moving to libreplace.
2012-03-24lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij1-1/+1
The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
2012-02-17lib/util: Remove unused sys_sendto()Andrew Bartlett1-18/+0
Found by callcatcher. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 17 13:48:05 CET 2012 on sn-devel-104
2012-02-17lib/util: Remove unused sys_recv()Andrew Bartlett1-18/+0
Found by callcatcher. Andrew Bartlett
2012-02-17s3-lib Remove unused sys_fcntl_long()Andrew Bartlett1-14/+0
2012-02-17s3-lib Remove unused sys_fseek()Andrew Bartlett1-17/+0
2012-02-02s3: Use ARRAY_SIZE in bsd_attr_listVolker Lendecke1-1/+1
2012-01-06Comment out sys_get_number_of_cores() as we're no longer using this.Jeremy Allison1-0/+2
2012-01-06Add a sys_get_number_of_cores() function that calls sysconf or sysctlJeremy Allison1-0/+49
and tunes the aio threads.
2011-10-27Include uid_wrapper correctly.Andreas Schneider1-1/+0
2011-10-14Fix sys_fseek wrapperBrad Smith1-0/+2
Signed-off-by: Günther Deschner <gd@samba.org>
2011-10-06s3: Use the uid_wrapperVolker Lendecke1-0/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org>
2011-06-10Export init_stat_ex_from_stat for use in VFS modules.Richard Sharpe1-6/+6
Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Jun 10 13:23:37 CEST 2011 on sn-devel-104
2011-06-09s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
2011-06-01Change sys_getcd() to take no arguments and always return malloc'ed memory ↵Jeremy Allison1-7/+34
(or NULL). Part of the efforts to remove PATH_MAX on modern systems.
2011-05-31lib/util Move sys_memalign into lib/util/system.cAndrew Bartlett1-36/+0
2011-05-04Fold null terminator into listlen length, change to strlcpy.Jeremy Allison1-6/+4
2011-05-03s3-system: move LOCK_ defines to lib/system.cGünther Deschner1-0/+9
Guenther
2011-05-03lib/util Move more network utility functions from source3 into lib/utilAndrew Bartlett1-71/+0
This will help with the merge of the interfaces layer. Andrew Bartlett
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/passwd.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/capability.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/syslog.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-30lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner1-44/+0
Guenther
2011-02-26dirfd doesn't exist in some platforms.Jeremy Allison1-2/+4
Hack that should get the buildfarm back to green. Ensure dirfd() needs to be defined before we properly return fdopendir. This will do until we get a proper dirfd() defined in libreplace. From http://www.gnu.org/software/hello/manual/gnulib/dirfd.html This function is missing on some platforms: AIX 7.1, HP-UX 11, OSF/1 5.1, Solaris 10, mingw. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 26 04:19:55 CET 2011 on sn-devel-104
2011-02-14s3: move some defines to a better place.Günther Deschner1-0/+11
Guenther