summaryrefslogtreecommitdiff
path: root/lib/replace
AgeCommit message (Collapse)AuthorFilesLines
2012-09-29lib/replace: Add test for what flag we need for -Werror behaviourAndrew Bartlett1-0/+9
2012-09-25replace: Avoid returning value in void setproctitle() replacement.Jelmer Vernooij1-1/+0
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Tue Sep 25 06:38:40 CEST 2012 on sn-devel-104
2012-09-24replace: Support setproctitle().Jelmer Vernooij4-0/+19
This uses the setproctitle() from libc, libsetproctitle or libbsd. If none is available it provides a dummy implementation.
2012-09-24lib/replace: Look for special flags needed for c99Andrew Bartlett1-0/+10
This is normally handled by the waf core, but for HP-UX we currently fail. The autoconf code hard-codes a case for HP-UX, but I want to try testing it using a generic system first. Andrew Bartlett
2012-09-24lib/replace: Improve mkstemp test in autoconf and wafAndrew Bartlett2-4/+34
On the Sernet-solaris8 host, this test passed in the autoconf build, then failed in the recursive waf build. This newer test should probe the behaviour more closely, by checking we get two distinct, secure files. Andrew Bartlett
2012-09-23lib/replace: Remove unused nap and therefore the SCO defineAndrew Bartlett1-10/+0
In any case, the Samba Team stopped supporting SCO systems a long time ago. Andrew Bartlett
2012-09-23lib/replace: Try to fix build on HP-UX for os2_delete testAndrew Bartlett4-17/+6
The issue is that this file is both used in an autoconf test, and later in a smbtorture test. Because os2_delete.c does not include replace.h, bool may not be defined. So, instead we shift the need for bool to a different header. (The readdir tests in repdir.m4 are not yet in the waf configure). Andrew Bartlett
2012-09-23ntdb: Try to fix the build on Solaris which does not have errAndrew Bartlett1-0/+13
2012-09-18replace: fix 520c9b0b0ae33Björn Jacke1-1/+1
fix typo in ifdef. Thanks to Joachim Schmitz for spotting this! Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Sep 18 16:06:18 CEST 2012 on sn-devel-104
2012-09-17libreplace: Bug 8107, Fix poll replacement to become a msleep replacementJoachim Schmitz1-1/+1
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-09-16replace: add some includes for poll.hBjörn Jacke1-0/+6
See bug #8107 Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Sun Sep 16 04:05:08 CEST 2012 on sn-devel-104
2012-09-11lib/replace: remove duplicate check for inotifyMichael Adam1-1/+1
2012-09-10osX define uint64_t as long long intMatthieu Patou1-1/+1
2012-09-07build: define _BSD_TYPES on IRIX to have types like u_shortBjörn Jacke2-0/+2
why the hell do IRIX systems headers like quota.h use types that are available only with such a define...?
2012-07-26s3/aio_fork: fix build on irixBjörn Jacke2-0/+5
IRIX needs _XOPEN_SOURCE defined for SCM_RIGHTS to be available
2012-07-04replace: make the INT64_MAX define more portableBjörn Jacke1-1/+1
2012-06-29Move back to using per-thread credentials on Linux. Fixes the glibc native ↵Jeremy Allison2-3/+5
AIO lost wakeup problem. See this post: https://lists.samba.org/archive/samba-technical/2012-June/085101.html for details. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jun 29 03:57:45 CEST 2012 on sn-devel-104
2012-06-28replace: define INT64_MAX when not definedBjörn Jacke1-0/+4
Tru64 doesn't have any stdint.h Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 00:45:58 CEST 2012 on sn-devel-104
2012-06-16attr: Look for attr/attributes.h too.Jelmer Vernooij3-2/+4
Fixes finding of ATTR_ROOT on GNU/kFreeBSD. Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sat Jun 16 18:54:27 CEST 2012 on sn-devel-104
2012-06-14lib/replace: define HAVE_WORKING_STRPTIME instead of REPLACE_STRPTIMEStefan Metzmacher3-10/+16
That makes the logic in 'wscript' simpler. metze
2012-06-14lib/replace: execute strptime.c testsStefan Metzmacher1-0/+1
They need runtime verification. metze
2012-06-14Revert "replace: use replace for non 'samba' compliant strptime"Stefan Metzmacher1-19/+0
This reverts commit 4ea7d4694a8353fc55ecd12cb09b9c91ffde7b3f. A better fix will follow. metze
2012-06-14lib/replace: add more condition to add snprintf.cStefan Metzmacher1-1/+3
metze
2012-06-14Revert "lib/replace: Fix snprintf() override for systems with a broken ↵Stefan Metzmacher1-1/+1
snprintf()" This reverts commit bbc1b0c9853322da10483f72c020fe0dd83b28fa. A more generic fix will follow. metze
2012-06-14lib/replace: s/execute=1/execute=TrueStefan Metzmacher1-1/+1
metze
2012-06-13replace: fix unused variable warningBjörn Jacke1-3/+6
e2747fc62c2acbab143c4971469e0a4fc36d8789 fixed ... Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Jun 13 23:57:58 CEST 2012 on sn-devel-104
2012-06-13Revert "replace: fix unused variable warning"Björn Jacke1-5/+4
This reverts commit e2747fc62c2acbab143c4971469e0a4fc36d8789. one line slipped into a wrong ifndef ...
2012-06-13replace: fix unused variable warningBjörn Jacke1-4/+5
found by the IRIX compiler
2012-06-06lib/replace: Fix snprintf() override for systems with a broken snprintf()Andrew Bartlett1-1/+1
This ensures we provide the replacement functions that we need. Andrew Bartlett
2012-06-05libreplace: Add copyrights to ease tracking of this file in futureAndrew Bartlett1-0/+2
As GIT didn't realise this was a copy out of lib/system.c, this should make it easier to track the copyright holders on this file. Herb's name wasn't on the original file, but was the only other author I could find in the git logs. I've added my copyright here too. Andrew Bartlett
2012-06-05libreplace: Remove autoconf build systemAndrew Bartlett9-3648/+0
This leaves the parts required to build libreplace as a static lib for the autoconf build Andrew Bartlett
2012-06-04libreplace: Ensure we link xattr.c on MacOSAndrew Bartlett1-1/+1
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 4 02:36:55 CEST 2012 on sn-devel-104
2012-06-03librepace: put #defines after #include "sys/xattr.h"Andrew Bartlett2-40/+8
This avoids redefining the system xattr functions, which should fix MacOS. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Jun 3 09:46:44 CEST 2012 on sn-devel-104
2012-06-03lib/replace: Undo change of 0 -> NULLAndrew Bartlett1-1/+1
This reverts part of e9d797e153ae95561dbb10b56a41281b2472f137 as in the autoconf tests, NULL isn't available! (it is available in waf, which caused confusion) Andrew Bartlett
2012-06-03libreplace: Fix up MacOS xattr functionsAndrew Bartlett1-0/+18
We need undo the rep_ macro to call the real OS function. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Jun 3 06:21:21 CEST 2012 on sn-devel-104
2012-06-03libreplace: Link libreplace against attr when requiredAndrew Bartlett1-1/+8
The autoconf Samba build will return to over-linking with -lattr on systems with both the XFS compat API and native xattrs. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Jun 3 03:56:05 CEST 2012 on sn-devel-104
2012-06-03libreplace: Use true rather than True in xattr.cAndrew Bartlett1-2/+2
This should fix the build on IRIX. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Jun 3 02:05:35 CEST 2012 on sn-devel-104
2012-06-02libreplace: Fix build on MacOS where we have the same fn name but more argumentsAndrew Bartlett1-8/+8
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Jun 2 15:52:51 CEST 2012 on sn-devel-104
2012-06-02libreplace: Solaris needs system/dir.h for that xattr wrapper implementationAndrew Bartlett1-0/+1
2012-06-02libreplace: Add missing tests for HAVE_MREMAP and HAVE_SHARED_MMAPAndrew Bartlett1-0/+10
2012-06-02libreplace: Fix autoconf build on platforms needing xattrsAndrew Bartlett1-1/+1
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Jun 2 07:23:32 CEST 2012 on sn-devel-104
2012-06-02lib/replace: Relicence xattr.c to LGPLv3Andrew Bartlett1-11/+14
By the kind consent of the copyright holders. (There wasn't any code from tridge in the code brought in from source3/lib/system.c). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Jun 2 04:00:42 CEST 2012 on sn-devel-104
2012-06-02lib/replace: Merge remaining xattr test details from lib/utilAndrew Bartlett5-32/+34
I prefer the longer XATTR_ADDITIONAL_OPTIONS define and the NULL rather than 0 values in the getxattr test. Andrew Bartlett
2012-06-02s4-xattr: Use libreplace xattr functions directlyAndrew Bartlett1-0/+6
2012-06-02lib/replace: xattr wrappers in lib/replace rather than source3/lib/system.cAndrew Bartlett4-1/+172
This also moves all the still-used configure tests etc. The unused OSF API is also removed at this time. Andrew Bartlett
2012-06-02lib/replace: We cannot use strchr_m in lib/replaceAndrew Bartlett1-6/+6
In any case, it is always safe to search for . even in a multibyte string. Andrew Bartlett
2012-06-02lib/replace: DEBUG is not acceptable here, as this may not be linked into SambaAndrew Bartlett1-7/+0
2012-06-02lib/replace: Copy lib/system.c xattr wrappers to lib/replaceAndrew Bartlett1-0/+703
2012-05-23Introduce system MIT krb5 build with --with-system-mitkrb5 option.Alexander Bokovoy1-1/+1
System MIT krb5 build also enabled by specifying --without-ad-dc When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level configure in WAF build we are trying to detect and use system-wide MIT krb5 libraries. As result, Samba 4 DC functionality will be disabled due to the fact that it is currently impossible to implement embedded KDC server with MIT krb5. Thus, --with-system-mitkrb5/--without-ad-dc build will only produce * Samba 4 client libraries and their Python bindings * Samba 3 server (smbd, nmbd, winbindd from source3/) * Samba 3 client libraries In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture. This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
2012-05-13libreplace: Fix symbol names for snprintf/asprintf/vasprintf.Jelmer Vernooij1-6/+6
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun May 13 05:16:28 CEST 2012 on sn-devel-104