summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system
AgeCommit message (Collapse)AuthorFilesLines
2008-05-06libreplace: check how portable utimes() and futimes() areStefan Metzmacher1-0/+1
metze (This used to be commit 8798ce3c744025b94973784dcb44d099427ef190)
2008-03-18libreplace: 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 (This used to be commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)
2008-03-18Fix 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 (cherry picked from commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff) (This used to be commit 5757d8dfe9e6cf7b662acdf5c3d825f0021822c0)
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 (This used to be commit 974c0c45ad42644348e0b55454715b12158f1028)
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 (This used to be commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)
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 900d17acb95f1becfc46656a12c107336c027ef7)
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 8a26a6e8f11aca5119b15e304213548ad608dc5b)
2008-02-20libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.Michael Adam1-8/+8
Michael (This used to be commit 00c173bfba9c659750bf231fbd9278dd38aa8bfc)
2008-02-20NetBSD does not support AI_ADDRCONFIGVolker Lendecke1-0/+7
(cherry picked from commit fb3f7f4046fa195baf5116598772d9016238637f) (This used to be commit e8f3653414c12fb752c096d848dc962008d90439)
2008-01-22libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_tStefan Metzmacher1-0/+25
metze (cherry picked from commit 2f460915111066d79f5dc9b4ae4d003918d06852) (This used to be commit d2ac8be28d3aff59eddbdc6189a255a34c10d502)
2008-01-15Fix bug #5121 (unix passwd sync not working on a streams basedJeremy Allison1-0/+4
system). Jeremy. (lib/replace part of 545cd2139cfc9484b733693814d4724d37125942 metze) (This used to be commit 9cff25cce1d39460dbcab006a309bb2984969eed)
2008-01-15Add 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. (lib/replace part of 657bf8c3479d6192f269e3daef1517e77a9fa9cb metze) (This used to be commit 9f5c443972a09a70de7c8d6695b08c3730484c6c)
2007-12-21r26550: libreplace: fallback to __ss_family of struct sockaddr_storageStefan Metzmacher1-0/+9
metze (This used to be commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)
2007-12-21r26507: Fix function signature for freeifaddrs.Jelmer Vernooij1-1/+1
(This used to be commit cc873bdd2e86e5b380c3056810ccc5ad98372f7c)
2007-12-21r26497: Fix return type for freeifaddrs().Jelmer Vernooij1-1/+1
(This used to be commit 8c65053f51330bb55a81572264eefbcc56029dc1)
2007-12-21r26492: Some hosts have a define called ifa_dstaddr.Jelmer Vernooij1-0/+1
(This used to be commit c4cd935ee783b2f4939e2c481bbdb1bbdb9190cd)
2007-12-21r26469: Fix paths, only include IPv4 addresses for now.Jelmer Vernooij1-1/+1
(This used to be commit fa9e3b6fa871b7541878f836ea54e882e614a3cf)
2007-12-21r26467: Use getifaddrs() for interface enumeration and provide replacements ↵Jelmer Vernooij1-0/+25
for platforms that don't have it in lib/replace. (This used to be commit 9b4924fbd8619033c55b4c6e2589da247332e7db)
2007-12-21r26255: Work around another broken aspect of sys/capability.h on RHEL5.Michael Adam2-0/+25
This is synced from samba3 v3-2-test/11bcdf780e164659b89: 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 in Samba3. This commit adds a configure check and a workaround for this. Michael (This used to be commit df3e151992f0b942554034dd143ab8d7f0d7a75b)
2007-12-21r26254: Add check for PPC statfs.h to workaround for broken capability.h.Michael Adam1-1/+3
Synced from Samba3. Michael (This used to be commit dfdfac2b57ecbca8bddece846f5c2103a518e34d)
2007-12-21r26253: Add check for broken RedHat 7.2 system header files to lib/replace.Michael Adam1-0/+22
This is taken (with slight reformatting) from samba3:configure.in. It is already used in lib/replace/system/capablity.h. Michael (This used to be commit 4d1df9c0b4248717d6f235572f5f68e27934741e)
2007-12-21r26102: libreplace: remove system/printing.h as it only contains samba3 stuffStefan Metzmacher1-50/+0
metze (This used to be commit 1ecb4ec01b0506c95a5f90a62040329e7a39ee93)
2007-12-21r25910: Try and fix the Solaris build by adding a missing defineStefan Metzmacher1-0/+5
(from Jerry). Jeremy merge from v3-2-test commit a68bbea0d42cc64b9fa731ab2a1da82ef30937c6 (This used to be commit b833dce5e6d6475a04538d9754b9b0bfeb5915e4)
2007-12-21r25892: Keep the tdb code in sync between 3.2.x and 4.0.Jeremy Allison1-0/+4
Add in the alarm fix to allow locks to exit on alarm signal. Sync up the changes in tools. Jeremy. (This used to be commit cb6c663fa8818f49cc36f196bb5f4dea47edd69e)
2007-12-21r25867: libreplace: solaris has different prototypes for getpwent_r and ↵Stefan Metzmacher1-0/+32
getgrent_r metze (This used to be commit 44250ac6f987ba98e1efe8cd81b4e7eaa8017ed0)
2007-12-21r25865: libreplace: check for nss passwd|group get*_r functionsStefan Metzmacher1-0/+2
metze (This used to be commit 98095b34257847b2fbb5efe343c3630a28170692)
2007-12-21r25863: libreplace: we need include <unistd.h> before nss_wrapper.hStefan Metzmacher1-0/+3
metze (This used to be commit a16f0e3cdbb9fb1238e25af8bb911c27b839c89b)
2007-12-21r25838: libreplace: include nss_wrapper.h if NSS_WRAPPER is definedStefan Metzmacher1-0/+7
metze (This used to be commit 17f9189fb4b34dbc08f6aded6b0c81ee8eb07a9f)
2007-12-21r25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.cStefan Metzmacher1-0/+11
metze (This used to be commit 5648c8a0de7482a28a5b95410c083ac87577d482)
2007-12-21r25724: - include getaddrinfo.h after we have defined struct addrinfoStefan Metzmacher1-4/+5
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch] - define HAVE_<name> macros when we replace functions metze (This used to be commit 57d5cf4b5fe8885b1375059aa143c9c71d2503b4)
2007-12-21r25718: [libreplace] if we replace types define the HAVE_<type> macroStefan Metzmacher1-0/+3
this is needed as heimdal's roken.h also tries to replace the types metze (This used to be commit 8b92b811015d0855efe3cf4c58cd08e3654f8e88)
2007-12-21r25715: [libreplace] move definition of struct addrinfo so that it can use ↵Stefan Metzmacher1-15/+13
socklen_t metze (This used to be commit 12cec014c465a55974aedf44e0e782f5fb841088)
2007-12-21r25714: [libreplace] move define of a constant to near to the othersStefan Metzmacher1-4/+4
metze (This used to be commit 8bd2cf71bee1a08c3d420a330730434edbac5e28)
2007-12-21r25713: [libreplace] include socket_wrapper.h after we have typedef'ed socklen_tStefan Metzmacher1-7/+7
metze (This used to be commit a3657a4e7175e35707e7a00330f6924833774253)
2007-12-21r25687: Move #defined for getaddrinfo into network.h (as otherStefan Metzmacher1-4/+91
defines). Allows RHEL4 compile to work. Jeremy. (cherry picked from commit 0ffdf4fdeea88c21880c8bf69d8db56fb49effa7) (This used to be commit facb811bb3c77a0b98089c283fe0707c5f486c88)
2007-12-21r25685: rename getsmbpass -> rep_getpass and provide the function prototypeStefan Metzmacher1-1/+2
metze (cherry picked from commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e) (This used to be commit cd5069a8ca17a3a14814c0fbf55f113690291165)
2007-12-21r25677: add missing stuff from samba3Stefan Metzmacher1-0/+30
metze (This used to be commit d286c0533dd2726ebc547dcaf99f45169d4a9d2f)
2007-12-21r25602: don't imply "system/network.h" within replace.h,Stefan Metzmacher1-1/+11
as this brings in the socket_wrapper.h in unexpected code and we endup with a missing 'swrap_close' while linking metze (This used to be commit 507d5ca7d994f0771dbb66e61d2d22e391508658)
2007-12-21r25601: replace.h should never imply any "system/*.h"Stefan Metzmacher1-0/+10
(here it's "system/time.h") metze (This used to be commit 00467c25930a527eb9831cfd893bd8e217ca4f74)
2007-10-10r25597: HPUX doesn't have INET_ADDRSTRLEN definedStefan Metzmacher1-0/+4
metze (This used to be commit f9696109cc8f4646599f73b78e1eacd94d1a6c2c)
2007-10-10r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, ↵Jelmer Vernooij1-0/+4
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)
2007-10-10r25017: Move MAXHOSTNAMELEN definition to replace.h as it is usually part ofJelmer Vernooij1-8/+0
sys/param.h. (This used to be commit 7016d500287ae587d044744f2a318c402148ebea)
2007-10-10r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell18-36/+18
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
2007-10-10r23795: more v2->v3 conversionAndrew Tridgell18-18/+18
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
2007-10-10r23237: update lib/replace from ctdbAndrew Tridgell1-0/+4
(This used to be commit 361c5995bcf1dafb89f935ac4183dc295e1d524d)
2007-10-10r22829: system/select.h needs to bring in epoll.h for epoll usage inAndrew Tridgell1-0/+4
lib/events (This used to be commit 2c9d0b57f9cef96ac0878a9761f3c15774fda336)
2007-10-10r22827: Change license to LGPL (discussed with tridge).Jelmer Vernooij18-201/+288
(This used to be commit 1193c759622edd9e6843d9b7f53d9532748ce8a0)
2007-10-10r22217: merge from samba3 21944:Stefan Metzmacher2-1/+6
move acl header checks to the correct place only metze (This used to be commit be84eb68e1f0d3826b9f819fa44d8b399e38cbcd)
2007-10-10r20930: use sigaction() instead of signal()Andrew Tridgell1-0/+4
add support for sa_flags argument to event_add_signal(). These are passed to sigaction(). Special handling is provided for SA_RESETHAND (which tells the event system to remove the handler after the signal) and SA_SIGINFO which allows the siginfo structure to be received per signal (This used to be commit 1bb10b6cf7d717ad21834e73a4ca4b22b5fb6f0a)
2007-10-10r20819: - include system/aio.hStefan Metzmacher1-1/+1
- use full prototype for main - use ifdef instead if metze (This used to be commit b3a3c44f42455d6f84ab2f1f282fb177f8b6013c)