Age | Commit message (Collapse) | Author | Files | Lines |
|
Prototype is now in system/network.h,
implementation in socketpair.c, and
check in socketpair.m4.
Now the last networking function has vanished from replace.c.
Michael
(This used to be commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)
|
|
Interface detection on Solaris still failing due to items pointed out here:
http://lists.samba.org/archive/samba-technical/2007-November/056701.html
(cherry picked from commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff)
(This used to be commit 5757d8dfe9e6cf7b662acdf5c3d825f0021822c0)
|
|
...not only replace it when it is broken.
This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.
NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.
So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.
Michael
(This used to be commit 974c0c45ad42644348e0b55454715b12158f1028)
|
|
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().
Michael
(This used to be commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)
|
|
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
(This used to be commit 900d17acb95f1becfc46656a12c107336c027ef7)
|
|
Michael
(This used to be commit 8a26a6e8f11aca5119b15e304213548ad608dc5b)
|
|
(cherry picked from commit fb3f7f4046fa195baf5116598772d9016238637f)
(This used to be commit e8f3653414c12fb752c096d848dc962008d90439)
|
|
system).
Jeremy.
(lib/replace part of 545cd2139cfc9484b733693814d4724d37125942 metze)
(This used to be commit 9cff25cce1d39460dbcab006a309bb2984969eed)
|
|
metze
(This used to be commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)
|
|
(This used to be commit cc873bdd2e86e5b380c3056810ccc5ad98372f7c)
|
|
(This used to be commit 8c65053f51330bb55a81572264eefbcc56029dc1)
|
|
(This used to be commit c4cd935ee783b2f4939e2c481bbdb1bbdb9190cd)
|
|
(This used to be commit fa9e3b6fa871b7541878f836ea54e882e614a3cf)
|
|
for platforms that don't have it in lib/replace.
(This used to be commit 9b4924fbd8619033c55b4c6e2589da247332e7db)
|
|
(from Jerry).
Jeremy
merge from v3-2-test commit a68bbea0d42cc64b9fa731ab2a1da82ef30937c6
(This used to be commit b833dce5e6d6475a04538d9754b9b0bfeb5915e4)
|
|
metze
(This used to be commit 5648c8a0de7482a28a5b95410c083ac87577d482)
|
|
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch]
- define HAVE_<name> macros when we replace functions
metze
(This used to be commit 57d5cf4b5fe8885b1375059aa143c9c71d2503b4)
|
|
this is needed as heimdal's roken.h also tries to replace the types
metze
(This used to be commit 8b92b811015d0855efe3cf4c58cd08e3654f8e88)
|
|
socklen_t
metze
(This used to be commit 12cec014c465a55974aedf44e0e782f5fb841088)
|
|
metze
(This used to be commit 8bd2cf71bee1a08c3d420a330730434edbac5e28)
|
|
metze
(This used to be commit a3657a4e7175e35707e7a00330f6924833774253)
|
|
defines). Allows RHEL4 compile to work.
Jeremy.
(cherry picked from commit 0ffdf4fdeea88c21880c8bf69d8db56fb49effa7)
(This used to be commit facb811bb3c77a0b98089c283fe0707c5f486c88)
|
|
metze
(This used to be commit d286c0533dd2726ebc547dcaf99f45169d4a9d2f)
|
|
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)
|
|
metze
(This used to be commit f9696109cc8f4646599f73b78e1eacd94d1a6c2c)
|
|
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)
|
|
sys/param.h.
(This used to be commit 7016d500287ae587d044744f2a318c402148ebea)
|
|
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
|
|
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
|
|
(This used to be commit 1193c759622edd9e6843d9b7f53d9532748ce8a0)
|
|
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl
metze
(This used to be commit f37b13cbe65404f27d31b8020afb2f542313f4d3)
|
|
metze
(This used to be commit dfaccdca1b6954cd61828749d7b000f804f3b066)
|
|
this is preparation of adding libreplace to samba3 later.
metze
(This used to be commit 26228e4b2e8debd84caebe84bb34bfbbf2ad405c)
|
|
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)
|