1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00
Commit Graph

40 Commits

Author SHA1 Message Date
Jelmer Vernooij
3a479ae550 r19395: Fix replacement function compilation.
(This used to be commit b79303f251)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
f9a0ada725 r19393: Add replacement function for socketpair()
(This used to be commit 448a3ecc01)
2007-10-10 14:21:24 -05:00
Stefan Metzmacher
e8a005acfe r18999: merge from samba3:
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
(This used to be commit cdcd4232d2)
2007-10-10 14:20:28 -05:00
Andrew Tridgell
a8421e8107 r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef
(This used to be commit 095b805774)
2007-10-10 14:18:13 -05:00
Andrew Tridgell
3ca73facc5 r18160: - pread and pwrite replacements need to be non-static
- replacing rename() is pointless - all platforms have it (and the
  #define of rename breaks some code)

- use system/locale.h in snprintf.c

- fix passwd.h for initgroups

- stdlib is in replace.h, not needed elsewhere

- fix the initgroups replacement

- fix mapping of dl functions to rep_*
(This used to be commit 57cd0ca176)
2007-10-10 14:17:44 -05:00
Andrew Tridgell
92ff10f7b0 r18140: and this reduces warnings about toupper()
(This used to be commit 41419e54d5)
2007-10-10 14:17:39 -05:00
Andrew Tridgell
9ac11823bb r18139: irix needs system/network.h here
(This used to be commit f46ab799b4)
2007-10-10 14:17:38 -05:00
Andrew Tridgell
a983b06d37 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
(This used to be commit 77d1a468e0)
2007-10-10 14:17:36 -05:00
Andrew Tridgell
5d363fa0dd r18061: this should fix the libreplace build on us4 with gcc
(This used to be commit 71c0a0731c)
2007-10-10 14:17:10 -05:00
Andrew Tridgell
e057ef3c6f r18056: includes needed for O_CREAT
(This used to be commit 0b80ee8b3b)
2007-10-10 14:17:09 -05:00
Andrew Tridgell
cbae8b2014 r18052: discard_const_p() isn't part of the libreplace API, so we can't use it
inside libreplace.
(This used to be commit 5745ecdd82)
2007-10-10 14:17:08 -05:00
Andrew Tridgell
cb962c9373 r18044: timegm.c needs to be in a separate file
(This used to be commit 3ec1db7bd1)
2007-10-10 14:17:07 -05:00
Jelmer Vernooij
c90a12781b r18040: Use only one strnlen implementation
(This used to be commit 9a421425d2)
2007-10-10 14:17:06 -05:00
Jelmer Vernooij
38fdde5d9b r18031: Merge my replace fixes:
* libreplace can now build stand-alone
 * add stub testsuite for libreplace
 * make talloc/tdb/ldb use libreplace
(This used to be commit fe7ca4b145)
2007-10-10 14:17:05 -05:00
Volker Lendecke
515067a02e r18018: Fix the build on OpenBSD. No license problem this time, I've written strnlen
from scratch.

Volker
(This used to be commit 2a7cdf52e4)
2007-10-10 14:17:03 -05:00
Andrew Tridgell
0bb1c2da0e r17992: reverted r17842
This needs more consideration, as the patch removed the copyright
notice and license from the timegm.c code.

Volker, when you get a minute can you let me know what problem this
patch fixed so I can find a different approach?
(This used to be commit 5b9b9dd530)
2007-10-10 14:17:02 -05:00
Volker Lendecke
6e9097045f r17842: After talking to Simo, apply the next attempt to resolve the strnlen
problem. Timegm is the same. Simo says this is just a workaround, but it helps
for now. Feel free to revert.

Volker
(This used to be commit fd166ca0c0)
2007-10-10 14:16:47 -05:00
Volker Lendecke
a0d6264b90 r17841: Revert 17840, libldb.a defines strnlen. Sorry for the noise
(This used to be commit 1de3459082)
2007-10-10 14:16:47 -05:00
Volker Lendecke
d3c55f028e r17840: A step towards building on Solaris which appears not to have strnlen.
Volker
(This used to be commit ebf75c6196)
2007-10-10 14:16:47 -05:00
Andrew Tridgell
fe791078b7 r17763: moved setenv to ldb/replace/
(This used to be commit ed2dbc4dfe)
2007-10-10 14:16:38 -05:00
Andrew Tridgell
09129c73d7 r17750: these have moved to ldb/replace/ now
(This used to be commit ac178b5293)
2007-10-10 14:16:36 -05:00
James Peach
ff2041c955 r16556: Add mkdtemp to libreplace. This is apparantly available on Linux
and BSD systems, but it's not everywhere.
(This used to be commit b3d2512ed4)
2007-10-10 14:09:34 -05:00
Stefan Metzmacher
c62d1d21ab r16003: Tru64 doesn't have strtoll/strtoull but the size of 'long' is equal to
the size of 'long long' so we can use strtol/strtoul

Patch from Bjoern Jacke, thanks!
(I only added the SIZEOF_LONG == SIZEOF_LONG_LONG)

metze
(This used to be commit 2bda7b63be)
2007-10-10 14:08:48 -05:00
Andrew Tridgell
0a1a19d9d9 r15953: our timegm() replacement still doesn't work, so grab the one from
Heimdal which does work. This should fix most of the rest of the
failures on solaris
(This used to be commit acfaa98b5e)
2007-10-10 14:08:44 -05:00
Andrew Tridgell
01b8c1913d r15879: strtok_r() replacement, for solaris
(This used to be commit df5bd916db)
2007-10-10 14:08:36 -05:00
Jim McDonough
96a858b5cd r15719: Fix build on systems (AIX) that don't have vsyslog or strcasestr, with
--enable-developer on.  syslog() and toupper() required more includes.

Someone more familiar with samba4 builds should verify this, please.
(This used to be commit d28f49fc6d)
2007-10-10 14:08:09 -05:00
Jelmer Vernooij
172a83d724 r15573: Fix build of systems that have iconv headers in non-standard locations
Split of system/locale.h header from system/iconv.h

Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda6)
2007-10-10 14:05:58 -05:00
Paul Green
ec83aa3fda r15382: Use grp.h in this block; it has been cleaned out of the other headers that formerly included it for us.
Paul
(This used to be commit a4d706cf26)
2007-10-10 14:05:30 -05:00
Jelmer Vernooij
e572bbb94c r15321: Reduce the size of rewrite.m4 a bit more
(This used to be commit c83e4b1665)
2007-10-10 14:05:15 -05:00
Jelmer Vernooij
10ec7dd61f r11343: Remove dependency on DEBUG()
(This used to be commit 407b5e615f)
2007-10-10 13:45:21 -05:00
Andrew Tridgell
1584f64920 r10896: added a strcasestr() replacement function
(This used to be commit 4483d275e1)
2007-10-10 13:39:41 -05:00
Andrew Tridgell
a2dffe109b r10523: fixed timegm() to not depend on get_time_zone(), so it works in lib/replace/
the old timegm() replacement was also broken (it returned the wrong value)
(This used to be commit 342489a1d4)
2007-10-10 13:39:00 -05:00
Jelmer Vernooij
4be0ae794e r10456: More SCons fixes:
- Add framework for fallback generating code
 - Move pread / pwrite replacement functions to libreplace
 - Support pidl builds correctly
 - Support asn1 builds correctly
 - Move OS-specific checks to lib/replace/SConscript
(This used to be commit fbbfad0a1f)
2007-10-10 13:38:48 -05:00
Jelmer Vernooij
f3b412fbd6 r10438: Move portability functions to lib/replace/; replace now simply ensures
that a given set of (working) POSIX functions are available (without
prefixes to their names, etc). See lib/replace/README for a list.

Functions that behave different from their POSIX specification
(such as sys_select, sys_read, etc) have kept the sys_ prefix.
(This used to be commit 29919a7105)
2007-10-10 13:38:45 -05:00
Andrew Tridgell
3f260e2efe r9374: HPUX is also missing setegid()
(This used to be commit 57e6bd6139)
2007-10-10 13:33:29 -05:00
Andrew Tridgell
5d899b8a35 r9369: an attempt to fix the build on HPUX. This is based on work by Don
McCall, but takes a slightly different approach that I hope will be
more generic
(This used to be commit e8260a81cf)
2007-10-10 13:33:28 -05:00
Andrew Tridgell
0edd0f43c0 r8710: another attempt at fixing HPUX
(This used to be commit eb3b3c8b40)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
fe6eeeb601 r8698: attempt to cope with lack of strtoull() on HPUX
(This used to be commit c84c516b17)
2007-10-10 13:29:55 -05:00
Andrew Tridgell
b484221730 r8580: try to fix the build on stratus
(This used to be commit 58d7a1e6a3)
2007-10-10 13:29:40 -05:00
Jelmer Vernooij
e4a505192d r7166: Move replacement stuff to seperate directory
(easier to add win32-specific bits later)
Trim LIBBASIC a bit more
(This used to be commit fc7f519e4a)
2007-10-10 13:17:22 -05:00