summaryrefslogtreecommitdiff
path: root/source3/lib/replace/system
AgeCommit message (Collapse)AuthorFilesLines
2008-09-16Make Samba 3 and Samba 4 both use the same single copy of libreplace.Jelmer Vernooij19-1573/+0
2008-09-14libreplace: include <krb5.h> and <com_err.h> and no heimdal specific headersStefan Metzmacher1-2/+3
metze (partialy cherry picked from commit cffed8e19e22a1fa7b7a322b153df5d54e4c3be2) (This used to be commit f46a17b408f8c78ecdff724f29d97f8f268d5577)
2008-05-16libreplace: make sure system/network.h is only used when ↵Stefan Metzmacher1-0/+4
AC_LIBREPLACE_NETWORK_CHECKS was used metze (cherry picked from commit 3fddd36e119f73a5021370450f9687ef9d252bab) (This used to be commit cd37fdb2401bfd6c23160e34f03238faa1f5cbd3)
2008-05-16libreplace: always provide utime() and utimes()Stefan Metzmacher2-1/+16
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-06libreplace: check how portable utimes() and futimes() areStefan Metzmacher1-0/+1
metze (cherry picked from commit 8798ce3c744025b94973784dcb44d099427ef190) (This used to be commit fa443081eaff77623653ed0390c4f9dabc4487b5)
2008-03-19libreplace: move rep_socketpair() to its own module.Michael Adam1-0/+5
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: replace inet_ntoa() when it is missingMichael Adam1-1/+1
...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-14libreplace: add an inet_aton() function that calls inet_pton().Michael Adam1-0/+5
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-28Fix macro name (no 's' in ifr_addr).Gerald W. Carter1-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 (This used to be commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff)
2008-02-26libreplace: Add tests for connect and gethostbyname.Michael Adam1-0/+10
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)
2008-02-26Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.Michael Adam1-5/+5
Michael (This used to be commit 7b98620ef16c6969fd21dd9c157aedd4adb117a3)
2008-02-20libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.Michael Adam1-8/+8
Michael (cherry picked from commit 00c173bfba9c659750bf231fbd9278dd38aa8bfc) (This used to be commit 450034582ba78b296e9cacc9ea06b632196b8644)
2008-02-19r26507: Fix function signature for freeifaddrs.Jelmer Vernooij1-1/+1
(cherry picked from commit cc873bdd2e86e5b380c3056810ccc5ad98372f7c) (This used to be commit ccfb04d18516e0aca88ea0a96afe119175bddba7)
2008-02-19r26497: Fix return type for freeifaddrs().Jelmer Vernooij1-1/+1
(cherry picked from commit 8c65053f51330bb55a81572264eefbcc56029dc1) (This used to be commit 57587e49f5942b81508b40e3c9a67e7536f2271d)
2008-02-19r26492: Some hosts have a define called ifa_dstaddr.Jelmer Vernooij1-0/+1
(cherry picked from commit c4cd935ee783b2f4939e2c481bbdb1bbdb9190cd) (This used to be commit 839d128a42aa624e3cd978700059f947022ee733)
2008-02-19r26469: Fix paths, only include IPv4 addresses for now.Jelmer Vernooij1-1/+1
(cherry picked from commit fa9e3b6fa871b7541878f836ea54e882e614a3cf) (This used to be commit a2d6f6b4ae7fb6711d4228b9e255eebb6bf344bd)
2008-02-19r26467: Use getifaddrs() for interface enumeration and provide replacements ↵Jelmer Vernooij1-0/+25
for platforms that don't have it in lib/replace. (lib/replace part of 9b4924fbd8619033c55b4c6e2589da247332e7db - Michael) (This used to be commit 789bf2d36bd728cc68b58cfb1e9570b90ca09af7)
2008-02-01NetBSD does not support AI_ADDRCONFIGVolker Lendecke1-0/+7
(This used to be commit fb3f7f4046fa195baf5116598772d9016238637f)
2008-01-22libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_tStefan Metzmacher1-0/+25
metze (This used to be commit 2f460915111066d79f5dc9b4ae4d003918d06852)
2008-01-18Revert "Host SerNet-AIX has __ss_family instead of ss_family in ↵Stefan Metzmacher1-4/+0
sockaddr_storage" This reverts commit e33286f4a68352e55df081d06307f64f190773b3. 393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix for the same problem. metze (This used to be commit b8a57a24c390355c4950ca499c1d96aff80abad7)
2008-01-18r26550: libreplace: fallback to __ss_family of struct sockaddr_storageStefan Metzmacher1-0/+9
metze (cherry picked from commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91) (This used to be commit c11122afda52ce787dd1d3357bd85b6ce36b8ca4)
2008-01-18r26102: libreplace: remove system/printing.h as it only contains samba3 stuffStefan Metzmacher1-50/+0
metze (cherry picked from commit 1ecb4ec01b0506c95a5f90a62040329e7a39ee93) (This used to be commit ff8a001f0d3f2655efafed41f2f0b14552a5c7e7)
2007-12-25Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storageVolker Lendecke1-0/+4
(This used to be commit e33286f4a68352e55df081d06307f64f190773b3)
2007-12-17Fix bug #5121 (unix passwd sync not working on a streams basedJeremy Allison1-0/+4
system). Jeremy. (This used to be commit 545cd2139cfc9484b733693814d4724d37125942)
2007-12-11Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech ↵Jeremy Allison1-0/+4
Republic <Jiri.Sasek@Sun.COM> - slightly modified - Jiri please check ! to allow Solaris to get passwords > 8 chars. Jeremy. (This used to be commit 657bf8c3479d6192f269e3daef1517e77a9fa9cb)
2007-12-03Reformat configure checks for broken capabilities.h.Michael Adam1-16/+24
Michael (This used to be commit 834a16225a8fb905a8f870a17ba67670e622eccc)
2007-12-03Move check for broken system capabilites.h headers to lib/replace.Michael Adam1-0/+30
Michael (This used to be commit 8ec10c4ab1aa890c9f03d34bd872c93ae5c4d84c)
2007-12-03Add check for ppc statfs.h header to workaround for broken capabilities.h.Michael Adam1-1/+3
Taken from s3:lib/system.c Michael (This used to be commit 07e6cfdc626c2778292e5b0b338a35046c482cf9)
2007-11-16Fix the build on RHEL5, when libcap-devel is installed.Michael Adam1-0/+9
The /usr/include/sys/capability.h defines _LINUX_TYPES_H which prevents /usr/include/linux/types.h from being parsed (when included afterwards). Thus certain types are undefined that are for instance needed in /usr/include/linux/dqblk_xfs.h. This breaks the build of lib/sysquotas_xfs.c. This commit adds a configure check and a workaround for this. Michael (This used to be commit 11bcdf780e164659b89a66e24edc27e89da7619a)
2007-11-09libreplace: solaris has different prototypes for getpwent_r and getgrent_rmetze1-0/+32
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25867 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 77900d2ba03455412ad645e757ba468ca90453fb)
2007-11-09libreplace: check for nss passwd|group get*_r functionsmetze1-0/+2
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25865 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 8e81dd7356eb8422284a93bfc9b55ed1523c8208)
2007-11-06Fix bug where tdb lock call interrupted withJeremy Allison1-0/+4
an alarm sig would not terminate and could lead to runaway smbd processes. Thanks to Dave Daugherty @ Centrify for pointing this out to us. Jeremy. (This used to be commit ef8da1698371c95495add53df81a978df709c88d)
2007-11-06libreplace: we need include <unistd.h> before nss_wrapper.hmetze1-0/+3
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25863 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 20ec1f472566bbc570fa138cce5dbd0407aef530)
2007-11-06libreplace: include nss_wrapper.h if NSS_WRAPPER is definedmetze1-0/+7
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25838 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 809fee4bef66eb8b8687f88257c0d6f77d3b4063)
2007-10-25Try and fix the Solaris build by adding a missing defineJeremy Allison1-0/+5
(from Jerry). Jeremy (This used to be commit a68bbea0d42cc64b9fa731ab2a1da82ef30937c6)
2007-10-25[libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.cmetze1-0/+11
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25728 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 11a977aa0757801fb0fa805b123e7bc75c8be447)
2007-10-25- include getaddrinfo.h after we have defined struct addrinfometze1-4/+5
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch] - define HAVE_<name> macros when we replace functions metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25724 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit e56977ea459b3615d33237d19ed8e7ad8b509853)
2007-10-25[libreplace] if we replace types define the HAVE_<type> macrometze1-0/+3
this is needed as heimdal's roken.h also tries to replace the types metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25718 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit b81d8bc43cd7167a5cd4b18c26ba3eecf75043eb)
2007-10-25[libreplace] move definition of struct addrinfo so that it can use socklen_tmetze1-15/+13
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25715 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 45150075677451b48ce56ebdce96aca1ed13fa80)
2007-10-25[libreplace] move define of a constant to near to the othersmetze1-4/+4
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25714 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit fa120f7c50d0084e7d887811e5fa59ae3bcfe53e)
2007-10-25[libreplace] include socket_wrapper.h after we have typedef'ed socklen_tmetze1-7/+7
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25713 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit f1d434a132e424f2fdce59d51a7c398988c1474d)
2007-10-17delete empty file lib/replace/system/getaddrinfo.hStefan Metzmacher1-0/+0
metze (This used to be commit 354bdd38e8714b789daffc897cd843a8d401be45)
2007-10-16Move #defined for getaddrinfo into network.h (as otherJeremy Allison1-4/+91
defines). Allows RHEL4 compile to work. Jeremy. (This used to be commit 0ffdf4fdeea88c21880c8bf69d8db56fb49effa7)
2007-10-15rename getsmbpass -> rep_getpass and provide the function prototypeStefan Metzmacher1-1/+2
metze (This used to be commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e)
2007-10-15missing stuff from samba4's libreplaceStefan Metzmacher1-0/+4
metze (This used to be commit 0177158d85797e0d22c81d88175a77d4ad5ed711)
2007-10-15don't imply "system/network.h" within replace.h,metze1-1/+11
as this brings in the socket_wrapper.h in unexpected code and we endup with a missing 'swrap_close' while linking metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25602 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit ec8e3f7f92522c65ec472058321db8a7ac30ec4c)
2007-10-10Merge from metze of libreplace header changesJeremy Allison1-0/+10
(This used to be commit d39ce8e37ed81f4a34a148f975874989d8d187a1)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-0/+0
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25557: merge libreplace fixes from samba4Jelmer Vernooij1-158/+0
(This used to be commit 8c1669997c53f0f7bfb9a794083afd01b131f676)
2007-10-10r25507: Fix definition of struct sockaddr_storage ifJeremy Allison1-0/+5
struct sockaddr_in6 is defined. Jeremy. (This used to be commit 4cf17df5caeb2b0220f6a7dd82d5fed5aca56850)