Matthieu Patou
62eb450bc2
replace: restore the order for #define + rep_strtoll
2010-10-26 23:59:55 +04:00
Stefan Metzmacher
d65896cc3c
lib/replace: fix rep_strtoull() prototype
...
metze
2010-10-23 08:49:28 +02:00
Matthieu Patou
2d0ac59fcc
replace: use a wrapper around strtoll if it didn't behave as expected
2010-10-22 01:00:53 +04:00
Andrew Tridgell
ec90b249ec
replace: cope with systems that have fdatasync(), but don't have the prototype
...
this is needed for MacOSX 10.4.1
2010-10-19 11:22:35 +11:00
Björn Jacke
9b73bb0099
libreplace: fix endless strerror_r has been redefined warnings on AIX
2010-09-22 11:18:59 -07:00
Björn Jacke
3df1037a74
libreplace: add clock_gettime replacement function for systems that don't have it
2010-08-31 09:07:29 +02:00
Jelmer Vernooij
481044f8b3
replace: Fix ifndefs for formatting defines.
...
Thanks to Michael Brown for pointing this out.
2010-08-23 15:10:07 +02:00
Andrew Tridgell
4e448e2d2c
libreplace: added _PUBLIC_ and _PRIVATE_ to replace.h
...
these are needed for all libs that use ABI checking, so libreplace
is the logical place for now
2010-04-18 15:00:37 +10:00
Andrew Tridgell
686221eae2
s4-waf: use the libreplace strerror_r if needed
2010-03-29 21:34:29 +11:00
Andrew Tridgell
c81d2ae3c9
libreplace: strerror_r() is needed by heimdal on solaris8
2010-03-26 16:50:48 +11:00
Andrew Tridgell
a599319d0a
libreplace: fixed declaration of dprintf() on FreeBSD
2010-03-24 07:11:38 +01:00
Andrew Tridgell
f3c738f819
replace: added get_current_dir_name()
2010-03-05 23:07:32 +11:00
Andrew Tridgell
f435538576
libreplace: add fdatasync() if not available
2010-02-13 22:36:11 +11:00
Andrew Tridgell
fef3c910da
libreplace: some systems don't have memmem()
...
added rep_memmem() and a testsuite
2010-01-02 10:08:12 +11:00
Andrew Tridgell
6dfd10f476
libreplace: added likely()/unlikely() macros for gcc
...
These macros allow the compile to better optimise code that has a lot
of if statements. I particularly want to use this for our low level
generated NDR code.
2009-09-17 15:19:25 -07:00
Matt Kraai
dbedfc318e
include unix.h if it's available
2009-07-19 15:59:03 +02:00
Brad Hards
703d589770
Avoid using deprecated form of AC_CHECK_TYPE.
...
libreplace makes use of an older form of AC_CHECK_TYPE which basically
provides a fallback definition for the type if it isn't available.
http://www.gnu.org/software/hello/manual/autoconf/Obsolete-Macros.html#Obsolete-Macros
shows why this isn't a good idea (its not so important, except for pointer types).
This patch partly addresses the issue.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-04-22 10:36:47 +02:00
Stefan Metzmacher
412b89afba
lib/replace: move MAXHOSTNAMELEN to system/network.h
...
Some platforms define it in netdb.h, so we should
define the replace after including metdb.h.
metze
2009-01-31 09:32:14 +01:00
Stefan Metzmacher
7fc7ee9331
lib/replace: add defines to let the callers find out if pwrite and pread are thread/fork safe
...
metze
2009-01-22 12:39:34 +01:00
Jelmer Vernooij
b327c0a2da
Samba3: Remove more configure tests already done by libreplace.
2008-11-02 17:39:41 +01:00
Jelmer Vernooij
cd55fdd445
Fix return type of readlink().
2008-11-01 04:36:24 +01:00
Jelmer Vernooij
31fa08dcbd
Merge branch 'master' of /home/jelmer/samba3
...
Conflicts:
lib/replace/README
lib/replace/libreplace.m4
lib/replace/replace.c
source3/include/proto.h
source3/lib/system.c
2008-11-01 04:02:47 +01:00
Jelmer Vernooij
5a56c0adf2
Use dup2() replacement from libreplace.
2008-11-01 03:58:14 +01:00
Jelmer Vernooij
6a2caa34b2
Remove sys_chroot() - libreplace already provides an alternative.
2008-11-01 03:46:09 +01:00
Jelmer Vernooij
a6d537bb6c
Move sys_realpath() to libreplace.
2008-11-01 03:42:27 +01:00
Jelmer Vernooij
38d67363ac
Move sys_lchown() to libreplace.
2008-11-01 03:39:20 +01:00
Jelmer Vernooij
e8cda43e17
Move sys_symlink() to libreplace.
2008-11-01 03:35:58 +01:00
Jelmer Vernooij
dbda9adfaf
Move sys_readlink() to libreplace.
2008-11-01 03:33:39 +01:00
Jelmer Vernooij
bbbe6ab722
Move sys_link to libreplace.
2008-11-01 03:30:47 +01:00
Jelmer Vernooij
161d70a57a
Move sys_chown() to rep_chown().
2008-11-01 03:27:45 +01:00
Jelmer Vernooij
aafe9ca1aa
Fix definition of environ on Mac OS X (bugzilla: #5412 ).
2008-10-27 23:39:53 +01:00
Jelmer Vernooij
620a27bdf1
Don't assume crypt.h is present even if crypt() is.
2008-10-20 10:38:03 +02:00
Jelmer Vernooij
33032d591f
Move ufc to libreplace.
2008-10-18 17:49:41 +02:00
Jelmer Vernooij
3bd73c926e
Define inttypes macros if not provided by system.
2008-10-14 04:12:53 +02:00
Jelmer Vernooij
b96329f4f9
Define __STDC_FORMAT_MACROS, required for PRIu64 define (among others)
...
from inttypes.h.
2008-10-14 03:42:54 +02:00
Jelmer Vernooij
94855cd692
Move common libraries from root to lib/.
2008-09-17 14:11:12 +02:00