2008-02-09 11:52:24 -05:00
|
|
|
$OpenBSD: patch-sysdeps_bsd_sem_limits_c,v 1.1 2008/02/09 16:52:25 ajacoutot Exp $
|
|
|
|
--- sysdeps/bsd/sem_limits.c.orig Fri Dec 28 17:16:24 2007
|
|
|
|
+++ sysdeps/bsd/sem_limits.c Fri Dec 28 17:26:07 2007
|
|
|
|
@@ -55,7 +55,10 @@ glibtop_get_sem_limits_p (glibtop *server, glibtop_sem
|
2007-01-18 14:31:34 -05:00
|
|
|
#include <sys/sem.h>
|
|
|
|
|
|
|
|
static unsigned long _glibtop_sysdeps_sem_limits =
|
|
|
|
-(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
|
|
|
|
+#ifndef __OpenBSD__
|
|
|
|
+(1L << GLIBTOP_IPC_SEMMAP) +
|
|
|
|
+#endif
|
|
|
|
+(1L << GLIBTOP_IPC_SEMMNI) +
|
|
|
|
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
|
|
|
|
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
|
|
|
|
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
|
2008-02-09 11:52:24 -05:00
|
|
|
@@ -103,7 +106,9 @@ glibtop_get_sem_limits_p (glibtop *server, glibtop_sem
|
2004-08-01 02:06:35 -04:00
|
|
|
if (server->sysdeps.sem_limits == 0)
|
|
|
|
return;
|
|
|
|
|
2007-01-18 14:31:34 -05:00
|
|
|
+#ifndef __OpenBSD__
|
|
|
|
buf->semmap = _seminfo.semmap;
|
|
|
|
+#endif
|
2004-08-01 02:06:35 -04:00
|
|
|
buf->semmni = _seminfo.semmni;
|
|
|
|
buf->semmns = _seminfo.semmns;
|
|
|
|
buf->semmnu = _seminfo.semmnu;
|