Jelmer Vernooij
f9a0ada725
r19393: Add replacement function for socketpair()
...
(This used to be commit 448a3ecc01 )
2007-10-10 14:21:24 -05:00
Stefan Metzmacher
b6582987fe
r19242: merge from samba3:
...
handle NO_CONFIG_H in libreplace
metze
(This used to be commit 909d736a4b )
2007-10-10 14:20:56 -05:00
Stefan Metzmacher
e8a005acfe
r18999: merge from samba3:
...
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'
metze
(This used to be commit cdcd4232d2 )
2007-10-10 14:20:28 -05:00
Volker Lendecke
9f98bcf6a8
r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
...
(This used to be commit d8bea42bb7 )
2007-10-10 14:20:27 -05:00
Andrew Tridgell
2550f5ae12
r18970: avoid strndup and strnlen on AIX. They are quite broken. See
...
http://lists.samba.org/archive/samba-technical/2004-August/036915.html
(This used to be commit c178c84f01 )
2007-10-10 14:20:25 -05:00
Andrew Tridgell
2b2c7ee2f0
r18862: as andrew pointed our on irc, if we are going to define _TRUE, then
...
better make it be true :)
(This used to be commit 4bda5ed3f9 )
2007-10-10 14:20:17 -05:00
Andrew Tridgell
311e26246c
r18861: merge from samba3
...
(This used to be commit c5e2fcdc10 )
2007-10-10 14:20:17 -05:00
Stefan Metzmacher
0780eb7f82
r18675: merge from samba3:
...
we need to define the macros the indicate we have bool
even if we have not defining bool ourself
metze
(This used to be commit 0c18e5d938 )
2007-10-10 14:19:01 -05:00
Stefan Metzmacher
550495b6f9
r18674: merge from samba3,
...
PRINTF_ATTRIBUTE seems to not work with gcc 3.0
metze
(This used to be commit dfb9bfba94 )
2007-10-10 14:19:01 -05:00
Andrew Tridgell
eef5a6f538
r18518: we replace snprintf() if its not C99, so we should also add the rep_
...
prototype in that case
(This used to be commit 64b5ff171d )
2007-10-10 14:18:41 -05:00
Stefan Metzmacher
4e355095d1
r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
...
- AC_HEADERS_STDC is not explicit needed
metze
(This used to be commit 8f20d2cfe5 )
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
c706319c8f
r18458: move wins32 stuff to the top dir
...
metze
(This used to be commit 521e94f269 )
2007-10-10 14:18:33 -05:00
Andrew Tridgell
daff791c27
r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
...
two conflict on irix.
(This used to be commit 4dd949c80d )
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
68201cc76b
r18419: fix include paths of the configure tests
...
metze
(This used to be commit 8774eeb0dc )
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
27964734a6
r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
...
to get MAP_FAILED
metze
(This used to be commit 0f48c8ad7c )
2007-10-10 14:18:22 -05:00
Andrew Tridgell
a8421e8107
r18343: fixed setlinebuf() prototype, added test for it, and use it in two
...
places to avoid a #ifdef
(This used to be commit 095b805774 )
2007-10-10 14:18:13 -05:00
Andrew Tridgell
d82ed849cc
r18337: more -Ae tests in check_cc.m4
...
honor the MMAP_BLACKLIST
(This used to be commit c2f2dbb5d1 )
2007-10-10 14:18:11 -05:00
Andrew Tridgell
3f8383cd61
r18335: more portable bool tests
...
(This used to be commit 45a3a6a566 )
2007-10-10 14:18:11 -05:00
Andrew Tridgell
f64b2474be
r18278: move more header checks and _GNU_SOURCE into libreplace
...
(This used to be commit 77c442cd46 )
2007-10-10 14:18:00 -05:00
Andrew Tridgell
8717b5e3e6
r18206: need rep_ macro for setlinebuf
...
(This used to be commit 6a48f75eae )
2007-10-10 14:17:49 -05:00
Andrew Tridgell
26a3023cc8
r18205: need rep_ macros for seteuid and setegid
...
(This used to be commit dd7af58b83 )
2007-10-10 14:17:49 -05:00
Andrew Tridgell
3ca73facc5
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_*
(This used to be commit 57cd0ca176 )
2007-10-10 14:17:44 -05:00
Andrew Tridgell
a983b06d37
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)
(This used to be commit 77d1a468e0 )
2007-10-10 14:17:36 -05:00
Andrew Tridgell
e906cb5966
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)
(This used to be commit 68caf1bba7 )
2007-10-10 14:17:18 -05:00
Andrew Tridgell
b5c0202bff
r18081: libreplace now uses config.h again
...
(This used to be commit 037196538a )
2007-10-10 14:17:13 -05:00
Andrew Tridgell
8e9c4e83fa
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
(This used to be commit 8d80024976 )
2007-10-10 14:17:10 -05:00
Jelmer Vernooij
41ff8ad80e
r18039: Include header with time_t if needed.
...
(This used to be commit b0cfdd24be )
2007-10-10 14:17:06 -05:00
Jelmer Vernooij
38fdde5d9b
r18031: Merge my replace fixes:
...
* libreplace can now build stand-alone
* add stub testsuite for libreplace
* make talloc/tdb/ldb use libreplace
(This used to be commit fe7ca4b145 )
2007-10-10 14:17:05 -05:00
James Peach
ff2041c955
r16556: Add mkdtemp to libreplace. This is apparantly available on Linux
...
and BSD systems, but it's not everywhere.
(This used to be commit b3d2512ed4 )
2007-10-10 14:09:34 -05:00
Jelmer Vernooij
49b29f67d4
r15986: Declare struct tm
...
(This used to be commit 139d9369dc )
2007-10-10 14:08:46 -05:00
Andrew Tridgell
0a1a19d9d9
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
(This used to be commit acfaa98b5e )
2007-10-10 14:08:44 -05:00
Andrew Tridgell
aa01252bb3
r15882: I forgot to add in this prototype for strtok_r()
...
(This used to be commit 971cead2ad )
2007-10-10 14:08:37 -05:00
Jelmer Vernooij
548927d79b
r15868: Add replacement macro for __STRING()
...
(This used to be commit 3780e0580b )
2007-10-10 14:08:34 -05:00
Stefan Metzmacher
81d3f8e8a1
r15280: - remove the 2nd check for __FUNCTION__
...
- fallback to __func__ if __FUNCTION__ isn't there
metze
(This used to be commit 6c5a2b08ca )
2007-10-10 14:05:01 -05:00
Jelmer Vernooij
6bbd3b3360
r15226: Fix order of typedef specification - caught by kblin
...
(This used to be commit d5d03cdd23 )
2007-10-10 14:04:21 -05:00
Jelmer Vernooij
847e80dee9
r15224: Check whether -MT is actually supported by the compiler before using
...
automatic dependencies
(This used to be commit 6598efc6b3 )
2007-10-10 14:04:20 -05:00
Jelmer Vernooij
94af743baa
r15203: Allow system 'bool' type to be defined in another header then stdbool.h
...
(This used to be commit a5a648de94 )
2007-10-10 14:04:17 -05:00
Jelmer Vernooij
e2e3a8e007
r15200: Move MIN/MAX macros to libreplace as some systems have them
...
in sys/param.h
(This used to be commit 3f0396aade )
2007-10-10 14:04:16 -05:00
Jelmer Vernooij
4ab73d6045
r15000: Move some more autoconf tests out of build/m4/rewrite.m4
...
Guarantee availability of __FUNCTION__ in libreplace
(This used to be commit 76b1576541 )
2007-10-10 14:04:00 -05:00
Jelmer Vernooij
4a61e4901e
r14999: Remove more unused autoconf code
...
Simplify va_copy() replacement code a bit
(This used to be commit a5c87360a7 )
2007-10-10 14:04:00 -05:00
Jelmer Vernooij
c50125f6ef
r14844: Support a stdbool.h replacement in lib/replace/
...
(This used to be commit bccfddcafa )
2007-10-10 13:59:41 -05:00
Jelmer Vernooij
595702c9fa
r13577: Move some (possibly system-defined) defines to replace.h
...
(This used to be commit 2b3d56e153 )
2007-10-10 13:51:57 -05:00
Stefan Metzmacher
073866887d
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
(This used to be commit 32f2cf433f )
2007-10-10 13:49:59 -05:00
Jelmer Vernooij
5c8447773f
r12801: Some more include/ cleanups (remove unused macros + move files
...
to specific dirs)
(This used to be commit 243cf760b0 )
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
64b611a18e
r12364: add UINT32_MAX and UINT64_MAX replacement defines
...
(hopefully fix the build on OpenBSD)
metze
(This used to be commit cbe06ade21 )
2007-10-10 13:47:31 -05:00
Jelmer Vernooij
efe67458c1
r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers
...
in build/smb_build/, remove unused pstring macros
(This used to be commit 4322962074 )
2007-10-10 13:47:19 -05:00
Andrew Tridgell
1584f64920
r10896: added a strcasestr() replacement function
...
(This used to be commit 4483d275e1 )
2007-10-10 13:39:41 -05:00
Jelmer Vernooij
ecbf28630e
r10664: Include limits.h in replace.h for HOST_NAME_MAX
...
(This used to be commit dc3dc79674 )
2007-10-10 13:39:15 -05:00
Jelmer Vernooij
70b52b02a7
r10476: Move some more types to libreplace. Fix missing strndup errors
...
for heimdal
(This used to be commit e09ffdfb1d )
2007-10-10 13:38:51 -05:00
Jelmer Vernooij
da46c9252e
r10453: Fix the build
...
(This used to be commit 7be3ec4dbb )
2007-10-10 13:38:48 -05:00