1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-26 04:23:49 +03:00
Commit Graph

62 Commits

Author SHA1 Message Date
Stefan Metzmacher
2952c20b77 r21795: fix the prototype of unsetenv()...
metze
2007-10-10 14:49:28 -05:00
Stefan Metzmacher
d6de7f2cda r21793: add replacement for unsetenv()
metze
2007-10-10 14:49:27 -05:00
James Peach
20dcd6e241 r20981: Fix cut'n'paste error. 2007-10-10 14:44:17 -05:00
Jelmer Vernooij
448a3ecc01 r19393: Add replacement function for socketpair() 2007-10-10 14:21:24 -05:00
Stefan Metzmacher
909d736a4b r19242: merge from samba3:
handle NO_CONFIG_H in libreplace

metze
2007-10-10 14:20:56 -05:00
Stefan Metzmacher
cdcd4232d2 r18999: merge from samba3:
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
2007-10-10 14:20:28 -05:00
Volker Lendecke
d8bea42bb7 r18991: Fix bug 4133 -- Thanks to Olaf Flebbe 2007-10-10 14:20:27 -05:00
Andrew Tridgell
c178c84f01 r18970: avoid strndup and strnlen on AIX. They are quite broken. See
http://lists.samba.org/archive/samba-technical/2004-August/036915.html
2007-10-10 14:20:25 -05:00
Andrew Tridgell
4bda5ed3f9 r18862: as andrew pointed our on irc, if we are going to define _TRUE, then
better make it be true :)
2007-10-10 14:20:17 -05:00
Andrew Tridgell
c5e2fcdc10 r18861: merge from samba3 2007-10-10 14:20:17 -05:00
Stefan Metzmacher
0c18e5d938 r18675: merge from samba3:
we need to define the macros the indicate we have bool
even if we have not defining bool ourself

metze
2007-10-10 14:19:01 -05:00
Stefan Metzmacher
dfb9bfba94 r18674: merge from samba3,
PRINTF_ATTRIBUTE seems to not work with gcc 3.0

metze
2007-10-10 14:19:01 -05:00
Andrew Tridgell
64b5ff171d r18518: we replace snprintf() if its not C99, so we should also add the rep_
prototype in that case
2007-10-10 14:18:41 -05:00
Stefan Metzmacher
8f20d2cfe5 r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
- AC_HEADERS_STDC is not explicit needed

metze
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
521e94f269 r18458: move wins32 stuff to the top dir
metze
2007-10-10 14:18:33 -05:00
Andrew Tridgell
4dd949c80d r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
two conflict on irix.
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
8774eeb0dc r18419: fix include paths of the configure tests
metze
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
0f48c8ad7c r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
to get MAP_FAILED

metze
2007-10-10 14:18:22 -05:00
Andrew Tridgell
095b805774 r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef
2007-10-10 14:18:13 -05:00
Andrew Tridgell
c2f2dbb5d1 r18337: more -Ae tests in check_cc.m4
honor the MMAP_BLACKLIST
2007-10-10 14:18:11 -05:00
Andrew Tridgell
45a3a6a566 r18335: more portable bool tests 2007-10-10 14:18:11 -05:00
Andrew Tridgell
77c442cd46 r18278: move more header checks and _GNU_SOURCE into libreplace 2007-10-10 14:18:00 -05:00
Andrew Tridgell
6a48f75eae r18206: need rep_ macro for setlinebuf 2007-10-10 14:17:49 -05:00
Andrew Tridgell
dd7af58b83 r18205: need rep_ macros for seteuid and setegid 2007-10-10 14:17:49 -05:00
Andrew Tridgell
57cd0ca176 r18160: - pread and pwrite replacements need to be non-static
- replacing rename() is pointless - all platforms have it (and the
  #define of rename breaks some code)

- use system/locale.h in snprintf.c

- fix passwd.h for initgroups

- stdlib is in replace.h, not needed elsewhere

- fix the initgroups replacement

- fix mapping of dl functions to rep_*
2007-10-10 14:17:44 -05:00
Andrew Tridgell
77d1a468e0 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
2007-10-10 14:17:36 -05:00
Andrew Tridgell
68caf1bba7 r18111: base inclusion of replacement printf fns on function existance, not
declaration. Otherwise _GNU_SOURCE and _BSD_SOURCE stuffs things up
(possibly fixable, but not now)
2007-10-10 14:17:18 -05:00
Andrew Tridgell
037196538a r18081: libreplace now uses config.h again 2007-10-10 14:17:13 -05:00
Andrew Tridgell
8d80024976 r18067: some tweaks for irix and hpux
this checks for -AC99 or -c99 to get C99 structure init to work. It's
based on a similar macro metze did for Samba4.

the double sinclude() is weird, but I can't see any other way to use a
common config.m4 between libreplace and all the projects that use it
2007-10-10 14:17:10 -05:00
Jelmer Vernooij
b0cfdd24be r18039: Include header with time_t if needed. 2007-10-10 14:17:06 -05:00
Jelmer Vernooij
fe7ca4b145 r18031: Merge my replace fixes:
* libreplace can now build stand-alone
 * add stub testsuite for libreplace
 * make talloc/tdb/ldb use libreplace
2007-10-10 14:17:05 -05:00
James Peach
b3d2512ed4 r16556: Add mkdtemp to libreplace. This is apparantly available on Linux
and BSD systems, but it's not everywhere.
2007-10-10 14:09:34 -05:00
Jelmer Vernooij
139d9369dc r15986: Declare struct tm 2007-10-10 14:08:46 -05:00
Andrew Tridgell
acfaa98b5e r15953: our timegm() replacement still doesn't work, so grab the one from
Heimdal which does work. This should fix most of the rest of the
failures on solaris
2007-10-10 14:08:44 -05:00
Andrew Tridgell
971cead2ad r15882: I forgot to add in this prototype for strtok_r() 2007-10-10 14:08:37 -05:00
Jelmer Vernooij
3780e0580b r15868: Add replacement macro for __STRING() 2007-10-10 14:08:34 -05:00
Stefan Metzmacher
6c5a2b08ca r15280: - remove the 2nd check for __FUNCTION__
- fallback to __func__ if __FUNCTION__ isn't there

metze
2007-10-10 14:05:01 -05:00
Jelmer Vernooij
d5d03cdd23 r15226: Fix order of typedef specification - caught by kblin 2007-10-10 14:04:21 -05:00
Jelmer Vernooij
6598efc6b3 r15224: Check whether -MT is actually supported by the compiler before using
automatic dependencies
2007-10-10 14:04:20 -05:00
Jelmer Vernooij
a5a648de94 r15203: Allow system 'bool' type to be defined in another header then stdbool.h 2007-10-10 14:04:17 -05:00
Jelmer Vernooij
3f0396aade r15200: Move MIN/MAX macros to libreplace as some systems have them
in sys/param.h
2007-10-10 14:04:16 -05:00
Jelmer Vernooij
76b1576541 r15000: Move some more autoconf tests out of build/m4/rewrite.m4
Guarantee availability of __FUNCTION__ in libreplace
2007-10-10 14:04:00 -05:00
Jelmer Vernooij
a5c87360a7 r14999: Remove more unused autoconf code
Simplify va_copy() replacement code a bit
2007-10-10 14:04:00 -05:00
Jelmer Vernooij
bccfddcafa r14844: Support a stdbool.h replacement in lib/replace/ 2007-10-10 13:59:41 -05:00
Jelmer Vernooij
2b3d56e153 r13577: Move some (possibly system-defined) defines to replace.h 2007-10-10 13:51:57 -05:00
Stefan Metzmacher
32f2cf433f r12814: we need this here too, as we'll include replace.h for building heimdal/*
too, and for this we don't include includes.h

(hopefully) fix the build on AIX

metze
2007-10-10 13:49:59 -05:00
Jelmer Vernooij
243cf760b0 r12801: Some more include/ cleanups (remove unused macros + move files
to specific dirs)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
cbe06ade21 r12364: add UINT32_MAX and UINT64_MAX replacement defines
(hopefully fix the build on OpenBSD)

metze
2007-10-10 13:47:31 -05:00
Jelmer Vernooij
4322962074 r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers
in build/smb_build/, remove unused pstring macros
2007-10-10 13:47:19 -05:00
Andrew Tridgell
4483d275e1 r10896: added a strcasestr() replacement function 2007-10-10 13:39:41 -05:00