1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-23 11:17:06 +03:00

42 Commits

Author SHA1 Message Date
Jeremy Allison
acb829ecc3 Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.
(This used to be commit a1725f4ff7ed375808c78ac661b539557748d0a5)
2007-11-15 18:27:26 -08:00
Jeremy Allison
2b3c44e4fb Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.
(This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
2007-11-10 22:31:34 -08:00
Jeremy Allison
d40e47db4b Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
(This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
2007-11-08 17:25:45 -08:00
Jeremy Allison
d8f3c9d078 Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead
to runaway smbd processes.
Thanks to Dave Daugherty @ Centrify for pointing
this out to us.
Jeremy.
(This used to be commit ef8da1698371c95495add53df81a978df709c88d)
2007-11-06 21:47:57 -08:00
Stefan Metzmacher
2ecbed36b2 missing stuff from samba4's libreplace
metze
(This used to be commit 0177158d85797e0d22c81d88175a77d4ad5ed711)
2007-10-15 13:19:28 +02:00
metze
804396dce9 don't imply "system/network.h" within replace.h,
as this brings in the socket_wrapper.h in unexpected
code and we endup with a missing 'swrap_close' while linking

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25602 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit ec8e3f7f92522c65ec472058321db8a7ac30ec4c)
2007-10-15 13:19:28 +02:00
Jeremy Allison
81a70d4ac5 Merge from metze of libreplace header changes
(This used to be commit d39ce8e37ed81f4a34a148f975874989d8d187a1)
2007-10-10 17:56:19 -07:00
Jelmer Vernooij
d154a0d74b r25557: merge libreplace fixes from samba4
(This used to be commit 8c1669997c53f0f7bfb9a794083afd01b131f676)
2007-10-10 12:31:13 -05:00
Jeremy Allison
941544a951 r25505: Add a replacement (IPv4 only) implementation of getaddrinfo/freeaddrinfo
under the 2 clause *BSD license for future use in IPv6 code. Original
code was from PostgreSQL and I've maintained their license even though
I've rewritten large parts of it (I probably should donate this back
to them).
Jeremy.
(This used to be commit 760d993340a966269d71acfb7a6b5e4d3776ac5d)
2007-10-10 12:31:10 -05:00
Jeremy Allison
3fbd1ae54c r25472: Fix the interfaces code to detect IPv6 interfaces, using the
new standard getifaddrs() and freeifaddrs() interfaces. Currently
we only return IPv4 af_families. Needs fixing for binds to IPv6
but this has to be careful work.
Jeremy.
(This used to be commit 327875182c9219aeba687e10aaea93546d9a70ea)
2007-10-10 12:31:06 -05:00
Jeremy Allison
a2bbf608d2 r25455: Ensure we have inet_ntop and inet_pton available in lib/replace.
Jeremy.
(This used to be commit 1f719905440d4c87c526c56532f47d894cfec5f0)
2007-10-10 12:31:06 -05:00
Stefan Metzmacher
cdf9068269 r25252: move macro defines to the end of replace.h
and move the include location sys/param.h
before we redefine missing macros

metze
(This used to be commit 862046028c3c61adf6da2effac91abf3c763635d)
2007-10-10 12:30:55 -05:00
Stefan Metzmacher
68edc3a5c5 r25232: sync lib/replace with SAMBA_4_0
metze
(This used to be commit 828d2ca0610ab5ee3b96d187b3432b9b4fea72f8)
2007-10-10 12:30:52 -05:00
Volker Lendecke
b01978f2a9 r24354: Remove offsetof macro
Samba4 seems not to suffer from it
(This used to be commit d93b5d50a00286586c931a5876f5933a520b6ce7)
2007-10-10 12:29:35 -05:00
Jelmer Vernooij
db2666759d r24341: Make libreplace provide offsetof.
(This used to be commit 4a5fa715a6af281282092644817599f79806981d)
2007-10-10 12:29:31 -05:00
Andrew Tridgell
9fa1c63578 r23798: updated old Temple Place FSF addresses to new URL
(This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
2c09988e46 r23790: LGPLv3+ conversion for our LGPLv2+ library code
(This used to be commit 1b78cace504f60c0f525765fbf59d9cc6506cd4d)
2007-10-10 12:28:25 -05:00
Michael Adam
c9e21d8770 r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
This fixes the build on a SuSE 6.1. :-)
I guess this had been merely forgotten.

But beware: The implementations of rep_pread and rep_pwrite are
not thread safe.

Michael
(This used to be commit 5f5b93149216eb57872e4291336685b96948681e)
2007-10-10 12:23:10 -05:00
Stefan Metzmacher
e893d7f021 r23309: sync lib/replace with SAMBA_4_0
metze
(This used to be commit 20965d800fcac0c55853fb12cdd36b5836fc7e56)
2007-10-10 12:23:05 -05:00
Stefan Metzmacher
b25bebb960 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)
2007-10-10 12:23:05 -05:00
Michael Adam
c3c7e1b423 r23109: Redo the change from r22772 I accidentially undid in r23108.
Michael
(This used to be commit 18a7e739ea5d19b2e220641e19662e2c263d281a)
2007-10-10 12:22:47 -05:00
Michael Adam
5aec9e21bd r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.
(This used to be commit 5a06726e6873accd255d584e2c18e62dfcac108d)
2007-10-10 12:22:46 -05:00
Derrell Lipman
1b55cf4384 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)
2007-10-10 12:21:56 -05:00
Stefan Metzmacher
a8c6250274 r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
metze
(This used to be commit 8a7d2e633b98aa9c73cf1f7d1369015b294cf2e1)
2007-10-10 12:19:24 -05:00
Stefan Metzmacher
004860e1cc 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)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
48e29ff642 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)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
4341be4593 r22264: merge from samba4:
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.

metze
(This used to be commit 66b0a6cc51a3987c489cc71a17c0da632bf6a6bc)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
cd8f2e5c57 r22252: merge from samba4:
add prototype of setenv

metze
(This used to be commit 42ccfaf5e58d92e04ba490f726e5d6972039bdc4)
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
f5b7197625 r22227: merge from samba4:
move discard_const macros to librelace

metze
(This used to be commit 8f4a39127f7b560a7a609e74423ccb88f53e545e)
2007-10-10 12:19:21 -05:00
Stefan Metzmacher
2f1aafa2a7 r22221: merge from samba4:
- libreplace unsetenv() and strptime() replacements

metze
(This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)
2007-10-10 12:19:21 -05:00
Stefan Metzmacher
2f66beb8ad r20817: sync lib/replace with samba4
metze
(This used to be commit 352ee730308bbc151a742938818c9b8b3a6e8014)
2007-10-10 12:17:09 -05:00
Stefan Metzmacher
9830fc431b r19240: move the NO_CONFIG_H check to libreplace
this fixes the quota detection configure and maybe more
configure tests

metze
(This used to be commit a3a082c42ccb21cb16d2e53991808ef3224efc6c)
2007-10-10 12:15:24 -05:00
Stefan Metzmacher
a831353be4 r19030: merge missing stuff from samba4:
- strnlen() and strndup() are broken on AIX
- we need some extra CFLAGS on HPUX 11.11

metze
(This used to be commit 61aa60c60ffddcbad433b26d7f3a836e4fcd8732)
2007-10-10 12:15:03 -05:00
Stefan Metzmacher
ce11194ce0 r18998: - make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
(This used to be commit 8899bc45f908a15fb496f5c0a29692e7494a56cc)
2007-10-10 12:14:55 -05:00
Volker Lendecke
f9d077cfb3 r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
(This used to be commit 00f09d851c734cb6450feac2d6efc71a540be11f)
2007-10-10 12:14:54 -05:00
Andrew Tridgell
64d4ff5dcc r18864: merge lib/replace changes from samba4
(This used to be commit 6d5f507136be327558e98214b64eca225ca23d66)
2007-10-10 12:01:06 -05:00
Stefan Metzmacher
beecb90440 r18784: hopefully fix the BOOL bug on AIX
metze
(This used to be commit 454d9590de6ff94a1edd7321e26af0f0978a356a)
2007-10-10 12:00:57 -05:00
Stefan Metzmacher
bc6295c3ec r18673: define the macros even if we don't define bool ourself
metze
(This used to be commit 65013a8d9e678c44cecae07967b7a001b796faf1)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
7040796108 r18672: fix the build on Tru64
metze
(This used to be commit 6c101d206812fe24233409e0757cad52638e685a)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
8383eb53f4 r18671: try to fix the build on solaris 10 and maybe some other hosts
we need to define 'BOOL_DEFINED' to make sure it didn't get redefined
by <rpcsvc/yp_prot.h>

metze
(This used to be commit 5a589bb16c2bb3da75874bd190384eabd39eb972)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
19cee7d056 r18649: the PRINTF_ATTRIUTE() macro is provided by libreplace
metze
(This used to be commit dd76f4f5f374ec4822abbf1a09d26287926b92ce)
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
8f153c6128 r18644: bring in libreplace in lib/replace
metze
(This used to be commit 596cbe73dd268742acf456fccd8a234376fb0c97)
2007-10-10 11:52:03 -05:00