summaryrefslogtreecommitdiff
path: root/source3/lib/replace
AgeCommit message (Collapse)AuthorFilesLines
2008-06-10Correctly find a [u]int32_t replacementVolker Lendecke1-6/+15
(cherry picked from commit 346375cda557a675f8f882ca2ae8edffec725a72) (This used to be commit 15a53945c9563b4517bd8b69a9bb0554eef5edff)
2008-06-09libreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if requiredStefan Metzmacher1-1/+2
This fixes ./autogen.sh with autoconf-2.62 metze (cherry picked from commit 72bb01dda4d425528e28cd96e249595dc6c1952f) (This used to be commit 85111dc2b60ca38027adf129a074641c752cb104)
2008-06-09libreplace: fix warnings with autoconf-2.62 rename ac_ => libreplace_cv_Stefan Metzmacher1-4/+4
AC_CACHE_VAL() variables must contain _cv_ to be cached. metze (cherry picked from commit 67e43860b4973a458676b36785570bb4a66e046a) (This used to be commit d786bfc48e20ed7e695a988da6ed56a573afdadc)
2008-05-22libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly ↵Stefan Metzmacher1-1/+1
detected metze (cherry picked from commit 84b5652d3e5766521436e4c7d59615b08b2bb198) (This used to be commit b28b63c911efe17ba37c15c9b74edd96e9584832)
2008-05-22libreplace: add test for HAVE_IPV6Stefan Metzmacher1-0/+29
Samba can later just check libreplace_cv_HAVE_IPV6 = yes. metze (cherry picked from commit e835e7eebcc064ce0813814796828f15ad112fbd) (This used to be commit 1ca4508f3a996982a528942da1b12b94b91e94cd)
2008-05-17lib/replace: move sys/sockio.h and sys/un.h checks into ↵Stefan Metzmacher2-1/+1
AC_LIBREPLACE_NETWORK_CHECKS metze (cherry picked from commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020) (This used to be commit c97ff995e41d1cd31a7169e95ca415078da4a16c)
2008-05-17lib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKETStefan Metzmacher1-0/+40
Moved from the samba specific locations metze (cherry picked from commit e674128ee2f11596f358ed46104c9d25eb2f754f) (This used to be commit 951b8c757ada337229a4efe81e6532d15fa0b63a)
2008-05-16libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6Stefan Metzmacher1-0/+13
metze (cherry picked from commit da2179ee5d5b6094ab63a9d9d6a8d59893937087) (This used to be commit 151d62da1321322615daadabb41d049974f5fe6a)
2008-05-16libreplace: make sure system/network.h is only used when ↵Stefan Metzmacher2-0/+5
AC_LIBREPLACE_NETWORK_CHECKS was used metze (cherry picked from commit 3fddd36e119f73a5021370450f9687ef9d252bab) (This used to be commit cd37fdb2401bfd6c23160e34f03238faa1f5cbd3)
2008-05-16libreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS varsStefan Metzmacher1-17/+18
metze (cherry picked from commit aa7ef1af746319a3d771decd0ec03dabe8b8ad28) (This used to be commit dbbc05c87ba2b2d9b3247cfba58bc1a3f12ad4f5)
2008-05-16libreplace: include inet_ntoa.o when the system one is brokenStefan Metzmacher1-2/+3
metze (cherry picked from commit 67845d3471711d24069636d0d4032f9d53748334) (This used to be commit 734ade407ed8d5b61a831509c3efc90fc521fe1b)
2008-05-16libreplace: merge getifaddrs.m4 into libreplace_network.m4Stefan Metzmacher2-129/+127
metze (cherry picked from commit 0234d397fefee8e1d0dcd3402f748c2251021c90) (This used to be commit d7038405d68eb3c69ef10f63ce37db838eb44b7a)
2008-05-16libreplace: merge getaddrinfo.m4 into libreplace_network.m4Stefan Metzmacher2-33/+33
metze (cherry picked from commit 64591d064dc3da6074f0f7539911a6e433d9cc43) (This used to be commit 2f43e282e0fa723dd62e3b28e529c6eb01ef5b8a)
2008-05-16libreplace: merge socketpair.m4 into libreplace_network.m4Stefan Metzmacher2-2/+2
metze (cherry picked from commit f9f8f93adcc7161ebb18f5a0bf28c73d951a15ad) (This used to be commit 9aa0f6626d6a69ceeb8bb4ea71ea3d4a6157d101)
2008-05-16libreplace: merge inet_pton.m4 into libreplace_network.m4Stefan Metzmacher2-2/+2
metze (cherry picked from commit 3a70274c908e31453942b442351eab8423c1a53d) (This used to be commit b078ae2b56c9a932655ef619a7af5ce0aeb904dd)
2008-05-16libreplace: merge inet_ntop.m4 into libreplace_network.m4Stefan Metzmacher2-2/+2
metze (cherry picked from commit 223ef6c08efb52251d0a772bb0c481b2803cf0ce) (This used to be commit 438ddd9c81e74e3042154cf5f0416043ee6a8c35)
2008-05-16libreplace: merge inet_aton.m4 into libreplace_network.m4Stefan Metzmacher2-2/+2
metze (cherry picked from commit fba00736c870f449c0eee32fe0d7b0d539dca51f) (This used to be commit 7669daa9f536b73a0b933a3d3fcac68c1771dc15)
2008-05-16libreplace: merge inet_ntoa.m4 into libreplace_network.m4Stefan Metzmacher2-20/+20
metze (cherry picked from commit 82e826253b6d18832931dbb5c1dda009889bf9e0) (This used to be commit 09632f9694599e626e889e54310383878c51413f)
2008-05-16libreplace: merge socket.m4 into libreplace_network.m4Stefan Metzmacher2-40/+40
metze (cherry picked from commit c70eba87dbbac6c2c1e68c343cdd410577c1686f) (This used to be commit c48b2d8679dd139323936af68b48707c5a9f500c)
2008-05-16Fix typo.Jelmer Vernooij1-1/+0
(cherry picked from commit bd089818a3182698dfe85039c1b2e22d8c2835bb) (This used to be commit 6f5f736867a3c5b8c7e6f4e73b031e36783ed1bc)
2008-05-16Add undefined symbol flag for AIX.William Jojo1-0/+4
(cherry picked from commit dabdf24e86f038e3afc67532fa5bf60a37992161) (This used to be commit 104316884576a2d904d9d8b2d7c1e0dc80817b66)
2008-05-16libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone buildStefan Metzmacher1-0/+1
metze (cherry picked from commit 04f4523ed032946b8f0e74ac6f7458010159e3bb) (This used to be commit a3d675a7738cc04bb765064a060780198721d94a)
2008-05-16libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for sambaStefan Metzmacher2-1/+1
metze (cherry picked from commit 3451b54bf7f5e37a589ec261d28c2a8b6f9788ed) (This used to be commit 0987c32645e4851badab4c1daffb4ee7982ea153)
2008-05-16libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macroStefan Metzmacher2-63/+73
Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step metze (cherry picked from commit 55a904b1d7aeca849d450e371b18afca5b0c6218) (This used to be commit 2a3ddc23cc8d050dfe5b4e1c0e139a7c97cc3b59)
2008-05-16libreplace: always provide utime() and utimes()Stefan Metzmacher6-1/+200
I'd like to also provide futimes(), but it seems that some systems doesn't support a it at kernel level. If someone knows how to write a portable replacement for futimes() please tell me... metze (cherry picked from commit a9604fe4a323dccb537cf02ea7594437b4995803) (This used to be commit 8a241cf150fba787c82cbcb03730083ced442fbb)
2008-05-09Fix replacement getpass. If we ^C at the prompt echo was left off.Jeremy Allison1-5/+2
Jeremy. (This used to be commit e54c71954ae484fe4a4e195db33440490e78e256)
2008-05-06libreplace: check how portable utimes() and futimes() areStefan Metzmacher1-0/+1
metze (cherry picked from commit 8798ce3c744025b94973784dcb44d099427ef190) (This used to be commit fa443081eaff77623653ed0390c4f9dabc4487b5)
2008-04-18Janitor for tridge. Keep lib/replace in sync with the gcc4Jeremy Allison3-3/+4
changes. Jeremy. (This used to be commit b496f133228b74bf613dab81167a5b9670511c51)
2008-03-28libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for nowStefan Metzmacher1-1/+1
This should fix the build on solaris. Later this needs better fixing... metze (cherry picked from commit 89b7955733c34e9699a3b43ee54de92cb9469b90) (This used to be commit fcb497951a86551ce9c4be7b352335dad3be127a)
2008-03-27libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.cMichael Adam1-1/+8
This is not a proper bug but the code is clearer now and we are tracking failure of open separate from that of close. Michael (This used to be commit 451fc9ae05f841883081a334e179cf31625a772c)
2008-03-19libreplace: replace.c does not need system/network.h anymore.Michael Adam1-1/+0
Michael (cherry picked from commit 2d3c2f34f33338ff422047dae9cc262522689328) (This used to be commit 03a980d8f67ee1516c357807c23a405f07a006b3)
2008-03-19libreplace: move rep_socketpair() to its own module.Michael Adam6-24/+55
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)
2008-03-18libreplace: remove duplicate entry of inet_ntoa from README.Michael Adam1-1/+0
Michael (cherry picked from commit 98ee8c84300757d778733a458c6ca3e6022b40ea) (This used to be commit a4f22d6e2b3fc198327deabf4a724cd476e4144c)
2008-03-18libreplace: remove trailing white spaces.Michael Adam2-2/+2
Michael (cherry picked from commit 1f9ca7eed965904f67cf78fbac007432b8a057fd) (This used to be commit a1d24f110b3edff636174e017eb56ba5b10df590)
2008-03-18libreplace: replace inet_ntoa() when it is missingMichael Adam6-34/+61
...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)
2008-03-18libreplace: put inet_aton.c under LGPL instead of GPL.Michael Adam1-9/+13
Michael (cherry picked from commit cca5d6626fe395f08fd4c8b2344e4e43646cb987) (This used to be commit f69e51f56f111d9bd5db69e191f45567aacf8c3d)
2008-03-18libreplace: remove unused SOCKET_LIBS and NSL_LIBSStefan Metzmacher1-3/+0
metze (cherry picked from commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739) (This used to be commit f27d5e0cf80c49d81091a385cbfd0801b5483825)
2008-03-18libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIBStefan Metzmacher1-0/+3
metze (cherry picked from commit 79037c31334e271a718fcac234148038814b591e) (This used to be commit b141fce01dd40b25cce52852cd93f0f907c3b008)
2008-03-18libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checksStefan Metzmacher2-3/+3
...instead of using SOCKET_LIBS and NSL_LIBS. metze (cherry picked from commit cef2e8d748756f61c248ad6660e85dd1ac36308a) (This used to be commit 7854ed24a57162fa7569d8f36633f3c156067b0b)
2008-03-18libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBSStefan Metzmacher1-7/+9
But keep the old ones untill the callers are fixed. metze (cherry picked from commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9) (This used to be commit 2dee62ed12910a4d22381677bcf884dca0d999ea)
2008-03-15Fix Coverity ID 554Volker Lendecke1-0/+3
(This used to be commit 471b1b0c58bc2def5d2fe9d98401def34724d447)
2008-03-15Allocate one 0-byte in asprintf replacement when len==0Volker Lendecke1-1/+1
Some S3 code depends on this. (This used to be commit dc3d5e16452bf30055638ba3cfe99097fb557156)
2008-03-14libreplace: fix samba4 build (by not setting global LIBS).Michael Adam2-3/+3
This corrects the earlier fix of the standalone build, by setting LIBS to the desired value only in configure.ac but not in getifaddrs.m4. Not that this changes the standalone build in that it adds these libs undconditionally and not only if they are needed by the getifaddrs replacement functions. Michael (cherry picked from commit ff3af1703ddc9e5383f32156bc5be8351f795e76) (This used to be commit 2546da817f666914c1c220ec1fedc19aa41b25ad)
2008-03-14libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.Michael Adam1-0/+4
This is needed, otherwise $libreplacedir/system/network.h does not find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.). Michael (cherry picked from commit 297c3bece094ddb5f268b02e61e33f512ccfe6f5) (This used to be commit ddd564e8bf2b115aa5dbcbebd4be30b749ad8752)
2008-03-14libreplace: add an inet_aton() function that calls inet_pton().Michael Adam6-0/+42
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)
2008-02-29libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.Michael Adam1-0/+4
Michael (cherry picked from commit 0aff54a12e20d5e91fcdec7aaec103fb9a371a23) (This used to be commit 77b7d7c0417e498340d1c9364fbbb8671c175477)
2008-02-29libreplace: ifdef out ip6 code if unsupported.Michael Adam1-0/+2
Michael (cherry picked from commit 54cc0df4dbf6d63a9b94e1ac6af4ec7f7803bc30) (This used to be commit 1ff0b616a9cb029040031f797b52112d4973e1eb)
2008-02-29libreplace: fix rep_freeifaddrs to not segfault on NULL input.Michael Adam1-6/+7
Michael (cherry picked from commit 0cbb87453beb52c6b0bc3a48791f49678f4030c5) (This used to be commit 34d906ef44d1a5c3452097a9cac438d721fe35c1)
2008-02-29libreplace: fix silly crashbug in getifaddrs_test().Michael Adam1-1/+3
Michael (cherry picked from commit 523626908d25f974fd1ae6d7306b1d4bc8414162) (This used to be commit 0906120a6e4fe0eb66f3c3fd99c625b30672cb2b)
2008-02-29libreplace: add missing newline in output of getifaddrs test.Michael Adam1-1/+1
Michael (cherry picked from commit f8243cfc47c7414bab7f249d0e5d1c85e8ca7d64) (This used to be commit 3c1843f931b896dd3bb142346ecb44c0fb9202d6)