Displaying 6 results from an estimated 6 matches for "have_nsleep".
2005 Feb 24
1
[PATCH] Drop SETGROUPS_NOOP
...st char *path, off_t len
}
#endif /* HAVE_TRUNCATE */
-#if !defined(HAVE_SETGROUPS) && defined(SETGROUPS_NOOP)
-/*
- * Cygwin setgroups should be a noop.
- */
-int
-setgroups(size_t size, const gid_t *list)
-{
- return (0);
-}
-#endif
-
#if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP)
int nanosleep(const struct timespec *req, struct timespec *rem)
{
Index: openbsd-compat/bsd-misc.h
===================================================================
RCS file: /cvs/openssh_cvs/openbsd-compat/bsd-misc.h,v
retrieving revision 1.17
diff -p -u -r1.17 bsd-misc.h
--- openbsd-compat/b...
2003 Mar 17
3
nanosleep() replacement
...f test "x$ac_cv_have_int64_t" = "xno" -a \
--- openssh/openbsd-compat/bsd-misc.c.old 2003-01-19 19:21:01.000000000 -0800
+++ openssh/openbsd-compat/bsd-misc.c 2003-03-16 14:49:58.740480006 -0800
@@ -135,3 +135,34 @@
}
#endif
+#if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP)
+int nanosleep(const struct timespec *req, struct timespec *rem)
+{
+ int rc;
+ extern int errno;
+ struct timeval tsave, ttmp, time2wait;
+
+ TIMESPEC_TO_TIMEVAL(&time2wait, req)
+
+ gettimeofday(&tsave, NULL);
+ rc = select(0, NULL, NULL, NULL, &time2wait);
+ if (rc) {
+ gettime...
2003 Feb 01
1
Build errors on AIX 4.2.1: nanosleep
...rt-aix.h
--- openbsd-compat/port-aix.h 7 Jul 2002 02:17:36 -0000 1.6
+++ openbsd-compat/port-aix.h 1 Feb 2003 01:49:56 -0000
@@ -25,5 +25,16 @@
*/
#ifdef _AIX
+
+/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */
+#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
+# define nanosleep nsleep
+#endif
+
+/* For struct timespec on AIX 4.2.x */
+#ifdef HAVE_SYS_TIMERS_H
+# include <sys/timers.h>
+#endif
+
void aix_usrinfo(struct passwd *pw);
#endif /* _AIX */
2003 Jan 25
1
Build failures: nanosleep on Solaris and AIX 4.2.x
...Jul 2002 02:17:36 -0000 1.6
+++ openbsd-compat/port-aix.h 25 Jan 2003 06:45:24 -0000
@@ -26,4 +26,12 @@
#ifdef _AIX
void aix_usrinfo(struct passwd *pw);
+
+/*
+ * AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent
+ */
+#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
+#define nanosleep nsleep
+#endif
+
#endif /* _AIX */
2003 Jul 03
0
AIX cleanups: includes and arguments
...CATE
+# include <login.h>
+# include <userpw.h>
+# include <usersec.h>
+# ifdef HAVE_SYS_AUDIT_H
+# include <sys/audit.h>
+# endif
+#endif
+
/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */
#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
# define nanosleep(a,b) nsleep(a,b)
2005 Sep 19
1
ssh hangs or gives Segmentation fault
.../* #undef HAVE_MAILLOCK_H */
/* #undef HAVE_MD5_CRYPT */
#define HAVE_MEMMOVE 1
#define HAVE_MEMORY_H 1
#define HAVE_MKDTEMP 1
#define HAVE_MMAP 1
/* #undef HAVE_NDIR_H */
#define HAVE_NETDB_H 1
/* #undef HAVE_NETGROUP_H */
#define HAVE_NETINET_IN_SYSTM_H 1
/* #undef HAVE_NGETADDRINFO */
/* #undef HAVE_NSLEEP */
/* #undef HAVE_OGETADDRINFO */
/* #undef HAVE_OPENLOG_R */
#define HAVE_OPENPTY 1
/* #undef HAVE_PAM_GETENVLIST */
/* #undef HAVE_PAM_PAM_APPL_H */
/* #undef HAVE_PAM_PUTENV */
#define HAVE_PATHS_H 1
#define HAVE_PRCTL 1
/* #undef HAVE_PSTAT */
#define HAVE_PTY_H 1
#define HAVE_PUTUTLINE 1
#defi...