1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

r23309: sync lib/replace with SAMBA_4_0

metze
This commit is contained in:
Stefan Metzmacher
2007-06-02 09:10:08 +00:00
committed by Gerald (Jerry) Carter
parent 5e9b84326b
commit 20965d800f
25 changed files with 347 additions and 223 deletions

View File

@ -11,9 +11,10 @@ srcdir = @srcdir@
builddir = @builddir@ builddir = @builddir@
INSTALL = @INSTALL@ INSTALL = @INSTALL@
.PHONY: test .PHONY: test all showflags install installcheck clean distclean realdistclean
CFLAGS=-I. -I@libreplacedir@ @CFLAGS@ CFLAGS=-I. @CFLAGS@
LDFLAGS=@LDFLAGS@
OBJS = @LIBREPLACEOBJ@ OBJS = @LIBREPLACEOBJ@
@ -23,7 +24,7 @@ showflags:
@echo 'libreplace will be compiled with flags:' @echo 'libreplace will be compiled with flags:'
@echo ' CC = $(CC)' @echo ' CC = $(CC)'
@echo ' CFLAGS = $(CFLAGS)' @echo ' CFLAGS = $(CFLAGS)'
@echo ' LIBS = $(LIBS)' @echo ' LDFLAGS= $(LDFLAGS)'
install: all install: all
mkdir -p $(libdir) mkdir -p $(libdir)
@ -40,7 +41,7 @@ installcheck: install test
TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o
testsuite: libreplace.a $(TEST_OBJS) testsuite: libreplace.a $(TEST_OBJS)
$(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS)
.c.o: .c.o:
@echo Compiling $*.c @echo Compiling $*.c

View File

@ -19,4 +19,6 @@ if test "$ac_cv_prog_gcc" = yes; then
CFLAGS="$CFLAGS -Wno-format-y2k" CFLAGS="$CFLAGS -Wno-format-y2k"
fi fi
AC_SUBST(LDFLAGS)
AC_OUTPUT(Makefile) AC_OUTPUT(Makefile)

View File

@ -26,7 +26,11 @@
#include "replace.h" #include "replace.h"
#ifndef HAVE_DLOPEN #ifndef HAVE_DLOPEN
#ifdef DLOPEN_TAKES_UNSIGNED_FLAGS
void *rep_dlopen(const char *name, unsigned int flags)
#else
void *rep_dlopen(const char *name, int flags) void *rep_dlopen(const char *name, int flags)
#endif
{ {
return NULL; return NULL;
} }

View File

@ -5,12 +5,17 @@ LIBS=""
libreplace_cv_dlfcn=no libreplace_cv_dlfcn=no
AC_SEARCH_LIBS(dlopen, dl) AC_SEARCH_LIBS(dlopen, dl)
if test x"${ac_cv_search_dlopen}" = x"no"; then AC_CHECK_HEADERS(dlfcn.h)
libreplace_cv_dlfcn=yes AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes])
else
AC_CHECK_HEADERS(dlfcn.h) AC_VERIFY_C_PROTOTYPE([void *dlopen(const char* filename, unsigned int flags)],
AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes]) [
fi return 0;
],[
AC_DEFINE(DLOPEN_TAKES_UNSIGNED_FLAGS, 1, [Whether dlopen takes unsinged int flags])
],[],[
#include <dlfcn.h>
])
if test x"${libreplace_cv_dlfcn}" = x"yes";then if test x"${libreplace_cv_dlfcn}" = x"yes";then
LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o" LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"

View File

@ -99,7 +99,7 @@ AC_CHECK_HEADERS(stdarg.h vararg.h)
AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h) AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h)
AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h) AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
AC_CHECK_HEADERS(sys/sockio.h sys/un.h) AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
AC_CHECK_HEADERS(sys/mount.h mntent.h)
dnl we need to check that net/if.h really can be used, to cope with hpux dnl we need to check that net/if.h really can be used, to cope with hpux
dnl where including it always fails dnl where including it always fails
@ -354,6 +354,7 @@ AC_LIBREPLACE_LOCATION_CHECKS
AC_LIBREPLACE_CC_CHECKS AC_LIBREPLACE_CC_CHECKS
AC_LIBREPLACE_BROKEN_CHECKS AC_LIBREPLACE_BROKEN_CHECKS
AC__LIBREPLACE_ALL_CHECKS_END AC__LIBREPLACE_ALL_CHECKS_END
CFLAGS="$CFLAGS -I$libreplacedir"
]) ])
m4_include(libreplace_cc.m4) m4_include(libreplace_cc.m4)

View File

@ -568,20 +568,24 @@ int rep_unsetenv(const char *name)
{ {
extern char **environ; extern char **environ;
size_t len = strlen(name); size_t len = strlen(name);
size_t i; size_t i, count;
int found = 0;
for (i=0; (environ && environ[i]); i++) { if (environ == NULL || getenv(name) == NULL) {
if (found) { return 0;
environ[i-1] = environ[i]; }
continue;
}
for (i=0;environ[i];i++) /* noop */ ;
count=i;
for (i=0;i<count;) {
if (strncmp(environ[i], name, len) == 0 && environ[i][len] == '=') { if (strncmp(environ[i], name, len) == 0 && environ[i][len] == '=') {
free(environ[i]); /* note: we do _not_ free the old variable here. It is unsafe to
environ[i] = NULL; do so, as the pointer may not have come from malloc */
found = 1; memmove(&environ[i], &environ[i+1], (count-i)*sizeof(char *));
continue; count--;
} else {
i++;
} }
} }

View File

@ -228,8 +228,12 @@ char *rep_dlerror(void);
#ifndef HAVE_DLOPEN #ifndef HAVE_DLOPEN
#define dlopen rep_dlopen #define dlopen rep_dlopen
#ifdef DLOPEN_TAKES_UNSIGNED_FLAGS
void *rep_dlopen(const char *name, unsigned int flags);
#else
void *rep_dlopen(const char *name, int flags); void *rep_dlopen(const char *name, int flags);
#endif #endif
#endif
#ifndef HAVE_DLSYM #ifndef HAVE_DLSYM
#define dlsym rep_dlsym #define dlsym rep_dlsym
@ -258,6 +262,14 @@ int rep_socketpair(int d, int type, int protocol, int sv[2]);
#endif #endif
#endif #endif
#ifndef _DEPRECATED_
#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
#define _DEPRECATED_ __attribute__ ((deprecated))
#else
#define _DEPRECATED_
#endif
#endif
#ifndef HAVE_VASPRINTF #ifndef HAVE_VASPRINTF
#define vasprintf rep_vasprintf #define vasprintf rep_vasprintf
int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0); int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);

View File

@ -7,19 +7,23 @@
Copyright (C) Andrew Tridgell 2006 Copyright (C) Andrew Tridgell 2006
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_LIBAIO_H #ifdef HAVE_LIBAIO_H

View File

@ -7,19 +7,23 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_SYS_CAPABILITY_H #ifdef HAVE_SYS_CAPABILITY_H

View File

@ -7,19 +7,23 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#if HAVE_DIRENT_H #if HAVE_DIRENT_H

View File

@ -7,19 +7,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <unistd.h> #include <unistd.h>
@ -33,6 +38,10 @@
#include <sys/mount.h> #include <sys/mount.h>
#endif #endif
#ifdef HAVE_MNTENT_H
#include <mntent.h>
#endif
#ifdef HAVE_SYS_VFS_H #ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h> #include <sys/vfs.h>
#endif #endif

View File

@ -7,19 +7,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_GLOB_H #ifdef HAVE_GLOB_H

View File

@ -7,19 +7,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#if !defined(HAVE_ICONV) && defined(HAVE_ICONV_H) #if !defined(HAVE_ICONV) && defined(HAVE_ICONV_H)

View File

@ -8,19 +8,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_KRB5 #ifdef HAVE_KRB5

View File

@ -8,19 +8,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_CTYPE_H #ifdef HAVE_CTYPE_H

View File

@ -7,19 +7,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H

View File

@ -8,19 +8,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H

View File

@ -8,19 +8,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef AIX #ifdef AIX

View File

@ -3,21 +3,26 @@
/* /*
Unix SMB/CIFS implementation. Unix SMB/CIFS implementation.
readline wrappers Readline wrappers
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_LIBREADLINE #ifdef HAVE_LIBREADLINE

View File

@ -7,25 +7,34 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_SYS_SELECT_H #ifdef HAVE_SYS_SELECT_H
#include <sys/select.h> #include <sys/select.h>
#endif #endif
#ifdef HAVE_SYS_EPOLL_H
#include <sys/epoll.h>
#endif
#ifndef SELECT_CAST #ifndef SELECT_CAST
#define SELECT_CAST #define SELECT_CAST
#endif #endif

View File

@ -7,19 +7,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#if defined(HAVE_SYS_IPC_H) #if defined(HAVE_SYS_IPC_H)

View File

@ -7,19 +7,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_SYSLOG_H #ifdef HAVE_SYSLOG_H

View File

@ -7,19 +7,24 @@
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify ** NOTE! The following LGPL license applies to the replace
it under the terms of the GNU General Public License as published by ** library. This does NOT imply that all of Samba is released
the Free Software Foundation; either version 2 of the License, or ** under the LGPL
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef SUNOS4 #ifdef SUNOS4

View File

@ -6,20 +6,25 @@
time system include wrappers time system include wrappers
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
** NOTE! The following LGPL license applies to the replace
** library. This does NOT imply that all of Samba is released
** under the LGPL
This program is free software; you can redistribute it and/or modify This library is free software; you can redistribute it and/or
it under the terms of the GNU General Public License as published by modify it under the terms of the GNU Lesser General Public
the Free Software Foundation; either version 2 of the License, or License as published by the Free Software Foundation; either
(at your option) any later version. version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef TIME_WITH_SYS_TIME #ifdef TIME_WITH_SYS_TIME

View File

@ -6,20 +6,25 @@
waitpid system include wrappers waitpid system include wrappers
Copyright (C) Andrew Tridgell 2004 Copyright (C) Andrew Tridgell 2004
** NOTE! The following LGPL license applies to the replace
** library. This does NOT imply that all of Samba is released
** under the LGPL
This program is free software; you can redistribute it and/or modify This library is free software; you can redistribute it and/or
it under the terms of the GNU General Public License as published by modify it under the terms of the GNU Lesser General Public
the Free Software Foundation; either version 2 of the License, or License as published by the Free Software Foundation; either
(at your option) any later version. version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
GNU General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Lesser General Public
along with this program; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H