Stefan Metzmacher
a3e5710eda
r25602: don't imply "system/network.h" within replace.h,
...
as this brings in the socket_wrapper.h in unexpected
code and we endup with a missing 'swrap_close' while linking
metze
(This used to be commit 507d5ca7d994f0771dbb66e61d2d22e391508658)
2007-12-21 05:42:47 +01:00
Stefan Metzmacher
6876d2613d
r25601: replace.h should never imply any "system/*.h"
...
(here it's "system/time.h")
metze
(This used to be commit 00467c25930a527eb9831cfd893bd8e217ca4f74)
2007-12-21 05:42:46 +01:00
Jelmer Vernooij
e511090a43
r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo
...
(and friends) from SAMBA_3_2, with some minor tweaks:
- avoid including network headers in replace.h unless absolutely required
- autoconf tests for getaddrinfo() in lib/replace
The heimdal-specific code also no longer looks for these functions anymore.
(This used to be commit b6d3fd84a5d7d814035e60d6fa22f19bed9f77da)
2007-10-10 15:07:51 -05:00
Stefan Metzmacher
d4f0d738f1
r25251: move macro defines to the end of replace.h
...
and move the include location sys/param.h
before we redefine missing macros
metze
(This used to be commit 87559febdf887940ca85571d301269b734906401)
2007-10-10 15:06:59 -05:00
Stefan Metzmacher
d232d1851c
r25210: fix typo
...
metze
(This used to be commit 489758afb22368399054d1306711e14cebce94e1)
2007-10-10 15:06:54 -05:00
Jelmer Vernooij
d0f3d4a2f1
r25017: Move MAXHOSTNAMELEN definition to replace.h as it is usually part of
...
sys/param.h.
(This used to be commit 7016d500287ae587d044744f2a318c402148ebea)
2007-10-10 15:05:37 -05:00
Jelmer Vernooij
b159717785
r24350: Remove offsetof() replacement to see if there are actually any
...
hosts that don't have it.
(This used to be commit b37d86242de1ee82b0cd760d965f8ad37a83cf09)
2007-10-10 15:01:42 -05:00
Jelmer Vernooij
bc13766a76
r24337: Make libreplace provide offsetof.
...
(This used to be commit 48d1aa4fcf6a323e3e6a14825f83cd20e3fc3a26)
2007-10-10 15:01:39 -05:00
Andrew Tridgell
6c973f4e8c
r23798: updated old Temple Place FSF addresses to new URL
...
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
2007-10-10 14:59:15 -05:00
Andrew Tridgell
b8d69a7ea2
r23795: more v2->v3 conversion
...
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
2007-10-10 14:59:14 -05:00
Michael Adam
14846bf4f6
r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
...
This fixes the build on a SuSE 6.1. :-)
I guess this had been merely forgotten.
But beware: The implementations of rep_pread and rep_pwrite are
not thread safe.
Michael
(This used to be commit e4955c729fdf0bd299df4dadc4b33e09fe4d336e)
2007-10-10 14:53:12 -05:00
Stefan Metzmacher
867f7f4b74
r23208: on some HP-UX boxes dlfcn.h is available and use unsigned int flags
...
for dlopen but no library contains the function...
metze
(This used to be commit 0c7e3ed9625d512522a0cc7278e705fbbfc316f4)
2007-10-10 14:53:03 -05:00
Stefan Metzmacher
fbe7d8cbc5
r23188: revert 23123 and 23118.
...
as a long term solution this was the correct approach,
but it's a bit more complex and we need to provide the
whole socket api and libnsl.so checking in libreplace...
as a short term solution to fix the build on host 'hape'
we'll use the same trick as with inet_aton.c from
heimdal's lib/roken/
metze
(This used to be commit 0e88e2e46199d8ea64dd42c4c8b86d64ce5c2d04)
2007-10-10 14:53:02 -05:00
Jelmer Vernooij
dc919c2534
r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl
...
(This used to be commit 222acbe33b427a6ccae3b9e27b545f22e4564d5c)
2007-10-10 14:52:59 -05:00
Michael Adam
4fa973e4a4
r23123: Fix two utterly simply typos that broke the whole build farm...
...
Michael
(This used to be commit 54193c4638a27983f18478a61beedde889ecc2e2)
2007-10-10 14:52:51 -05:00
Michael Adam
ef5dc55983
r23118: Make inet_pton and inet_ntop available through lib/replace.
...
The code for inet_pton.c and inet_ntop.c is taken from
the rsync code.
I will put this into 3_0 and 3_0_26 too, but let's sort
the readahead issue in lib/replace of 3_0 first...
Michael
(This used to be commit 9781b13fd3e0c2a0aa66412c571f562c9f17dcbe)
2007-10-10 14:52:51 -05:00
Michael Adam
a32b648ea1
r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
...
Fixing build of ldb for instance on some systems without dlfcn.h.
(This used to be commit 943acd688d5aa0cd4adc6dc0fd7b92f1f294c219)
2007-10-10 14:52:49 -05:00
Stefan Metzmacher
4047b20c36
r22297: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
...
metze
(This used to be commit b69c950858d837d7bd734d418129ade69106a00d)
2007-10-10 14:50:59 -05:00
Stefan Metzmacher
7e13a1c96a
r22273: - provide __LINESTR__ macro
...
- add __STRINGSTRING() macro to really create a string of __LINE__
- fix __location__ macro
metze
(This used to be commit 24324fbcff1a896c55e789063f9916dbd092956d)
2007-10-10 14:50:55 -05:00
Stefan Metzmacher
3dd41c856e
r22270: provide __location__ in replace.h
...
and see how the build-farm likes this simpler version
metze
(This used to be commit 2abc79680f8342c9a7a6c1f3746489dd598b7bf8)
2007-10-10 14:50:55 -05:00
Stefan Metzmacher
9a7d2f8e54
r22263: use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
...
and #ifndef doesn't work.
metze
(This used to be commit 99125fe76a115b237e18c6a8b73e4adffc5ffb8d)
2007-10-10 14:50:54 -05:00
Stefan Metzmacher
f0c9bc037e
r22250: try to fix the build on aix1 in the farm
...
metze
(This used to be commit 0a04ed570b125be1716628136f87f0244ad12f72)
2007-10-10 14:50:46 -05:00
Stefan Metzmacher
bb36705c8d
r22226: move discard_const macros to librelace
...
metze
(This used to be commit c2cfee6d25718fac35bd4ed982c7424f1c3ed0b7)
2007-10-10 14:50:40 -05:00
Stefan Metzmacher
eb49760603
r22215: add strptime replacement to libreplace based on the patch
...
from jojowil@hvcc.edu to bug 4063
also add a testsuite for strptime()
metze
(This used to be commit aba64521707143e6505b3322c390882a918a148a)
2007-10-10 14:50:38 -05:00
Stefan Metzmacher
14233bb76f
r21795: fix the prototype of unsetenv()...
...
metze
(This used to be commit 2952c20b779fc6c797e2ab33ba3bda19cbb7a00d)
2007-10-10 14:49:28 -05:00
Stefan Metzmacher
544a2d30e0
r21793: add replacement for unsetenv()
...
metze
(This used to be commit d6de7f2cda70cfd55f0f7fbb9f3b93a5a58c6f51)
2007-10-10 14:49:27 -05:00
James Peach
0602d4d7f2
r20981: Fix cut'n'paste error.
...
(This used to be commit 20dcd6e2416d656e97b8cc060809673a97d5cde6)
2007-10-10 14:44:17 -05:00
Jelmer Vernooij
f9a0ada725
r19393: Add replacement function for socketpair()
...
(This used to be commit 448a3ecc0184bfa063db1eb3ae6dc16b8b792792)
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 909d736a4bf5a7adfcd64eecf6bb2a92211c6f96)
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 cdcd4232d2f383f4d2f9ca1d049b7b3cc7b58359)
2007-10-10 14:20:28 -05:00
Volker Lendecke
9f98bcf6a8
r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
...
(This used to be commit d8bea42bb78619ae35a9680b24fe9eee5f25997d)
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 c178c84f01166609e6bd3393d39fb0034130167b)
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 4bda5ed3f9fda437c3f9b7e8ce83853999601c74)
2007-10-10 14:20:17 -05:00
Andrew Tridgell
311e26246c
r18861: merge from samba3
...
(This used to be commit c5e2fcdc10a0869264bb1c6a13ada5f12e1b655f)
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 0c18e5d9383883f696113837a9e2d1bc078f18b1)
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 dfb9bfba943bb4954101e7e02fa5a68046817162)
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 64b5ff171d04bd93bd41309edfbe532c01a46e4f)
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 8f20d2cfe564164ea049dbb9f52d885e11098c2a)
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 521e94f2693eab9053d9e3f1bbc56cdf2e0adbcd)
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 4dd949c80d4400c3a80571cc28f599c37c1fcf7b)
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 8774eeb0dc8a72a9871d42bf1652ce4f7d4a29b7)
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 0f48c8ad7c066ba33cb8d4491083e15b24c5046e)
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 095b8057740a4bb207e24e4c63a2dcb53521a72f)
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 c2f2dbb5d1c082ee1391908073336a9dfc10f712)
2007-10-10 14:18:11 -05:00
Andrew Tridgell
3f8383cd61
r18335: more portable bool tests
...
(This used to be commit 45a3a6a566de020578c24feb5788367efd685f29)
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 77c442cd469ba881215e025c87ce632c876eb617)
2007-10-10 14:18:00 -05:00
Andrew Tridgell
8717b5e3e6
r18206: need rep_ macro for setlinebuf
...
(This used to be commit 6a48f75eaef031538c3e5b98d8672919bba7c409)
2007-10-10 14:17:49 -05:00
Andrew Tridgell
26a3023cc8
r18205: need rep_ macros for seteuid and setegid
...
(This used to be commit dd7af58b83815620114795aa49bc30b2440bd81b)
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 57cd0ca176387d6a3acabf9fedeef4f2a3a3dad7)
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 77d1a468e06290aba789e2f3affc769fc5159a21)
2007-10-10 14:17:36 -05:00