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

93 Commits

Author SHA1 Message Date
Michael Adam
bcb2f3a880 libreplace: add an inet_aton() function that calls inet_pton().
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().

Michael
2008-03-14 09:02:36 +01:00
Michael Adam
900d17acb9 libreplace: Add tests for connect and gethostbyname.
Provide dummy replacements when a function isnt found.
The functions are also searched for in certain libraries,
and variables SOCKET_LIBS and NSL_LIBS are set accordingly.

One purpose of this is to fix the getifaddrs tests on
systems where e.g. the socket calls require special libs
for linking.

Michael
2008-02-26 16:41:09 +01:00
Jeremy Allison
db4eabf7cd Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.

(lib/replace part of a1725f4ff7 metze)
2008-01-15 13:41:37 +01:00
Jeremy Allison
ebc08d23f7 Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.

(lib/replace part from e203ba2227 metze)
2008-01-15 13:37:37 +01:00
Jelmer Vernooij
c9e5a3078f r26495: Add defines for getifaddrs/freeifaddrs. 2007-12-21 05:50:49 +01:00
Stefan Metzmacher
cb0eca66dc r25911: Remove more fstring/pstring bad useage. Go talloc !
Jeremy.

merge from v3-2-test commit 2a0173743d
2007-12-21 05:44:51 +01:00
Jeremy Allison
cb6c663fa8 r25892: Keep the tdb code in sync between 3.2.x and 4.0.
Add in the alarm fix to allow locks to exit on
alarm signal.
Sync up the changes in tools.
Jeremy.
2007-12-21 05:44:42 +01:00
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