1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/lib/replace
Michael Adam cbdad76b0d r26255: Work around another broken aspect of sys/capability.h on RHEL5.
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 df3e151992)
2007-12-21 05:47:30 +01:00
..
system r26255: Work around another broken aspect of sys/capability.h on RHEL5. 2007-12-21 05:47:30 +01:00
test r26102: libreplace: remove system/printing.h as it only contains samba3 stuff 2007-12-21 05:46:04 +01:00
.checker_innocent r19120: silence a warning about a test function 2007-10-10 14:20:37 -05:00
aclocal.m4 r18485: include libreplace.m4 in the aclocal.m4 files 2007-10-10 14:18:36 -05:00
autoconf-2.60.m4 r22658: - add AC_GNU_SOURCE macro for systems which don't have it 2007-10-10 14:51:58 -05:00
autogen.sh r18088: sometimes autoconf picks up some old stuff: 2007-10-10 14:17:14 -05:00
config.guess r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 14:59:16 -05:00
config.sub r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 14:59:16 -05:00
configure.ac r25231: revert hunk that was commited together with the change to gplv3 2007-10-10 15:06:58 -05:00
dlfcn.c r25859: Wrap native HPUX functions in dl implementation. 2007-12-21 05:44:30 +01:00
dlfcn.m4 r25855: Check for HPUX dl functions. 2007-12-21 05:44:29 +01:00
getaddrinfo.c r25909: Fix the snprintf checks, and fix a typo in pointer indirection. 2007-12-21 05:44:50 +01:00
getaddrinfo.h r25724: - include getaddrinfo.h after we have defined struct addrinfo 2007-12-21 05:43:29 +01:00
getaddrinfo.m4 r25906: libreplace: we need to link to make sure the functions are available 2007-12-21 05:44:48 +01:00
getpass.c r25912: Two patches 2007-12-21 05:44:51 +01:00
getpass.m4 r25683: fix the compilation of getpass.c and it's configure test 2007-12-21 05:43:12 +01:00
inet_ntop.c r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo 2007-10-10 15:07:51 -05:00
inet_ntop.m4 r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo 2007-10-10 15:07:51 -05:00
inet_pton.c r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo 2007-10-10 15:07:51 -05:00
inet_pton.m4 r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo 2007-10-10 15:07:51 -05:00
install-sh r18033: added install-sh, needed for standalone libreplace build 2007-10-10 14:17:05 -05:00
libreplace_cc.m4 r25976: libreplace: not all platforms like _XOPEN_SOURCE=600 2007-12-21 05:45:26 +01:00
libreplace_ld.m4 r26027: libreplace: rename AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG into AC_LIBREPLACE_LD_SHLIB_ALLOW_UNDEF_FLAG 2007-12-21 05:45:45 +01:00
libreplace_macros.m4 r25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE 2007-12-21 05:45:24 +01:00
libreplace.m4 r25864: libreplace: we should only have one location where we check for required functions 2007-12-21 05:44:32 +01:00
Makefile.in r23306: pass down LDFLAGS to the link command in the libreplace standalone build 2007-10-10 14:53:10 -05:00
README r25556: Update README. 2007-10-10 15:07:56 -05:00
repdir_getdents.c r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
repdir_getdirentries.c r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
repdir.m4 r19032: let the getdents replacement fail and see what the build-farm says. 2007-10-10 14:20:30 -05:00
replace.c r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
replace.h r25911: Remove more fstring/pstring bad useage. Go talloc ! 2007-12-21 05:44:51 +01:00
samba.m4 r22029: Make sure we respect $srcdir correctly for the srcdir != builddir case. 2007-10-10 14:49:42 -05:00
snprintf.c r21174: many thanks to Paul Wayper for pointing out that C99 requires a 2007-10-10 14:44:42 -05:00
strptime.c r23800: LGPL is now called GNU Lesser General Public License 2007-10-10 14:59:17 -05:00
strptime.m4 r22216: move strptime testsuite into it's own file 2007-10-10 14:50:38 -05:00
timegm.c r19408: I think tm_mon is ending up as -1 on some platforms 2007-10-10 14:21:27 -05:00
timegm.m4 r18460: split out timegm test and only add timegm.o when needed 2007-10-10 14:18:33 -05:00
win32_replace.h r18458: move wins32 stuff to the top dir 2007-10-10 14:18:33 -05:00
win32.m4 r18458: move wins32 stuff to the top dir 2007-10-10 14:18:33 -05:00

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
initgroups
memmove
strdup
inet_ntoa
setlinebuf
vsyslog
timegm
setenv
unsetenv
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
inet_ntop
inet_pton
strtoll
strtoull
socketpair
strptime
getaddrinfo
freeaddrinfo
getnameinfo
gai_strerror

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
RTLD_LAZY
HOST_NAME_MAX
UINT16_MAX
UINT32_MAX
UINT64_MAX
CHAR_BIT

Macros:
va_copy
__FUNCTION__
__FILE__
__LINE__
__LINESTR__
__location__
__STRING
__STRINGSTRING
MIN
MAX
QSORT_CAST
ZERO_STRUCT
ZERO_STRUCTP
ZERO_STRUCTPN
ZERO_ARRAY
ARRAY_SIZE
PTR_DIFF

Headers:
stdint.h
stdbool.h

Prerequisites:
memset (for bzero)
syslog (for vsyslog)
mktemp (for mkstemp and mkdtemp)