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
(cherry picked from commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)
(This used to be commit 6c53753246b8108fe1277b34958e122bd800c4e7)
|
|
...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
(cherry picked from commit 974c0c45ad42644348e0b55454715b12158f1028)
(This used to be commit edcf2712bcdedabbfdd9ee8b9a18f46126930636)
|
|
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().
Michael
(cherry picked from commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)
(This used to be commit 83baff78ce752a9129554a456cc24d043d419cd1)
|
|
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 c19f7a0e1004213f95e0bf8db5cd1f6697c7a47b)
|
|
Michael
(cherry picked from commit 83387ecccfe95b80525bf53c5fc9e945ffee10ec)
(This used to be commit 12ec7dfb109bedd7b086702394a7094a4853cf1f)
|
|
for platforms that don't have it in lib/replace.
(lib/replace part of 9b4924fbd8619033c55b4c6e2589da247332e7db - Michael)
(This used to be commit 789bf2d36bd728cc68b58cfb1e9570b90ca09af7)
|
|
metze
(cherry picked from commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)
(This used to be commit c11122afda52ce787dd1d3357bd85b6ce36b8ca4)
|
|
system).
Jeremy.
(This used to be commit 545cd2139cfc9484b733693814d4724d37125942)
|
|
functions
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25864 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 760f24f10cbea7ce22acd0772fb5b125f718d129)
|
|
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 4904af51cdccd4e52d2805bd62f39276447c4646)
|
|
- move getaddrinfo check into getaddrinfo.m4
- add getaddrinfo.o to LIBREPLACEOBJ so that we really build the replacements
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25726 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit de01c503f4d16b8c3c0ad75225cf0b1822fd8c7f)
|
|
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 1eefa0264bb1a304a30ec4c7c6e2392c627ee6a3)
|
|
Jeremy.
(This used to be commit 3824a10fbcc3e061d569b0f74501ce97ec0a4414)
|
|
problems with libroken."
Jeremy.
(This used to be commit 3cd783e3a51c0f9e514f0702531b40bf9776e61a)
|
|
(This used to be commit 8c1669997c53f0f7bfb9a794083afd01b131f676)
|
|
Jeremy.
(This used to be commit 1f719905440d4c87c526c56532f47d894cfec5f0)
|
|
metze
(This used to be commit 828d2ca0610ab5ee3b96d187b3432b9b4fea72f8)
|
|
metze
(This used to be commit 20965d800fcac0c55853fb12cdd36b5836fc7e56)
|
|
as we can't replace this function in libreplace and we do
the some stuff for other function in the same way.
metze
(This used to be commit 5e9b84326b4c65799e6fa6550de870d9a7ebba85)
|
|
least one
OS) but is available for linking. Instead of running configure tests with
-Werror-implicit-function-declaration in developer mode (which may lead to
different library functions being used in developer mode than when not in
developer mode), add tests for whether readahead is declared. If not,
provide a replacement declaration in lib/replace.
(This used to be commit 7d05fa8b32b5b33e95fd9d552d2a45013b4803ec)
|
|
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.
metze
(This used to be commit 66b0a6cc51a3987c489cc71a17c0da632bf6a6bc)
|
|
add prototype of setenv
metze
(This used to be commit 42ccfaf5e58d92e04ba490f726e5d6972039bdc4)
|
|
- libreplace unsetenv() and strptime() replacements
metze
(This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)
|
|
in samba4 currently and samba3 has explicit configure checks for them.
should fix bug #4496
metze
(This used to be commit 7f61b3f0095efed81adc9022ba44e5c7df84d2f2)
|
|
(This used to be commit 78d6c88f10d600e05c4346affbba1d95c614dc34)
|
|
metze
(This used to be commit 352ee730308bbc151a742938818c9b8b3a6e8014)
|
|
- remove the epoll configure checks from libreplace
metze
(This used to be commit 3061c333eca4aaff6af4b200cfe07d17f87018b2)
|
|
fix configure test for net/if.h on some platforms
AC_LANG_SOURCE() adds the content of confdefs.h in front
of the compiled file
metze
(This used to be commit 7cbdc06ad9b68544c8eeaa68fdd7b03f71c0b739)
|
|
- machine/sys/getppdp.h workaround for HPUX 11.23
- more verbose check for net/if.h
metze
(This used to be commit 9b5c5bc3f3912776af6a8c9b13a9cb8dd2eff8f8)
|
|
(This used to be commit 6d5f507136be327558e98214b64eca225ca23d66)
|
|
metze
(This used to be commit 596cbe73dd268742acf456fccd8a234376fb0c97)
|