daemon/Win32: Use gnulib modules for first porting to Win32.
authorRichard Jones <rjones@redhat.com>
Fri, 20 Nov 2009 11:48:51 +0000 (11:48 +0000)
committerRichard Jones <rjones@redhat.com>
Fri, 20 Nov 2009 18:01:51 +0000 (18:01 +0000)
daemon/.gitignore
daemon/configure.ac
daemon/daemon.h
daemon/guestfsd.c
daemon/m4/gnulib-cache.m4
daemon/proto.c

index d5dc335..a55d996 100644 (file)
@@ -3,6 +3,7 @@ lib
 link-warning.h
 m4/00gnulib.m4
 m4/alloca.m4
 link-warning.h
 m4/00gnulib.m4
 m4/alloca.m4
+m4/arpa_inet_h.m4
 m4/canonicalize-lgpl.m4
 m4/chdir-long.m4
 m4/chown.m4
 m4/canonicalize-lgpl.m4
 m4/chdir-long.m4
 m4/chown.m4
@@ -26,12 +27,16 @@ m4/fclose.m4
 m4/fcntl-safer.m4
 m4/fcntl_h.m4
 m4/fdopendir.m4
 m4/fcntl-safer.m4
 m4/fcntl_h.m4
 m4/fdopendir.m4
+m4/float_h.m4
 m4/fnmatch.m4
 m4/getcwd-abort-bug.m4
 m4/getcwd-path-max.m4
 m4/getcwd.m4
 m4/fnmatch.m4
 m4/getcwd-abort-bug.m4
 m4/getcwd-path-max.m4
 m4/getcwd.m4
+m4/getdelim.m4
 m4/getgroups.m4
 m4/getgroups.m4
+m4/getline.m4
 m4/getlogin_r.m4
 m4/getlogin_r.m4
+m4/gettimeofday.m4
 m4/getpagesize.m4
 m4/getugroups.m4
 m4/glibc21.m4
 m4/getpagesize.m4
 m4/getugroups.m4
 m4/glibc21.m4
@@ -41,8 +46,11 @@ m4/gnulib-comp.m4
 m4/gnulib-tool.m4
 m4/hash.m4
 m4/include_next.m4
 m4/gnulib-tool.m4
 m4/hash.m4
 m4/include_next.m4
+m4/inet_pton.m4
 m4/inline.m4
 m4/inline.m4
+m4/intmax_t.m4
 m4/inttostr.m4
 m4/inttostr.m4
+m4/inttypes_h.m4
 m4/lchown.m4
 m4/localcharset.m4
 m4/locale-fr.m4
 m4/lchown.m4
 m4/localcharset.m4
 m4/locale-fr.m4
@@ -57,44 +65,64 @@ m4/mbrtowc.m4
 m4/mbsinit.m4
 m4/mbsrtowcs.m4
 m4/mbstate_t.m4
 m4/mbsinit.m4
 m4/mbsrtowcs.m4
 m4/mbstate_t.m4
-m4/mgetgroups.m4
 m4/memchr.m4
 m4/mempcpy.m4
 m4/memrchr.m4
 m4/memchr.m4
 m4/mempcpy.m4
 m4/memrchr.m4
+m4/mgetgroups.m4
 m4/mkdir.m4
 m4/mkdir.m4
+m4/mkdtemp.m4
 m4/mmap-anon.m4
 m4/mode_t.m4
 m4/multiarch.m4
 m4/mmap-anon.m4
 m4/mode_t.m4
 m4/multiarch.m4
+m4/netdb_h.m4
+m4/netinet_in_h.m4
 m4/onceonly.m4
 m4/open.m4
 m4/openat.m4
 m4/pathmax.m4
 m4/onceonly.m4
 m4/open.m4
 m4/openat.m4
 m4/pathmax.m4
+m4/perror.m4
 m4/priv-set.m4
 m4/priv-set.m4
+m4/rawmemchr.m4
 m4/readlink.m4
 m4/realloc.m4
 m4/rmdir.m4
 m4/save-cwd.m4
 m4/readlink.m4
 m4/realloc.m4
 m4/rmdir.m4
 m4/save-cwd.m4
+m4/select.m4
+m4/size_max.m4
 m4/sleep.m4
 m4/sleep.m4
+m4/sockets.m4
+m4/socklen.m4
+m4/sockpfaf.m4
 m4/stat-time.m4
 m4/stat.m4
 m4/stdbool.m4
 m4/stddef_h.m4
 m4/stat-time.m4
 m4/stat.m4
 m4/stdbool.m4
 m4/stddef_h.m4
+m4/stdint_h.m4
 m4/stdint.m4
 m4/stdio_h.m4
 m4/stdlib_h.m4
 m4/stdint.m4
 m4/stdio_h.m4
 m4/stdlib_h.m4
+m4/strchrnul.m4
 m4/strdup.m4
 m4/strerror.m4
 m4/string_h.m4
 m4/strndup.m4
 m4/strnlen.m4
 m4/symlink.m4
 m4/strdup.m4
 m4/strerror.m4
 m4/string_h.m4
 m4/strndup.m4
 m4/strnlen.m4
 m4/symlink.m4
+m4/sys_ioctl_h.m4
+m4/sys_select_h.m4
+m4/sys_socket_h.m4
 m4/sys_stat_h.m4
 m4/sys_stat_h.m4
+m4/sys_time_h.m4
+m4/sys_wait_h.m4
+m4/tempname.m4
 m4/time_h.m4
 m4/unistd-safer.m4
 m4/unistd_h.m4
 m4/unlink.m4
 m4/unlinkdir.m4
 m4/usleep.m4
 m4/time_h.m4
 m4/unistd-safer.m4
 m4/unistd_h.m4
 m4/unlink.m4
 m4/unlinkdir.m4
 m4/usleep.m4
+m4/vasnprintf.m4
+m4/vasprintf.m4
 m4/warnings.m4
 m4/wchar.m4
 m4/wchar_t.m4
 m4/warnings.m4
 m4/wchar.m4
 m4/wchar_t.m4
@@ -103,6 +131,7 @@ m4/wctype.m4
 m4/wint_t.m4
 m4/xalloc.m4
 m4/xgetcwd.m4
 m4/wint_t.m4
 m4/xalloc.m4
 m4/xgetcwd.m4
+m4/xsize.m4
 m4/xstrndup.m4
 mingw32-config.cache
 tests
 m4/xstrndup.m4
 mingw32-config.cache
 tests
index 92776c2..a1f54a3 100644 (file)
@@ -179,11 +179,8 @@ AC_CHECK_FUNCS([\
 dnl Headers.
 AC_CHECK_HEADERS([\
        attr/xattr.h \
 dnl Headers.
 AC_CHECK_HEADERS([\
        attr/xattr.h \
-       netdb.h \
        printf.h \
        sys/inotify.h \
        printf.h \
        sys/inotify.h \
-       sys/select.h \
-       sys/wait.h \
        sys/xattr.h])
 
 dnl For modified printf, we need glibc either (old-style)
        sys/xattr.h])
 
 dnl For modified printf, we need glibc either (old-style)
index ac68479..120c86c 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef GUESTFSD_DAEMON_H
 #define GUESTFSD_DAEMON_H
 
 #ifndef GUESTFSD_DAEMON_H
 #define GUESTFSD_DAEMON_H
 
+#include <stdio.h>
 #include <stdarg.h>
 #include <errno.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <errno.h>
 #include <unistd.h>
index 067c916..eab8529 100644 (file)
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <signal.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <signal.h>
-
-#ifdef HAVE_NETDB_H
 #include <netdb.h>
 #include <netdb.h>
-#endif
-
-#ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #include <sys/select.h>
-#endif
-
-#ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #include <sys/wait.h>
-#endif
 
 #ifdef HAVE_PRINTF_H
 #include <printf.h>
 
 #ifdef HAVE_PRINTF_H
 #include <printf.h>
index 3c5b85d..619b89b 100644 (file)
 
 
 # Specification in the form of a command-line invocation:
 
 
 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --no-libtool --macro-prefix=gl c-ctype glob hash ignore-value manywarnings openat warnings
+#   gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --no-libtool --macro-prefix=gl c-ctype getline glob hash ignore-value manywarnings mkdtemp netdb openat readlink select sleep strchrnul strndup sys_select sys_wait vasprintf warnings
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([])
 gl_MODULES([
   c-ctype
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([])
 gl_MODULES([
   c-ctype
+  getline
   glob
   hash
   ignore-value
   manywarnings
   glob
   hash
   ignore-value
   manywarnings
+  mkdtemp
+  netdb
   openat
   openat
+  readlink
+  select
+  sleep
+  strchrnul
+  strndup
+  sys_select
+  sys_wait
+  vasprintf
   warnings
 ])
 gl_AVOID([])
   warnings
 ])
 gl_AVOID([])
index 284037d..4106d92 100644 (file)
@@ -25,6 +25,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <sys/param.h>         /* defines MIN */
 #include <unistd.h>
 #include <errno.h>
 #include <sys/param.h>         /* defines MIN */
+#include <sys/select.h>
 #include <rpc/types.h>
 #include <rpc/xdr.h>
 
 #include <rpc/types.h>
 #include <rpc/xdr.h>