From 8f153c6128dd15fb132d8ddb1752e793bd6a5985 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 18 Sep 2006 22:49:20 +0000 Subject: r18644: bring in libreplace in lib/replace metze (This used to be commit 596cbe73dd268742acf456fccd8a234376fb0c97) --- source3/lib/replace/README | 80 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 source3/lib/replace/README (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README new file mode 100644 index 0000000000..fd630ddc45 --- /dev/null +++ b/source3/lib/replace/README @@ -0,0 +1,80 @@ +This subsystem ensures that we can always use a certain core set of +functions and types, that are either provided by the OS or by replacement +functions / definitions in this subsystem. The aim is to try to stick +to POSIX functions in here as much as possible. Convenience functions +that are available on no platform at all belong in other subsystems +(such as LIBUTIL). + +The following functions are guaranteed: + +ftruncate +strlcpy +strlcat +mktime +rename +innetgr +initgroups +memmove +strdup +inet_ntoa +setlinebuf +vsyslog +timegm +setenv +strndup +strnlen +waitpid +seteuid +setegid +asprintf +snprintf +vasprintf +vsnprintf +opendir +readdir +telldir +seekdir +closedir +dlopen +dlclose +dlsym +dlerror +chroot +bzero +strerror +errno +mkdtemp +mkstemp (a secure one!) +pread +pwrite +getpass +readline (the library) +inet_ntoa +strtoll +strtoull + +Types: +bool +socklen_t +uint_t +uint{8,16,32,64}_t +int{8,16,32,64}_t +intptr_t + +Constants: +PATH_NAME_MAX +UINT{16,32,64}_MAX +INT32_MAX + +Macros: +va_copy +__FUNCTION__ +__STRING +MIN +MAX + +Prerequisites: +memset (for bzero) +syslog (for vsyslog) +setnetgrent, getnetgrent, endnetgrent (for innetgr) +mktemp (for mkstemp and mkdtemp) -- cgit From 64d4ff5dcc24d8dfd104b340816d2c89b7735a85 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 24 Sep 2006 02:29:12 +0000 Subject: r18864: merge lib/replace changes from samba4 (This used to be commit 6d5f507136be327558e98214b64eca225ca23d66) --- source3/lib/replace/README | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index fd630ddc45..182a276116 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -65,6 +65,12 @@ Constants: PATH_NAME_MAX UINT{16,32,64}_MAX INT32_MAX +RTLD_LAZY +HOST_NAME_MAX +UINT16_MAX +UINT32_MAX +UINT64_MAX +CHAR_BIT Macros: va_copy @@ -72,6 +78,7 @@ __FUNCTION__ __STRING MIN MAX +QSORT_CAST Prerequisites: memset (for bzero) -- cgit From 2f66beb8adf679ed1e2e36f9c808c43f095e23cf Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 15 Jan 2007 19:10:54 +0000 Subject: r20817: sync lib/replace with samba4 metze (This used to be commit 352ee730308bbc151a742938818c9b8b3a6e8014) --- source3/lib/replace/README | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 182a276116..a313984c8e 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -52,6 +52,7 @@ readline (the library) inet_ntoa strtoll strtoull +socketpair Types: bool -- cgit From 3e5219d8ec7be0fae5c53297817f1f58ce7a5f8c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 16 Feb 2007 15:35:26 +0000 Subject: r21388: Merge support for providing replacement system headers. (This used to be commit 78d6c88f10d600e05c4346affbba1d95c614dc34) --- source3/lib/replace/README | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index a313984c8e..21cd0051c7 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -81,6 +81,10 @@ MIN MAX QSORT_CAST +Headers: +stdint.h +stdbool.h + Prerequisites: memset (for bzero) syslog (for vsyslog) -- cgit From 1ec9de1104f4563a5f3dbb96d41908d219e5b889 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 10 Apr 2007 15:59:39 +0000 Subject: r22151: remove netgr functions from libreplace they're not used in samba4 currently and samba3 has explicit configure checks for them. should fix bug #4496 metze (This used to be commit 7f61b3f0095efed81adc9022ba44e5c7df84d2f2) --- source3/lib/replace/README | 2 -- 1 file changed, 2 deletions(-) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 21cd0051c7..68d2c8ba2c 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -12,7 +12,6 @@ strlcpy strlcat mktime rename -innetgr initgroups memmove strdup @@ -88,5 +87,4 @@ stdbool.h Prerequisites: memset (for bzero) syslog (for vsyslog) -setnetgrent, getnetgrent, endnetgrent (for innetgr) mktemp (for mkstemp and mkdtemp) -- cgit From 2f1aafa2a7e36298cc1e0e593b30fac1ab278596 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 15 Apr 2007 20:12:09 +0000 Subject: r22221: merge from samba4: - libreplace unsetenv() and strptime() replacements metze (This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9) --- source3/lib/replace/README | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 68d2c8ba2c..8e0e659c7d 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -20,6 +20,7 @@ setlinebuf vsyslog timegm setenv +unsetenv strndup strnlen waitpid @@ -52,6 +53,7 @@ inet_ntoa strtoll strtoull socketpair +strptime Types: bool -- cgit From 48e29ff642282a6c240114d8d6285548f81098a6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Apr 2007 19:23:00 +0000 Subject: r22271: merge from samba4: provide __location__ in replace.h and see how the build-farm likes this simpler version metze (This used to be commit 3f87165771ecbbcd70e870235e324d25b21a04d4) --- source3/lib/replace/README | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 8e0e659c7d..d63847556c 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -77,6 +77,9 @@ CHAR_BIT Macros: va_copy __FUNCTION__ +__FILE__ +__LINE__ +__location__ __STRING MIN MAX -- cgit From 004860e1cc2b911939966b8841edf8e5223d6db3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Apr 2007 19:46:06 +0000 Subject: r22274: merge from samba4: - provide __LINESTR__ macro - add __STRINGSTRING() macro to really create a string of __LINE__ - fix __location__ macro metze (This used to be commit 5ca18546444e3e65491c2104cf8eeb1022bb5591) --- source3/lib/replace/README | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index d63847556c..c2de560314 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -79,8 +79,10 @@ va_copy __FUNCTION__ __FILE__ __LINE__ +__LINESTR__ __location__ __STRING +__STRINGSTRING MIN MAX QSORT_CAST -- cgit From a8c62502741fe287091cc9001b69fbd7496e3562 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 17 Apr 2007 08:03:29 +0000 Subject: r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace metze (This used to be commit 8a7d2e633b98aa9c73cf1f7d1369015b294cf2e1) --- source3/lib/replace/README | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index c2de560314..77558b2ca9 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -86,6 +86,12 @@ __STRINGSTRING MIN MAX QSORT_CAST +ZERO_STRUCT +ZERO_STRUCTP +ZERO_STRUCTPN +ZERO_ARRAY +ARRAY_SIZE +PTR_DIFF Headers: stdint.h -- cgit From 1b55cf43849543babe0210ea0260752212a53f22 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Thu, 10 May 2007 01:27:18 +0000 Subject: r22772: - Still working on the fact that readahead() is not declared (on at 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) --- source3/lib/replace/README | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 77558b2ca9..a2f9e2fa29 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -55,6 +55,11 @@ strtoull socketpair strptime +These external declarations are provided for those systems which lack the +declaration but provide the function: + +readahead + Types: bool socklen_t -- cgit From b25bebb960eee796d5c5b1483f20250ed286894b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 2 Jun 2007 08:30:42 +0000 Subject: r23307: move readahead stuff out of libreplace and make it samba3 specific 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) --- source3/lib/replace/README | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index a2f9e2fa29..77558b2ca9 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -55,11 +55,6 @@ strtoull socketpair strptime -These external declarations are provided for those systems which lack the -declaration but provide the function: - -readahead - Types: bool socklen_t -- cgit From db2666759d90610648c32a8c861529004d0624f1 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 12 Aug 2007 01:06:02 +0000 Subject: r24341: Make libreplace provide offsetof. (This used to be commit 4a5fa715a6af281282092644817599f79806981d) --- source3/lib/replace/README | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 77558b2ca9..e7b89936c0 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -92,6 +92,7 @@ ZERO_STRUCTPN ZERO_ARRAY ARRAY_SIZE PTR_DIFF +offsetof Headers: stdint.h -- cgit From 68edc3a5c5a3cfeed222a95bbe75dadd41dbb5ea Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 19 Sep 2007 14:57:20 +0000 Subject: r25232: sync lib/replace with SAMBA_4_0 metze (This used to be commit 828d2ca0610ab5ee3b96d187b3432b9b4fea72f8) --- source3/lib/replace/README | 1 - 1 file changed, 1 deletion(-) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index e7b89936c0..77558b2ca9 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -92,7 +92,6 @@ ZERO_STRUCTPN ZERO_ARRAY ARRAY_SIZE PTR_DIFF -offsetof Headers: stdint.h -- cgit From d154a0d74b23b4a1fbd921f17dec3e0e3506eeab Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 6 Oct 2007 23:07:33 +0000 Subject: r25557: merge libreplace fixes from samba4 (This used to be commit 8c1669997c53f0f7bfb9a794083afd01b131f676) --- source3/lib/replace/README | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 77558b2ca9..c61f78a951 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -50,10 +50,16 @@ pwrite getpass readline (the library) inet_ntoa +inet_ntop +inet_pton strtoll strtoull socketpair strptime +getaddrinfo +freeaddrinfo +getnameinfo +gai_strerror Types: bool -- cgit From 621983ed6d110fdc24215ba2963fcd93316accce Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 16 Dec 2007 14:50:11 +0100 Subject: r26470: Update README. (cherry picked from commit 51a78cfc3e72d6b32ef6c7a6079165a36863b908) (This used to be commit 556b6b9a2fe5dd9da85b1605d91a7216a6c6d308) --- source3/lib/replace/README | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index c61f78a951..268a1b15cf 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -60,6 +60,8 @@ getaddrinfo freeaddrinfo getnameinfo gai_strerror +getifaddrs +freeifaddrs Types: bool -- cgit From 27517ea5bbd0cb7fb0f1a1d88d8282380f14e717 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 14 Mar 2008 08:49:34 +0100 Subject: libreplace: add an inet_aton() function that calls inet_pton(). 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) --- source3/lib/replace/README | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 268a1b15cf..aae1ccb56f 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -52,6 +52,7 @@ readline (the library) inet_ntoa inet_ntop inet_pton +inet_aton strtoll strtoull socketpair -- cgit From d8b6902c24b6eeddf7ac7360615a25d235f63acc Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 18 Mar 2008 16:31:15 +0100 Subject: libreplace: remove duplicate entry of inet_ntoa from README. Michael (cherry picked from commit 98ee8c84300757d778733a458c6ca3e6022b40ea) (This used to be commit a4f22d6e2b3fc198327deabf4a724cd476e4144c) --- source3/lib/replace/README | 1 - 1 file changed, 1 deletion(-) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index aae1ccb56f..43f7b08572 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -15,7 +15,6 @@ rename initgroups memmove strdup -inet_ntoa setlinebuf vsyslog timegm -- cgit From db4ab7aae3b44b22b70013f13da370b74d429553 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 7 May 2008 13:10:31 +0200 Subject: libreplace: always provide utime() and utimes() 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) --- source3/lib/replace/README | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/lib/replace/README') diff --git a/source3/lib/replace/README b/source3/lib/replace/README index 43f7b08572..4d94317c4b 100644 --- a/source3/lib/replace/README +++ b/source3/lib/replace/README @@ -62,6 +62,8 @@ getnameinfo gai_strerror getifaddrs freeifaddrs +utime +utimes Types: bool -- cgit