search for: have_sys_time_h

Displaying 20 results from an estimated 55 matches for "have_sys_time_h".

2012 May 03
2
Portablility patch for openssh 6.0p1 configure.ac
...cture or union The patch is: --- configure.ac.orig 2012-04-19 05:46:38.000000000 -0600 +++ configure.ac 2012-05-03 08:25:49.429260884 -0600 @@ -3236,6 +3236,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> #include <sys/stat.h> +#include <sys/param.h> #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif Thanks, Pieter
2006 Mar 17
1
[PATCH] OpenSSL RNG initialization
...====== RCS file: /home/cvs/dovecot/src/lib/lib.h,v retrieving revision 1.20 diff -u -r1.20 lib.h --- src/lib/lib.h 25 Sep 2005 10:44:04 -0000 1.20 +++ src/lib/lib.h 10 Mar 2006 17:15:02 -0000 @@ -20,6 +20,13 @@ # include <stdint.h> /* C99 int types, we mostly need uintmax_t */ #endif +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#endif +#ifdef HAVE_SYS_TIME_H +# include <sys/resource.h> +#endif + #include "compat.h" #include "macros.h" #include "failures.h" Index: src/lib/randgen.c =================================================================== RCS fi...
2005 Apr 19
0
R 2.0.1 install problem on Solaris 9
...HAVE_IEEEFP_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LOCALE_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_PWD_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_TIMES_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STRING_H 1 | #define HAVE_POSIX_SETJMP 1 | #define RETSIGTYPE void | #define HAVE_DECL_SIZE_MAX 1 | #define SOCKLEN_T so...
2015 May 26
0
[PATCH] lib: Limit space and time used by 'qemu-img info' subprocess.
...removexattr \ setitimer \ + setrlimit \ setxattr \ sigaction \ statvfs \ diff --git a/src/command.c b/src/command.c index 45ae5d6..993198a 100644 --- a/src/command.c +++ b/src/command.c @@ -77,6 +77,13 @@ #include <sys/wait.h> #include <sys/select.h> +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#endif +#ifdef HAVE_SYS_RESOURCE_H +#include <sys/resource.h> +#endif + #include "guestfs.h" #include "guestfs-internal.h" @@ -101,6 +108,12 @@ struct buffering { void (*close_data) (struct command *cmd); }; +struct child_rlimits { +...
2020 Feb 26
2
[PATCH] lib: command: switch from select() to poll()
....c index f2161de9a..13b084934 100644 --- a/lib/command.c +++ b/lib/command.c @@ -89,9 +89,8 @@ #include <signal.h> #include <errno.h> #include <assert.h> -#include <sys/types.h> #include <sys/stat.h> -#include <sys/select.h> +#include <poll.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> @@ -650,37 +649,41 @@ run_child (struct command *cmd) static int loop (struct command *cmd) { - fd_set rset, rset2; - int maxfd = -1, r; + struct pollfd fds[2]; + int r; size_t nr_fds = 0; CLEANUP_FREE char *buf = safe_malloc (cmd->g, BUFSIZ); ssize_t...
2008 Jul 18
1
system time - windows specific problem
...for help on R mailing list because what solve on R for the runif function. You could answer me to go to the R source. Of course, I look there my code is based on this code. But in the RNG.c file which implements random number generation. they use line 271-289 #include <time.h> #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif static void Randomize(RNGtype kind) { /* Only called by GetRNGstate() when there is no .Random.seed */ Int32 seed; #if HAVE_GETTIMEOFDAY { struct timeval tv; gettimeofday (&tv, NULL); seed = ((uint64_t) tv.tv_usec << 16) ^ tv.tv...
1999 Dec 21
0
Problem with UTMP recording
...ile. */ #define HAVE_SYS_POLL_H 1 /* Define if you have the <sys/select.h> header file. */ /* #undef HAVE_SYS_SELECT_H */ /* Define if you have the <sys/stropts.h> header file. */ /* #undef HAVE_SYS_STROPTS_H */ /* Define if you have the <sys/time.h> header file. */ #define HAVE_SYS_TIME_H 1 /* Define if you have the <util.h> header file. */ /* #undef HAVE_UTIL_H */ /* Define if you have the <utmp.h> header file. */ #define HAVE_UTMP_H 1 /* Define if you have the <utmpx.h> header file. */ /* #undef HAVE_UTMPX_H */ /* Define if you have the crypto library (-lc...
2003 Mar 29
1
compling errors for sun unix (PR#2702)
...fine HAVE_NETDB_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_PWD_H 1 | #define HAVE_READLINE_HISTORY_H 1 | #define HAVE_READLINE_READLINE_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_TIMES_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STRING_H 1 | #define HAVE_POSIX_SETJMP 1 | #define RETSIGTYPE void | #define SOCKLEN_T socklen_t | /* end confdefs.h. */ | #include <sys/type...
2020 Feb 26
1
Re: [PATCH] lib: command: switch from select() to poll()
...8 @@ > > #include <signal.h> > > #include <errno.h> > > #include <assert.h> > > -#include <sys/types.h> > > #include <sys/stat.h> > > -#include <sys/select.h> > > +#include <poll.h> > > > > #ifdef HAVE_SYS_TIME_H > > #include <sys/time.h> > > @@ -650,37 +649,41 @@ run_child (struct command *cmd) > > static int > > loop (struct command *cmd) > > { > > - fd_set rset, rset2; > > - int maxfd = -1, r; > > + struct pollfd fds[2]; > > + int r; &gt...
2014 Sep 26
1
configure: error: linking to Fortran libraries from C fails
...NGINFO_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SCHED_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_RESOURCE_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_TIMES_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LOCALE_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDBOOL_H 1 | #define HAVE_STDINT_H 1 |...
2008 Jul 29
1
xapian-omega runfilter.cc patch
...reeBSD: --- runfilter.cc.orig 2008-07-03 21:16:54.000000000 +0200 +++ runfilter.cc 2008-07-03 21:18:48.000000000 +0200 @@ -25,6 +25,7 @@ #include "safeerrno.h" #include <sys/types.h> #include <stdio.h> +#include <signal.h> #include "safefcntl.h" #ifdef HAVE_SYS_TIME_H Attempting to build xapian-omega 1.0.7 (and 1.0.6 for that matter) without the above patch results in the following compile error: c++ -DHAVE_CONFIG_H -I. -I./common -DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.conf\" -I/usr/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcas...
2020 Feb 26
0
Re: [PATCH] lib: command: switch from select() to poll()
...c > +++ b/lib/command.c > @@ -89,9 +89,8 @@ > #include <signal.h> > #include <errno.h> > #include <assert.h> > -#include <sys/types.h> > #include <sys/stat.h> > -#include <sys/select.h> > +#include <poll.h> > > #ifdef HAVE_SYS_TIME_H > #include <sys/time.h> > @@ -650,37 +649,41 @@ run_child (struct command *cmd) > static int > loop (struct command *cmd) > { > - fd_set rset, rset2; > - int maxfd = -1, r; > + struct pollfd fds[2]; > + int r; > size_t nr_fds = 0; > CLEANUP_FREE...
2003 Apr 08
2
OpenSSH 3.6.1p1 on NCR MP-RAS v4.3, several weird terminal problems
...ing the includes.h file as follows: diff -cr openssh-3.6.1p1/includes.h openssh-3.6.1p1-customized/includes.h *** openssh-3.6.1p1/includes.h Sun Oct 20 20:50:26 2002 --- openssh-3.6.1p1-customized/includes.h Mon Apr 7 17:32:04 2003 *************** *** 104,110 **** --- 104,114 ---- #ifdef HAVE_SYS_TIME_H # include <sys/time.h> /* For timersub */ #endif + #define _XOPEN_SOURCE + #define _XOPEN_SOURCE_EXTENDED 1 #include <sys/resource.h> + #undef _XOPEN_SOURCE_EXTENDED + #undef _XOPEN_SOURCE #ifdef HAVE_SYS_SELECT_H # include <sys/select.h> #endif Other than that, thing...
2012 May 09
1
warning from configuring openssh-6.0p1
...efine HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_DIR_H 1 | #define HAVE_SYS_MMAN_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_PRCTL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_STROPTS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_SYSMACROS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UN_H 1 | #define HAVE_TIME_H 1 | #define HAVE_TTYENT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_UTMP_H 1 | #define HAVE_UTMPX_H 1 | #define HAVE_LASTLOG_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define PAM_TTY_KLUDGE 1 | #define LOCKED_PASSWD_PREFIX "!...
2003 Jan 25
1
Build failures: nanosleep on Solaris and AIX 4.2.x
...============================================================ RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/includes.h,v retrieving revision 1.61 diff -u -r1.61 includes.h --- includes.h 21 Oct 2002 00:50:26 -0000 1.61 +++ includes.h 25 Jan 2003 07:18:36 -0000 @@ -104,6 +104,9 @@ #ifdef HAVE_SYS_TIME_H # include <sys/time.h> /* For timersub */ #endif +#ifdef HAVE_SYS_TIMERS_H +# include <sys/timers.h> /* For struct timespec on AIX 4.2.x */ +#endif #include <sys/resource.h> #ifdef HAVE_SYS_SELECT_H # include <sys/select.h> Index: openbsd-compat/port-aix.h =============...
2003 Dec 25
1
How to tell if option "with-acl-support" is compiledin Solaris smbd?
..._MMAN_H HAVE_SYS_MODE_H HAVE_SYS_MOUNT_H HAVE_SYS_PARAM_H HAVE_SYS_RESOURCE_H HAVE_SYS_SELECT_H HAVE_SYS_SHM_H HAVE_SYS_SOCKET_H HAVE_SYS_SOCKIO_H HAVE_SYS_STATFS_H HAVE_SYS_STATVFS_H HAVE_SYS_STAT_H HAVE_SYS_SYSCALL_H HAVE_SYS_SYSLOG_H HAVE_SYS_TERMIO_H HAVE_SYS_TIME_H HAVE_STROPTS_H HAVE_SYSLOG_H HAVE_TERMIOS_H HAVE_TERMIO_H HAVE_UNISTD_H HAVE_UTIME_H UTMP Options: HAVE_GETUTMPX HAVE_UTMPX_H HAVE_UTMP_H HAVE_UT_UT_EXIT HAVE_UT_UT_ID HAVE_UT_UT_NAME HAVE_UT_UT_PID HAVE_UT_UT_TIME HAVE_UT_UT_TYPE HAVE_UT_UT_USER...
2005 Feb 08
0
Compiling R as a shared library
...AVE_IEEE754_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LOCALE_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_PWD_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_TIMES_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STRING_H 1 | #define HAVE_POSIX_SETJMP 1 | #define HAVE_GLIBC2 1 | #define RETSIGTYPE void | #define HAVE_DECL_SIZE_MAX...
2005 Nov 09
0
Samba 3.0.20b / AIX 5.3 / VFS Modules
...YS_IPC_H HAVE_SYS_MMAN_H HAVE_SYS_MODE_H HAVE_SYS_PARAM_H HAVE_SYS_PRIV_H HAVE_SYS_RESOURCE_H HAVE_SYS_SELECT_H HAVE_SYS_SHM_H HAVE_SYS_SOCKET_H HAVE_SYS_STATFS_H HAVE_SYS_STATVFS_H HAVE_SYS_STAT_H HAVE_SYS_SYSLOG_H HAVE_SYS_SYSMACROS_H HAVE_SYS_TERMIO_H HAVE_SYS_TIME_H HAVE_SYS_TYPES_H HAVE_SYS_UIO_H HAVE_SYS_UN_H HAVE_SYS_VFS_H HAVE_SYS_WAIT_H Headers: HAVE_AIO_H HAVE_ALLOCA_H HAVE_ARPA_INET_H HAVE_CTYPE_H HAVE_DIRENT_H HAVE_DLFCN_H HAVE_FCNTL_H HAVE_GLOB_H HAVE_GRP_H HAVE_INT16_FROM_RPC_RPC_H HAVE_INT32_FROM_RPC_RPC_H HAVE_IN...
2007 Sep 24
2
Where is the tdbsam password database file?
...AN_H HAVE_SYS_MOUNT_H HAVE_SYS_PARAM_H HAVE_SYS_PRCTL_H HAVE_SYS_QUOTA_H HAVE_SYS_RESOURCE_H HAVE_SYS_SELECT_H HAVE_SYS_SHM_H HAVE_SYS_SOCKET_H HAVE_SYS_STATFS_H HAVE_SYS_STATVFS_H HAVE_SYS_STAT_H HAVE_SYS_SYSCALL_H HAVE_SYS_SYSLOG_H HAVE_SYS_SYSMACROS_H HAVE_SYS_TIME_H HAVE_SYS_TYPES_H HAVE_SYS_UIO_H HAVE_SYS_UNISTD_H HAVE_SYS_UN_H HAVE_SYS_VFS_H HAVE_SYS_WAIT_H HAVE_SYS_XATTR_H Headers: HAVE_ACL_LIBACL_H HAVE_AIO_H HAVE_ALLOCA_H HAVE_ARPA_INET_H HAVE_ASM_TYPES_H HAVE_ASM_UNISTD_H HAVE_ATTR_XATTR_H HAVE_CTYPE_H HA...
2005 Oct 19
1
samba with ADS. winbindd ignore for user authentication
...HAVE_SYS_FILIO_H HAVE_SYS_IOCTL_H HAVE_SYS_IPC_H HAVE_SYS_MMAN_H HAVE_SYS_MOUNT_H HAVE_SYS_PARAM_H HAVE_SYS_RESOURCE_H HAVE_SYS_SELECT_H HAVE_SYS_SHM_H HAVE_SYS_SOCKET_H HAVE_SYS_SOCKIO_H HAVE_SYS_STAT_H HAVE_SYS_SYSCALL_H HAVE_SYS_SYSLOG_H HAVE_SYS_TIME_H HAVE_SYS_TYPES_H HAVE_SYS_UIO_H HAVE_SYS_UNISTD_H HAVE_SYS_UN_H HAVE_SYS_WAIT_H Headers: HAVE_AIO_H HAVE_ARPA_INET_H HAVE_COM_ERR_H HAVE_CTYPE_H HAVE_DIRENT_H HAVE_DLFCN_H HAVE_FCNTL_H HAVE_GLOB_H HAVE_GRP_H HAVE_GSSAPI_H HAVE_INTTY...