summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bsd-misc.c13
-rw-r--r--openbsd-compat/bsd-misc.h6
2 files changed, 2 insertions, 17 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index 1b276b4f4..41f92cce9 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -18,7 +18,7 @@
18#include "includes.h" 18#include "includes.h"
19#include "xmalloc.h" 19#include "xmalloc.h"
20 20
21RCSID("$Id: bsd-misc.c,v 1.25 2004/08/15 08:41:00 djm Exp $"); 21RCSID("$Id: bsd-misc.c,v 1.26 2005/02/25 23:07:38 dtucker Exp $");
22 22
23#ifndef HAVE___PROGNAME 23#ifndef HAVE___PROGNAME
24char *__progname; 24char *__progname;
@@ -122,17 +122,6 @@ int truncate(const char *path, off_t length)
122} 122}
123#endif /* HAVE_TRUNCATE */ 123#endif /* HAVE_TRUNCATE */
124 124
125#if !defined(HAVE_SETGROUPS) && defined(SETGROUPS_NOOP)
126/*
127 * Cygwin setgroups should be a noop.
128 */
129int
130setgroups(size_t size, const gid_t *list)
131{
132 return (0);
133}
134#endif
135
136#if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP) 125#if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP)
137int nanosleep(const struct timespec *req, struct timespec *rem) 126int nanosleep(const struct timespec *req, struct timespec *rem)
138{ 127{
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index 33a1d707f..b61ec4244 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -1,4 +1,4 @@
1/* $Id: bsd-misc.h,v 1.17 2004/08/15 08:41:00 djm Exp $ */ 1/* $Id: bsd-misc.h,v 1.18 2005/02/25 23:07:38 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org> 4 * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org>
@@ -67,10 +67,6 @@ int utimes(char *, struct timeval *);
67int truncate (const char *, off_t); 67int truncate (const char *, off_t);
68#endif /* HAVE_TRUNCATE */ 68#endif /* HAVE_TRUNCATE */
69 69
70#if !defined(HAVE_SETGROUPS) && defined(SETGROUPS_NOOP)
71int setgroups(size_t, const gid_t *);
72#endif
73
74#if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP) 70#if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP)
75#ifndef HAVE_STRUCT_TIMESPEC 71#ifndef HAVE_STRUCT_TIMESPEC
76struct timespec { 72struct timespec {