summaryrefslogtreecommitdiffstats
path: root/source/lib/replace
Commit message (Collapse)AuthorAgeFilesLines
* libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.Michael Adam2008-02-291-0/+4
| | | | | Michael (cherry picked from commit 0aff54a12e20d5e91fcdec7aaec103fb9a371a23)
* libreplace: ifdef out ip6 code if unsupported.Michael Adam2008-02-291-0/+2
| | | | | Michael (cherry picked from commit 54cc0df4dbf6d63a9b94e1ac6af4ec7f7803bc30)
* libreplace: fix rep_freeifaddrs to not segfault on NULL input.Michael Adam2008-02-291-6/+7
| | | | | Michael (cherry picked from commit 0cbb87453beb52c6b0bc3a48791f49678f4030c5)
* libreplace: fix silly crashbug in getifaddrs_test().Michael Adam2008-02-291-1/+3
| | | | | Michael (cherry picked from commit 523626908d25f974fd1ae6d7306b1d4bc8414162)
* libreplace: add missing newline in output of getifaddrs test.Michael Adam2008-02-291-1/+1
| | | | | Michael (cherry picked from commit f8243cfc47c7414bab7f249d0e5d1c85e8ca7d64)
* libreplace: add missing semicolon to getifaddrs.Michael Adam2008-02-291-1/+1
| | | | | Michael (cherry picked from commit 29818a07de826fd687003ff25865d77939ecaa9a)
* libreplace: try and fix rep_getifaddrs() for Tru64.Michael Adam2008-02-291-21/+16
| | | | | | | | Don't fail when there is no address assigned to the interface. Put NULL into the ifaddrs structure instead. Michael (cherry picked from commit ee170c85e0e76411bd752de5fe51db6940dab929)
* libreplace: use the new getifaddrs test also for autoconf.Michael Adam2008-02-292-33/+16
| | | | | Michael (cherry picked from commit a2a506ff0eae2a64ebe2ddbb81a6c2a5fa7fe3da)
* libreplace: add extended getifaddrs test that prints out the interfaces.Michael Adam2008-02-293-7/+100
| | | | | | | Michael cherry-picked from libreplace-part of 9d2bab09aac22c00fe23f1e1265a2dbd0901e9ce and adapted replacetort creation
* Fix macro name (no 's' in ifr_addr).Gerald W. Carter2008-02-281-1/+1
| | | | | Interface detection on Solaris still failing due to items pointed out here: http://lists.samba.org/archive/samba-technical/2007-November/056701.html
* libreplace: standalone build: use -I$srcdir instead of -I.Michael Adam2008-02-271-1/+1
| | | | Michael
* libreplace: fix standalone build - add necessary libs.Michael Adam2008-02-272-1/+6
| | | | | | | The libs needed for getifaddrs replacements have to be added to LIBS and used for the testsuite target. Michael
* libreplace: fix standalone build on some systems.Michael Adam2008-02-271-0/+2
| | | | | | | getifaddr tests include system/network.h, which does not find getaddrinfo.h without "-I.". Michael
* libreplace: Add tests for connect and gethostbyname.Michael Adam2008-02-265-0/+96
| | | | | | | | | | | | 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
* Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.Michael Adam2008-02-261-5/+5
| | | | Michael
* Check the return value of fgetsVolker Lendecke2008-02-231-1/+4
|
* libreplace: don't use socketwrapper for getifaddrs() implementations.Michael Adam2008-02-221-0/+2
| | | | Michael
* libreplace: Fix comment originating from old samba source.Michael Adam2008-02-221-1/+1
| | | | | Michael (cherry picked from commit 0440bcfe6359ca4842f473b1ca799cad9f1c6c96)
* libreplace: fix creation of conftest files for getifaddrs tests.Michael Adam2008-02-221-4/+11
| | | | | | Add missing includes of replace.c and defines of SOCKET_WRAPPER_NOT_REPLACE. Michael
* Fix linked list of ifaddrs in implementations of rep_getifaddrs.Michael Adam2008-02-221-3/+3
| | | | | | Produce proper list instead of one-node-loop. Michael
* Add missing initalizations of lastif in rep_getifaddr implementations.Michael Adam2008-02-221-3/+6
| | | | Michael
* libreplace: fix compile errors in getifaddrs.cMichael Adam2008-02-211-6/+3
| | | | Michael
* Try and fix getifaddrs check on irix: dont't try to include config.hMichael Adam2008-02-211-0/+3
| | | | | | The missing header file is judged "catastrophic" on irix. Michael
* Support dlopen(NULL, ...) on HPUX.Jelmer Vernooij2008-02-201-0/+2
| | | | (cherry picked from commit 53c70b5f77a3b9abaab783590e66278129173d5f)
* libreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.Michael Adam2008-02-201-36/+36
| | | | | Michael (cherry picked from commit 83387ecccfe95b80525bf53c5fc9e945ffee10ec)
* libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.Michael Adam2008-02-201-8/+8
| | | | | Michael (cherry picked from commit 00c173bfba9c659750bf231fbd9278dd38aa8bfc)
* libreplace: change samba_cv_ to libreplace_cv_ in getpass.m4.Michael Adam2008-02-201-6/+6
| | | | | Michael (cherry picked from commit d3b3d3ec9ff64108b4cd5b7c912ab4ea207256cb)
* libreplace: change samba_cv_ to libreplace_cv_ in getifaddrs.m4Michael Adam2008-02-201-15/+15
| | | | | Michael (cherry picked from commit acab9def2a1e3460bef8baae6efc66d9dfad6eac)
* libreplace: Remove double item in case statement.Michael Adam2008-02-191-4/+0
| | | | | | | | This was by accident introduced in cherry-pick commit 7a7dcd9b1265b8f031c9a5e9c4cfa89216827a28: This tiny portion had already been ported in 64ff1dad8664f14030c7d78c252d946216798a88. MIchael
* Remove relict SAMBA_CONFIGURE_CPPFLAGS from lib/replace.Michael Adam2008-02-191-3/+0
| | | | | Michael (cherry picked from commit d10cbb533c18a6d74160477d34a81bbd4cd6c7c8)
* r26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.Jelmer Vernooij2008-02-191-1/+1
| | | | (cherry picked from commit 37c7b65546190bdce40cb48435cc4fd51d89a124)
* r26551: Make sure NULL is defined before using it to test for getifaddrs().James Peach2008-02-191-0/+4
| | | | | Patch from Timur I. Bakeyev <timur@com.bat.ru>. (cherry picked from commit 188156228b53c4bbc9c18c6ff1a0d3c6d0ba5fcb)
* r26507: Fix function signature for freeifaddrs.Jelmer Vernooij2008-02-191-1/+1
| | | | (cherry picked from commit cc873bdd2e86e5b380c3056810ccc5ad98372f7c)
* r26497: Fix return type for freeifaddrs().Jelmer Vernooij2008-02-192-7/+7
| | | | (cherry picked from commit 8c65053f51330bb55a81572264eefbcc56029dc1)
* r26495: Add defines for getifaddrs/freeifaddrs.Jelmer Vernooij2008-02-191-0/+10
| | | | (cherry picked from commit c9e5a3078f7baa83743658d5648f0eefdeb05d2f)
* r26492: Some hosts have a define called ifa_dstaddr.Jelmer Vernooij2008-02-191-0/+1
| | | | (cherry picked from commit c4cd935ee783b2f4939e2c481bbdb1bbdb9190cd)
* r26491: Fix syntax.Jelmer Vernooij2008-02-191-1/+1
| | | | (cherry picked from commit 2513230e286179747bb84e4e87121b80bea8f3f0)
* r26487: Cope with systems that don't have struct sockaddr.sa_len.Jelmer Vernooij2008-02-192-2/+15
| | | | (cherry picked from commit 56080469ab28ae5a2f456cced34814d9c33480c6)
* r26470: Update README.Jelmer Vernooij2008-02-191-0/+2
| | | | (cherry picked from commit 51a78cfc3e72d6b32ef6c7a6079165a36863b908)
* r26469: Fix paths, only include IPv4 addresses for now.Jelmer Vernooij2008-02-193-17/+19
| | | | (cherry picked from commit fa9e3b6fa871b7541878f836ea54e882e614a3cf)
* r26468: Match getifaddrs more closely, add trivial test.Jelmer Vernooij2008-02-192-22/+31
| | | | (cherry picked from commit 92898c043b5a2649a2e423d02bcdaea78ae55737)
* r26467: Use getifaddrs() for interface enumeration and provide replacements ↵Jelmer Vernooij2008-02-194-0/+511
| | | | | | for platforms that don't have it in lib/replace. (lib/replace part of 9b4924fbd8619033c55b4c6e2589da247332e7db - Michael)
* r25944: Fix handling of sonameflag on AIX, which doesn't have anything like ↵Jelmer Vernooij2008-02-131-0/+4
| | | | | | | | that. (cherry picked from parts of commit 228dd6830eb9c91287bb3e0233d8b3a404ff3676) Michael
* NetBSD needs LD_LIBRARY_PATHVolker Lendecke2008-02-011-0/+3
|
* NetBSD does not support AI_ADDRCONFIGVolker Lendecke2008-02-011-0/+7
|
* libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_tStefan Metzmacher2008-01-221-0/+25
| | | | metze
* Revert "Host SerNet-AIX has __ss_family instead of ss_family in ↵Stefan Metzmacher2008-01-181-4/+0
| | | | | | | | | | | sockaddr_storage" This reverts commit e33286f4a68352e55df081d06307f64f190773b3. 393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix for the same problem. metze
* libreplace: Escape asterisk.Jelmer Vernooij2008-01-181-1/+1
| | | | (cherry picked from commit df36c78549b40ee5e47d5cc79de2eb79f58c567a)
* Try to fix the build on Tru64; avoid single quotes because they get expanded ↵Jelmer Vernooij2008-01-181-1/+1
| | | | | | by perl in the build system. (cherry picked from commit bba8914af56cb161c275fbbdea2479d6f8bd703c)
* r26550: libreplace: fallback to __ss_family of struct sockaddr_storageStefan Metzmacher2008-01-182-0/+29
| | | | | metze (cherry picked from commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)