Björn Jacke
0a1aaca1bd
replace: define INT64_MAX when not defined
...
Tru64 doesn't have any stdint.h
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun 28 00:45:58 CEST 2012 on sn-devel-104
2012-06-28 00:45:58 +02:00
Stefan Metzmacher
deca298d7b
lib/replace: define HAVE_WORKING_STRPTIME instead of REPLACE_STRPTIME
...
That makes the logic in 'wscript' simpler.
metze
2012-06-14 09:34:14 +02:00
Andrew Bartlett
d42d4523ed
librepace: put #defines after #include "sys/xattr.h"
...
This avoids redefining the system xattr functions, which should fix MacOS.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Jun 3 09:46:44 CEST 2012 on sn-devel-104
2012-06-03 09:46:44 +02:00
Andrew Bartlett
e7dcb9125c
libreplace: Fix build on MacOS where we have the same fn name but more arguments
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Jun 2 15:52:51 CEST 2012 on sn-devel-104
2012-06-02 15:52:51 +02:00
Andrew Bartlett
e9d797e153
lib/replace: Merge remaining xattr test details from lib/util
...
I prefer the longer XATTR_ADDITIONAL_OPTIONS define and the NULL
rather than 0 values in the getxattr test.
Andrew Bartlett
2012-06-02 02:13:49 +02:00
Andrew Bartlett
c290cdb934
lib/replace: xattr wrappers in lib/replace rather than source3/lib/system.c
...
This also moves all the still-used configure tests etc. The unused OSF API
is also removed at this time.
Andrew Bartlett
2012-06-02 02:13:49 +02:00
Jeremy Allison
d425a4cd3d
On advice from Jelmer and Andrew, move the blksize_t and blkcnt_t tests into libreplace to make it standalone.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Apr 10 04:07:11 CEST 2012 on sn-devel-104
2012-04-10 04:07:11 +02:00
Jeremy Allison
5701a4d861
Move blksize_t and blkcnt_t to replace.h from includes.h. Should help with platforms that don't have these.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 9 21:40:42 CEST 2012 on sn-devel-104
2012-04-09 21:40:40 +02:00
Jelmer Vernooij
49eca290d3
libreplace: Add usleep implementation.
2012-03-24 22:41:05 +01:00
Jelmer Vernooij
71d41a015a
libreplace: Add getpeereid implementation.
2012-03-24 16:00:36 +01:00
Jelmer Vernooij
d4c4cb06c5
replace: Move memalign() from lib/util/system.c to libreplace.
2012-03-24 14:43:21 +01:00
Jelmer Vernooij
5931e1da87
replace: Add include for bsd/string.h.
2012-02-01 01:07:11 +01:00
Ira Cooper
a1901b55cf
Fix bug #8729 - getpass regressions on Solaris/Illumos - 3.6 and master.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jan 31 23:28:09 CET 2012 on sn-devel-104
2012-01-31 23:28:09 +01:00
Volker Lendecke
0fc1650e09
libreplace: poll based on select
2011-02-28 16:40:19 +01:00
Stefan Metzmacher
1e42aa6b3a
replace: Try to fix broken sys/capabilites.h on Linux.
...
As this is more or less a broken header we need to include linux/types.h
before sys/capabilities.h to avoid redefinitions.
Systems like ClearOS 5.2 need linux/types.h very early.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Feb 3 05:26:12 CET 2011 on sn-devel-104
2011-02-03 05:26:11 +01:00
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