summaryrefslogtreecommitdiffstats
path: root/lib/replace
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug 7462 - Non-standard SA_RESETHAND is used in ...lib/tevent/tevent_sigJeremy Allison2011-08-021-4/+0
| | | | | | | | Make SA_RESETHAND conditional on its existance. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Aug 1 22:03:45 CEST 2011 on sn-devel-104 (cherry picked from commit 0c67efdd68b9808542c090b9fd9920e4e37d85d0)
* libreplace: include sys/file.h only when availableBjörn Jacke2011-06-172-1/+3
| | | | thanks to Joachim Schmitz <schmitz@hp.com>. This fixes #7460.
* lib/replace: make sure IPV6_V6ONLY is available for IPv6 supportStefan Metzmacher2010-05-111-0/+8
| | | | | | | | | We rely on IPV6_V6ONLY being supported. See bug #7196. metze (cherry picked from commit 41cd6f992829c45c890f5daf78eb3019633f3620) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/replace: add replacement for IPV6_V6ONLY on linux systems with broken ↵Stefan Metzmacher2010-05-112-0/+51
| | | | | | | | | | | headers This is needed on SLES8. See bug 7196. metze (cherry picked from commit e06cf3950252a46486aa046a4552ed6ebff175b3) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Output %p as unsigned in snprintf replacement.Peter Rosin2009-12-191-0/+1
|
* libreplace: added likely()/unlikely() macros for gccAndrew Tridgell2009-09-171-0/+19
| | | | | | These macros allow the compile to better optimise code that has a lot of if statements. I particularly want to use this for our low level generated NDR code.
* libreplace: white space cleanupsBjörn Jacke2009-09-152-12/+12
|
* Prepend "$libreplacedir/" to all objects in LIBREPLACEOBJMatt Kraai2009-09-147-14/+14
|
* LIBREPLACEOBJ now contains the full pathAndrew Tridgell2009-08-241-4/+1
|
* make lib/replace more usable in standalone buildsAndrew Tridgell2009-08-241-2/+2
| | | | This makes the lib/replace m4 work in lib/talloc as a standalone build
* fixed getpass m4Andrew Tridgell2009-08-241-2/+2
| | | | This allows the getpass.m4 code to work in standalone talloc builds
* libreplace: undef AI_ADDRCONFIG on QNX 6.3.0 (fix bug #6630)Matt Kraai2009-08-121-0/+14
| | | | | | | | | | | Some of the functions in source3/lib/util_sock.c use AI_ADDRCONFIG. On QNX 6.3.0, this macro is defined but, if it's used, getaddrinfo will fail. This prevents smbd from opening any sockets. If I undefine AI_ADDRCONFIG on such systems and allow lib/replace/system/network.h to define it to be 0, this works around the issue. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* libreplace: set SONAMEFLAG to "-Wl,-soname=" on QNXMatt Kraai2009-08-081-1/+1
|
* include unix.h if it's availableMatt Kraai2009-07-192-0/+5
|
* libreplace: update library search path variablesBjörn Jacke2009-07-051-1/+4
|
* Add new replace check for --version-scriptSimo Sorce2009-06-151-0/+16
| | | | | | Allows us to pass an export files on Linux and Solaris so that we can expose only symbols that are actually supposed to be global, and keep as local anything else.
* s4:heimdal: import lorikeet-heimdal-200906080040 (commit ↵Andrew Bartlett2009-06-121-1/+5
| | | | | | | | | | | 904d0124b46eed7a8ad6e5b73e892ff34b6865ba) Also including the supporting changes required to pass make test A number of heimdal functions and constants have changed since we last imported a tree (for the better, but inconvenient for us). Andrew Bartlett
* try to get PICFLAG right for HP-UX with gccAndrew Tridgell2009-06-091-6/+5
|
* Add langinfo.h to the system/locale.hTimur I. Bakeyev2009-06-082-1/+5
| | | | | | | | | | | | | | | This patch for Samba4. It's not really inspired by any real need, just for the consistency. We define replace/system/locale.h as a generic header, that includes all locale related headers and we are using nl_langinfo at least in Samba3. So, it would be consistent to add yet another locale-related header to the set of locale.h headers. Here is the patch. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* replace: add fallback define for IOV_MAXStefan Metzmacher2009-06-081-0/+16
| | | | | | This hopefully fixes the build on IRIX. metze
* nss_wrapper: try to fix the build of nss_wrapper on solaris.Günther Deschner2009-05-301-0/+1
| | | | Guenther
* Fix linker flags on non-Linux GNU platforms.Samuel Thibault2009-05-161-5/+5
| | | | | | (e.g. Debian GNU/kFreeBSD) Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Update copies of config.guess and config.sub.Jelmer Vernooij2009-05-162-76/+282
|
* Avoid using deprecated form of AC_CHECK_TYPE.Brad Hards2009-04-222-3/+13
| | | | | | | | | | libreplace makes use of an older form of AC_CHECK_TYPE which basically provides a fallback definition for the type if it isn't available. http://www.gnu.org/software/hello/manual/autoconf/Obsolete-Macros.html#Obsolete-Macros shows why this isn't a good idea (its not so important, except for pointer types). This patch partly addresses the issue. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Error out at runtime when seteuid/setresuid or setegid/setresgid are notJelmer Vernooij2009-04-201-2/+4
| | | | | | available. This means it's possible to compile libreplace when these functions are not available and use it, as long as this particular function is not used.
* Only define waitpid replacement if wait4 is available. (It isn't onJelmer Vernooij2009-04-203-2/+6
| | | | Windows.)
* Cope with the fact that only _mkdir() exists on Windows and that itJelmer Vernooij2009-04-203-0/+12
| | | | doesn't take a mode argument.
* Move check for syslog out of libreplace to source3/ and source4/.Jelmer Vernooij2009-04-202-1/+3
| | | | This should help compiling talloc on Windows.
* libreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGSMichael Adam2009-03-231-2/+2
| | | | | | | | | This fixes Samba3's double listing of -I options in CFLAGS, since samba3's configure wraps the call to AC_LIBREPLACE_NETWORK_CHECKS into a SAVE_CPPFLAGS="${CPPFLAGS}" .. CPPFLAGS="${SAVE_CPPFLAGS}" sequence... :-) Michael
* build: fix detection of netinet/ip.h on FreeBSDTimur2009-03-171-0/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* build: format the header check for netinet/ip.h more nicelyTimur2009-03-171-6/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() ↵Stefan Metzmacher2009-03-161-1/+1
| | | | | | are available metze
* lib/replace: make sure we include <sys/uio.h> before socket_wrapper.hStefan Metzmacher2009-03-112-0/+5
| | | | | | This should fix the build on some hosts. metze
* libreplace: make it possible to disable socket_wrapper via ↵Stefan Metzmacher2009-02-261-2/+4
| | | | | | -DSOCKET_WRAPPER_DISABLE=1 metze
* More warning fixes for Solaris.Jeremy Allison2009-02-231-9/+0
| | | | Jeremy.
* all BSDs use this evironment variableBjörn Jacke2009-02-231-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* enable IPv6 support for NetBSD, FreeBSDBjörn Jacke2009-02-111-0/+1
| | | | most systems include netinet/in.h via netdb.h but *BSD don't.
* lib/replace: move MAXHOSTNAMELEN to system/network.hStefan Metzmacher2009-01-312-13/+5
| | | | | | | Some platforms define it in netdb.h, so we should define the replace after including metdb.h. metze
* lib/replace: check if we have dirfd()Stefan Metzmacher2009-01-301-0/+3
| | | | | | Note: we only use this internally and don't replace it by default. metze
* libreplace: fix detection of netinet/ip.h on solaris 8Michael Adam2009-01-271-1/+5
| | | | | | (The test needs to additionally include <netinet/in_systm.h>.) Michael
* libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiledMichael Adam2009-01-271-1/+4
| | | | | | under solaris Michael
* lib/replace: add defines to let the callers find out if pwrite and pread are ↵Stefan Metzmacher2009-01-221-0/+6
| | | | | | thread/fork safe metze
* Fix warnings in make test code.Jeremy Allison2009-01-021-2/+6
| | | | Jeremy.
* ldb: Fix linking against tevent library (rather than events)Jelmer Vernooij2008-12-231-0/+1
| | | | replace: Fix copyright for dlfcn.c.
* Fix circular dependency error with autoconf 2.6.3.Andreas Schneider2008-11-261-0/+2
| | | | Signed-off-by: Andreas Schneider <anschneider@suse.de>
* Samba3: Remove more configure tests already done by libreplace.Jelmer Vernooij2008-11-021-1/+9
|
* Fix return type of readlink().Jelmer Vernooij2008-11-011-1/+1
|
* Merge branch 'master' of /home/jelmer/samba3Jelmer Vernooij2008-11-014-1/+94
|\ | | | | | | | | | | | | | | | | Conflicts: lib/replace/README lib/replace/libreplace.m4 lib/replace/replace.c source3/include/proto.h source3/lib/system.c
| * Remove sys_chroot() - libreplace already provides an alternative.Jelmer Vernooij2008-11-012-2/+5
| |
| * Move sys_realpath() to libreplace.Jelmer Vernooij2008-11-014-1/+18
| |