summaryrefslogtreecommitdiff
path: root/source3/lib/replace/replace.h
AgeCommit message (Collapse)AuthorFilesLines
2008-03-19libreplace: move rep_socketpair() to its own module.Michael Adam1-1/+1
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-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-19r26495: Add defines for getifaddrs/freeifaddrs.Jelmer Vernooij1-0/+10
(cherry picked from commit c9e5a3078f7baa83743658d5648f0eefdeb05d2f) (This used to be commit f2f552106820d1a8f07bccc1a3ad9b45582c8b30)
2007-11-15Add MAX_DNS_NAME_LENGTH, remove more pstrings.Jeremy Allison1-0/+4
Jeremy. (This used to be commit a1725f4ff7ed375808c78ac661b539557748d0a5)
2007-11-10Always define PATH_MAX. Makes code simpler (removesJeremy Allison1-0/+4
a bunch of #defines). Remove pstring from msdfs.c. Jeremy. (This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
2007-11-08Remove more fstring/pstring bad useage. Go talloc !Jeremy Allison1-1/+1
Jeremy. (This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
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-10-15missing stuff from samba4's libreplaceStefan Metzmacher1-1/+0
metze (This used to be commit 0177158d85797e0d22c81d88175a77d4ad5ed711)
2007-10-15don't imply "system/network.h" within replace.h,metze1-3/+7
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-6/+2
(This used to be commit d39ce8e37ed81f4a34a148f975874989d8d187a1)
2007-10-10r25557: merge libreplace fixes from samba4Jelmer Vernooij1-6/+1
(This used to be commit 8c1669997c53f0f7bfb9a794083afd01b131f676)
2007-10-10r25505: Add a replacement (IPv4 only) implementation of getaddrinfo/freeaddrinfoJeremy Allison1-4/+6
under the 2 clause *BSD license for future use in IPv6 code. Original code was from PostgreSQL and I've maintained their license even though I've rewritten large parts of it (I probably should donate this back to them). Jeremy. (This used to be commit 760d993340a966269d71acfb7a6b5e4d3776ac5d)
2007-10-10r25472: Fix the interfaces code to detect IPv6 interfaces, using theJeremy Allison1-6/+6
new standard getifaddrs() and freeifaddrs() interfaces. Currently we only return IPv4 af_families. Needs fixing for binds to IPv6 but this has to be careful work. Jeremy. (This used to be commit 327875182c9219aeba687e10aaea93546d9a70ea)
2007-10-10r25455: Ensure we have inet_ntop and inet_pton available in lib/replace.Jeremy Allison1-3/+17
Jeremy. (This used to be commit 1f719905440d4c87c526c56532f47d894cfec5f0)
2007-10-10r25252: move macro defines to the end of replace.hStefan Metzmacher1-32/+35
and move the include location sys/param.h before we redefine missing macros metze (This used to be commit 862046028c3c61adf6da2effac91abf3c763635d)
2007-10-10r25232: sync lib/replace with SAMBA_4_0Stefan Metzmacher1-1/+9
metze (This used to be commit 828d2ca0610ab5ee3b96d187b3432b9b4fea72f8)
2007-10-10r24354: Remove offsetof macroVolker Lendecke1-4/+0
Samba4 seems not to suffer from it (This used to be commit d93b5d50a00286586c931a5876f5933a520b6ce7)
2007-10-10r24341: Make libreplace provide offsetof.Jelmer Vernooij1-0/+4
(This used to be commit 4a5fa715a6af281282092644817599f79806981d)
2007-10-10r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell1-2/+1
(This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
2007-10-10r23790: LGPLv3+ conversion for our LGPLv2+ library codeAndrew Tridgell1-1/+1
(This used to be commit 1b78cace504f60c0f525765fbf59d9cc6506cd4d)
2007-10-10r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.Michael Adam1-0/+10
This fixes the build on a SuSE 6.1. :-) I guess this had been merely forgotten. But beware: The implementations of rep_pread and rep_pwrite are not thread safe. Michael (This used to be commit 5f5b93149216eb57872e4291336685b96948681e)
2007-10-10r23309: sync lib/replace with SAMBA_4_0Stefan Metzmacher1-0/+12
metze (This used to be commit 20965d800fcac0c55853fb12cdd36b5836fc7e56)
2007-10-10r23307: move readahead stuff out of libreplace and make it samba3 specificStefan Metzmacher1-4/+0
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)
2007-10-10r23109: Redo the change from r22772 I accidentially undid in r23108.Michael Adam1-0/+4
Michael (This used to be commit 18a7e739ea5d19b2e220641e19662e2c263d281a)
2007-10-10r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.Michael Adam1-5/+6
Fixing build of ldb for instance on some systems without dlfcn.h. (This used to be commit 5a06726e6873accd255d584e2c18e62dfcac108d)
2007-10-10r22772: - Still working on the fact that readahead() is not declared (on at ↵Derrell Lipman1-0/+5
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)
2007-10-10r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplaceStefan Metzmacher1-0/+29
metze (This used to be commit 8a7d2e633b98aa9c73cf1f7d1369015b294cf2e1)
2007-10-10r22274: merge from samba4:Stefan Metzmacher1-1/+9
- provide __LINESTR__ macro - add __STRINGSTRING() macro to really create a string of __LINE__ - fix __location__ macro metze (This used to be commit 5ca18546444e3e65491c2104cf8eeb1022bb5591)
2007-10-10r22271: merge from samba4:Stefan Metzmacher1-0/+4
provide __location__ in replace.h and see how the build-farm likes this simpler version metze (This used to be commit 3f87165771ecbbcd70e870235e324d25b21a04d4)
2007-10-10r22264: merge from samba4:Stefan Metzmacher1-1/+1
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)
2007-10-10r22252: merge from samba4:Stefan Metzmacher1-1/+5
add prototype of setenv metze (This used to be commit 42ccfaf5e58d92e04ba490f726e5d6972039bdc4)
2007-10-10r22227: merge from samba4:Stefan Metzmacher1-0/+23
move discard_const macros to librelace metze (This used to be commit 8f4a39127f7b560a7a609e74423ccb88f53e545e)
2007-10-10r22221: merge from samba4:Stefan Metzmacher1-1/+12
- libreplace unsetenv() and strptime() replacements metze (This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)
2007-10-10r20817: sync lib/replace with samba4Stefan Metzmacher1-0/+4
metze (This used to be commit 352ee730308bbc151a742938818c9b8b3a6e8014)
2007-10-10r19240: move the NO_CONFIG_H check to libreplaceStefan Metzmacher1-0/+2
this fixes the quota detection configure and maybe more configure tests metze (This used to be commit a3a082c42ccb21cb16d2e53991808ef3224efc6c)
2007-10-10r19030: merge missing stuff from samba4:Stefan Metzmacher1-2/+4
- strnlen() and strndup() are broken on AIX - we need some extra CFLAGS on HPUX 11.11 metze (This used to be commit 61aa60c60ffddcbad433b26d7f3a836e4fcd8732)
2007-10-10r18998: - make more usage of PRINTF_ATTRIBUTE()Stefan Metzmacher1-9/+8
- vsyslog takes a 'const char *format' metze (This used to be commit 8899bc45f908a15fb496f5c0a29692e7494a56cc)
2007-10-10r18991: Fix bug 4133 -- Thanks to Olaf FlebbeVolker Lendecke1-0/+7
(This used to be commit 00f09d851c734cb6450feac2d6efc71a540be11f)
2007-10-10r18864: merge lib/replace changes from samba4Andrew Tridgell1-2/+2
(This used to be commit 6d5f507136be327558e98214b64eca225ca23d66)
2007-10-10r18784: hopefully fix the BOOL bug on AIXStefan Metzmacher1-0/+11
metze (This used to be commit 454d9590de6ff94a1edd7321e26af0f0978a356a)
2007-10-10r18673: define the macros even if we don't define bool ourselfStefan Metzmacher1-2/+10
metze (This used to be commit 65013a8d9e678c44cecae07967b7a001b796faf1)
2007-10-10r18672: fix the build on Tru64Stefan Metzmacher1-1/+8
metze (This used to be commit 6c101d206812fe24233409e0757cad52638e685a)
2007-10-10r18671: try to fix the build on solaris 10 and maybe some other hostsStefan Metzmacher1-0/+1
we need to define 'BOOL_DEFINED' to make sure it didn't get redefined by <rpcsvc/yp_prot.h> metze (This used to be commit 5a589bb16c2bb3da75874bd190384eabd39eb972)
2007-10-10r18649: the PRINTF_ATTRIUTE() macro is provided by libreplaceStefan Metzmacher1-1/+1
metze (This used to be commit dd76f4f5f374ec4822abbf1a09d26287926b92ce)
2007-10-10r18644: bring in libreplace in lib/replaceStefan Metzmacher1-0/+367
metze (This used to be commit 596cbe73dd268742acf456fccd8a234376fb0c97)