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

86 Commits

Author SHA1 Message Date
Stefan Metzmacher
507d5ca7d9 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
2007-12-21 05:42:47 +01:00
Stefan Metzmacher
00467c2593 r25601: replace.h should never imply any "system/*.h"
(here it's "system/time.h")

metze
2007-12-21 05:42:46 +01:00
Jelmer Vernooij
b6d3fd84a5 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.
2007-10-10 15:07:51 -05:00
Stefan Metzmacher
87559febdf r25251: move macro defines to the end of replace.h
and move the include location sys/param.h
before we redefine missing macros

metze
2007-10-10 15:06:59 -05:00
Stefan Metzmacher
489758afb2 r25210: fix typo
metze
2007-10-10 15:06:54 -05:00
Jelmer Vernooij
7016d50028 r25017: Move MAXHOSTNAMELEN definition to replace.h as it is usually part of
sys/param.h.
2007-10-10 15:05:37 -05:00
Jelmer Vernooij
b37d86242d r24350: Remove offsetof() replacement to see if there are actually any
hosts that don't have it.
2007-10-10 15:01:42 -05:00
Jelmer Vernooij
48d1aa4fcf r24337: Make libreplace provide offsetof. 2007-10-10 15:01:39 -05:00
Andrew Tridgell
40c0919aaa r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
Andrew Tridgell
84b468b2f8 r23795: more v2->v3 conversion 2007-10-10 14:59:14 -05:00
Michael Adam
e4955c729f 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
2007-10-10 14:53:12 -05:00
Stefan Metzmacher
0c7e3ed962 r23208: on some HP-UX boxes dlfcn.h is available and use unsigned int flags
for dlopen but no library contains the function...

metze
2007-10-10 14:53:03 -05:00
Stefan Metzmacher
0e88e2e461 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
2007-10-10 14:53:02 -05:00
Jelmer Vernooij
222acbe33b r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl 2007-10-10 14:52:59 -05:00
Michael Adam
54193c4638 r23123: Fix two utterly simply typos that broke the whole build farm...
Michael
2007-10-10 14:52:51 -05:00
Michael Adam
9781b13fd3 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
2007-10-10 14:52:51 -05:00
Michael Adam
943acd688d r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.
2007-10-10 14:52:49 -05:00
Stefan Metzmacher
b69c950858 r22297: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
metze
2007-10-10 14:50:59 -05:00
Stefan Metzmacher
24324fbcff r22273: - provide __LINESTR__ macro
- add __STRINGSTRING() macro to really create a string of __LINE__
- fix __location__ macro

metze
2007-10-10 14:50:55 -05:00
Stefan Metzmacher
2abc79680f r22270: provide __location__ in replace.h
and see how the build-farm likes this simpler version

metze
2007-10-10 14:50:55 -05:00
Stefan Metzmacher
99125fe76a r22263: use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.

metze
2007-10-10 14:50:54 -05:00
Stefan Metzmacher
0a04ed570b r22250: try to fix the build on aix1 in the farm
metze
2007-10-10 14:50:46 -05:00
Stefan Metzmacher
c2cfee6d25 r22226: move discard_const macros to librelace
metze
2007-10-10 14:50:40 -05:00
Stefan Metzmacher
aba6452170 r22215: add strptime replacement to libreplace based on the patch
from jojowil@hvcc.edu to bug 4063

also add a testsuite for strptime()

metze
2007-10-10 14:50:38 -05:00
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