summaryrefslogtreecommitdiff
path: root/lib/replace
AgeCommit message (Collapse)AuthorFilesLines
2010-03-26libreplace: strerror_r() is needed by heimdal on solaris8Andrew Tridgell3-1/+14
2010-03-24libreplace: fixed declaration of dprintf() on FreeBSDAndrew Tridgell2-2/+12
2010-03-05replace: added get_current_dir_name()Andrew Tridgell3-0/+18
2010-02-23libreplace: Remove the obsolete signal type cast.Andreas Schneider3-13/+4
AC_SIGNAL_TYPE is already obsolete in autoconf. C89 requires signal handlers to return void, only K&R returned int.
2010-02-22Spelling fixes for libreplace.Brad Hards2-2/+2
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-13libreplace: add fdatasync() if not availableAndrew Tridgell2-1/+5
2010-02-11libreplace: added replacements for dprintf() and vdprintf()Andrew Tridgell2-1/+32
these are very useful for writing files with formatted writes Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-08libreplace: add check for NSS_WRAPPER_DISABLE similar to SOCKET_WRAPPER_DISABLEStefan Metzmacher1-2/+4
metze
2010-02-08libreplace: Attempt to fix bug 5910, detect a broken getaddrinfoVolker Lendecke1-0/+25
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02Change uint_t to unsigned int in lib/replaceMatt Kraai4-4/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-26Revert "libreplace: fix unused varibale warning on IRIX"Björn Jacke1-2/+2
this one was broken
2010-01-26libreplace: fix unused varibale warning on IRIXBjörn Jacke1-2/+2
2010-01-23libreplace: Fix a C++ warningVolker Lendecke1-2/+2
2010-01-18Work around bad use of autoconf internaLars Müller1-13/+37
Merge fix made by Andreas Schwab <schwab@linux-m68k.org>. This change had been in use by SUSE since 2008-07-03.
2010-01-02libreplace: some systems don't have memmem()Andrew Tridgell4-0/+68
added rep_memmem() and a testsuite
2009-12-19Output %p as unsigned in snprintf replacement.Peter Rosin1-0/+1
2009-09-17libreplace: added likely()/unlikely() macros for gccAndrew Tridgell1-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.
2009-09-15libreplace: white space cleanupsBjörn Jacke2-12/+12
2009-09-14Prepend "$libreplacedir/" to all objects in LIBREPLACEOBJMatt Kraai7-14/+14
2009-08-24LIBREPLACEOBJ now contains the full pathAndrew Tridgell1-4/+1
2009-08-24make lib/replace more usable in standalone buildsAndrew Tridgell1-2/+2
This makes the lib/replace m4 work in lib/talloc as a standalone build
2009-08-24fixed getpass m4Andrew Tridgell1-2/+2
This allows the getpass.m4 code to work in standalone talloc builds
2009-08-12libreplace: undef AI_ADDRCONFIG on QNX 6.3.0 (fix bug #6630)Matt Kraai1-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>
2009-08-08libreplace: set SONAMEFLAG to "-Wl,-soname=" on QNXMatt Kraai1-1/+1
2009-07-19include unix.h if it's availableMatt Kraai2-0/+5
2009-07-05libreplace: update library search path variablesBjörn Jacke1-1/+4
2009-06-15Add new replace check for --version-scriptSimo Sorce1-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.
2009-06-12s4:heimdal: import lorikeet-heimdal-200906080040 (commit ↵Andrew Bartlett1-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
2009-06-09try to get PICFLAG right for HP-UX with gccAndrew Tridgell1-6/+5
2009-06-08Add langinfo.h to the system/locale.hTimur I. Bakeyev2-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>
2009-06-08replace: add fallback define for IOV_MAXStefan Metzmacher1-0/+16
This hopefully fixes the build on IRIX. metze
2009-05-30nss_wrapper: try to fix the build of nss_wrapper on solaris.Günther Deschner1-0/+1
Guenther
2009-05-16Fix linker flags on non-Linux GNU platforms.Samuel Thibault1-5/+5
(e.g. Debian GNU/kFreeBSD) Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-05-16Update copies of config.guess and config.sub.Jelmer Vernooij2-76/+282
2009-04-22Avoid using deprecated form of AC_CHECK_TYPE.Brad Hards2-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>
2009-04-20Error out at runtime when seteuid/setresuid or setegid/setresgid are notJelmer Vernooij1-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.
2009-04-20Only define waitpid replacement if wait4 is available. (It isn't onJelmer Vernooij3-2/+6
Windows.)
2009-04-20Cope with the fact that only _mkdir() exists on Windows and that itJelmer Vernooij3-0/+12
doesn't take a mode argument.
2009-04-20Move check for syslog out of libreplace to source3/ and source4/.Jelmer Vernooij2-1/+3
This should help compiling talloc on Windows.
2009-03-23libreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGSMichael Adam1-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
2009-03-17build: fix detection of netinet/ip.h on FreeBSDTimur1-0/+1
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17build: format the header check for netinet/ip.h more nicelyTimur1-6/+8
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-16lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() ↵Stefan Metzmacher1-1/+1
are available metze
2009-03-11lib/replace: make sure we include <sys/uio.h> before socket_wrapper.hStefan Metzmacher2-0/+5
This should fix the build on some hosts. metze
2009-02-26libreplace: make it possible to disable socket_wrapper via ↵Stefan Metzmacher1-2/+4
-DSOCKET_WRAPPER_DISABLE=1 metze
2009-02-23More warning fixes for Solaris.Jeremy Allison1-9/+0
Jeremy.
2009-02-23all BSDs use this evironment variableBjörn Jacke1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-02-11enable IPv6 support for NetBSD, FreeBSDBjörn Jacke1-0/+1
most systems include netinet/in.h via netdb.h but *BSD don't.
2009-01-31lib/replace: move MAXHOSTNAMELEN to system/network.hStefan Metzmacher2-13/+5
Some platforms define it in netdb.h, so we should define the replace after including metdb.h. metze
2009-01-30lib/replace: check if we have dirfd()Stefan Metzmacher1-0/+3
Note: we only use this internally and don't replace it by default. metze