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)
|
|
...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 83387ecccfe95b80525bf53c5fc9e945ffee10ec)
|
|
system).
Jeremy.
(lib/replace part of 545cd2139cfc9484b733693814d4724d37125942 metze)
(This used to be commit 9cff25cce1d39460dbcab006a309bb2984969eed)
|
|
metze
(This used to be commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)
|
|
for platforms that don't have it in lib/replace.
(This used to be commit 9b4924fbd8619033c55b4c6e2589da247332e7db)
|
|
required functions
metze
(This used to be commit 8748516d1668c66663ded50ff28a8d32f1720175)
|
|
(This used to be commit f67040d2a0cb8723f1bf0e9a9d90a821b38697b1)
|
|
- move getaddrinfo check into getaddrinfo.m4
- add getaddrinfo.o to LIBREPLACEOBJ so that we really build the replacements
metze
(This used to be commit b594d9c9fa86249e3d3988702a2333460cd70436)
|
|
all configure results which are used in replace.h
or any system/*.h should be in the in the libreplace
*.m4 files!
metze
(This used to be commit 95462d614d68a93e85232e3a779f8bfa86fba4d1)
|
|
Jeremy.
(This used to be commit 48819012f81167f07d2e909329432d2ef222b1bf)
|
|
(This used to be commit e09828a634bf10bda9c6f28b18106c2bcab84643)
|
|
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)
|
|
(This used to be commit 17c92c091d9b9eb7f6a4cf1f263533f235d6717f)
|
|
(This used to be commit 9b02a39c156862f9e9258dcdb9b8b86715022fc1)
|
|
(This used to be commit 361c5995bcf1dafb89f935ac4183dc295e1d524d)
|
|
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)
|
|
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)
|
|
(This used to be commit e72cec408e832e0f6ce05c38febdd56de501dbf7)
|
|
and #ifndef doesn't work.
metze
(This used to be commit 99125fe76a115b237e18c6a8b73e4adffc5ffb8d)
|
|
metze
(This used to be commit 0a04ed570b125be1716628136f87f0244ad12f72)
|
|
from jojowil@hvcc.edu to bug 4063
also add a testsuite for strptime()
metze
(This used to be commit aba64521707143e6505b3322c390882a918a148a)
|
|
remove netgr functions from libreplace they're not used
in samba4 currently and samba3 has explicit configure checks for them.
should fix bug #4496
metze
(This used to be commit dd83a8dad8ad89a1485598fa6e11c9128d04e6d7)
|
|
metze
(This used to be commit d6de7f2cda70cfd55f0f7fbb9f3b93a5a58c6f51)
|
|
(This used to be commit 74c47839536c9ccfa1240289d20df65d9d13839d)
|
|
include setjmp.h via system/wait.h
metze
(This used to be commit 1b10cbb62950693760d4af6ab8691a4ba70908c9)
|
|
- fix epoll configure checks for the epoll and aio
events backends
- we should only activate the epoll backend if sys/epoll.h
and epoll_create() are found
- we should only activate the aio backend if sys/epoll.h, epoll_create(),
libaio.h and io_getevents() are found
hopefully fix the build on 'bnhtest' in the build farm...
metze
(This used to be commit d46a5efb03ea1df50567cad00e1589870cdb31fe)
|
|
(This used to be commit 8a8e974d2150d00855ccafef02b7ef2607921ea0)
|
|
AC_LANG_SOURCE() causes to have the content of confdefs.h
in front of the file that will be compiled
metze
(This used to be commit cd03738e7c5610c4a0cb1161b9bcee5d7c88322d)
|
|
to see (we now get some output that this test happens at all...).
- make use of AC_INCLUDES_DEFAULT
metze
(This used to be commit 7e399e607c8e9bf7365de7d492d29377177cdc1f)
|
|
(This used to be commit cc8c403de8c6558031c14f929a485361b7eb0222)
|
|
- add library test for libpopt
(This used to be commit 13878b7e7ec65b21df954f83afc0e9ceb73e44a0)
|
|
talloc or libreplace
(This used to be commit 9f45f970f71ee5585bf3c924b9c77188405fa246)
|
|
metze
(This used to be commit e9fe725cf4021943e939f493b967e0ef5a438622)
|
|
- change the test for net/if.h to do a full compile, not just an
existance test. net/if.h is completely broken on hpux, and can never
compile (it uses stuff before it defines it), so by using a
AC_TRY_COMPILE() test we avoid using net/if.h on hpux, which should
fix the build
(This used to be commit bde18f3d5ce837f600bae8d63f31d92a579fe1f2)
|
|
- to get the ordering right we need to specify AC_CANONICAL_BUILD explicit
- add AC_CANONICAL_TARGET
metze
(This used to be commit 1ea52d75849f004752cdbe11a3dddd10b4afe47d)
|
|
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.
Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
(This used to be commit 823cd3ab35456769dcefee17bdaca21f01ba0f63)
|
|
and use the macros in configure.ac
metze
(This used to be commit 95d33e4d71b4c97af8413bcd136f393aa3e380dd)
|
|
AC_LIBREPLACE_CC_CHECKS
AC_LIBREPLACE_BROKEN_CHECKS
and
AC_LIBREPLACE_ALL_CHECKS
which calls the 2 others
I'll add some more, so that samba3/samba4 can later call
them in the wanted order and all standalone builds
use AC_LIBREPLACE_ALL_CHECKS.
metze
(This used to be commit e7a30456c76f4bf9a79cdcff6b15c894bc20c954)
|
|
alsready done by autoconf magic
- display the sizes of all standard C types
- check for int64_t and uint64_t
metze
(This used to be commit 371a33a871b67f12af177696bae6aa87d2c1d9f9)
|
|
- AC_HEADERS_STDC is not explicit needed
metze
(This used to be commit 8f20d2cfe564164ea049dbb9f52d885e11098c2a)
|
|
metze
(This used to be commit 1ae1e68fe9e1004f1a11847714b2e71715a1ce03)
|
|
metze
(This used to be commit f9bff4dbdad8c7acc649d13a5666b58967bf5d92)
|
|
metze
(This used to be commit 521e94f2693eab9053d9e3f1bbc56cdf2e0adbcd)
|
|
metze
(This used to be commit a564194817d9b78e353abb6bf0548b2dd9eb130b)
|
|
- remove samba specific stuff from libreplace
- and include the readdir replacement stuff in the standalone builds
metze
(This used to be commit 3cac61152ef9a32313d7f7e5d38651f03a31f251)
|
|
metze
(This used to be commit 8662e1481504c50a45416ae09ec19b834164e77c)
|
|
metze
(This used to be commit 5fddb66def8dd29a9f8d13b4b679df26aca6cfab)
|