*BSD News Article 22004


Return to BSD News archive

Newsgroups: comp.os.386bsd.apps
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!pipex!uunet!psgrain!ee.und.ac.za!hippo.ru.ac.za!kudu!g89r4222
From: g89r4222@kudu.ru.ac.za (Geoff Rehmet)
Subject: Re: fvwm
Message-ID: <g89r4222.749917993@kudu>
Sender: news@hippo.ru.ac.za (Usenet News Admin)
Organization: Rhodes University, Grahamstown, South Africa
References: <1993Oct5.141628.25003@urbana.mcd.mot.com>
Date: Wed, 6 Oct 1993 14:33:13 GMT
Lines: 33

In <1993Oct5.141628.25003@urbana.mcd.mot.com> tcombs@dacapo.urbana.mcd.mot.com (Tim Combs) writes:

>I sucked down the source for fvwm and tried to compile on my NetBSD 0.9 machine running
>XFree 1.2.  All was well until  I got an unresolved link error.  In events.c it was looking for _sysconf.
>I looked for this function in all the libraries and couldn't find it.  In unistd.h the sysconf entry has
>a comment beside it that says, /* Not yet */.  Is this functionality implemented yet?

The same problem occurs with FreeBSD.  Just use getdtablesize()
instead of sysconf.  The functions HandleEvents is given below
(using getdtablesize()).

--------------------------------
int fd_width, x_fd;
void HandleEvents()
{
  fd_width = getdtablesize(); /* sysconf(_SC_OPEN_MAX); */
  x_fd = XConnectionNumber(dpy);

  while (TRUE)
    {
      My_XNextEvent(dpy, &Event);
      DispatchEvent ();
      
    }
}
---------------------------------

Geoff.
--
===========================csgr@alpha.ru.ac.za================================
 Geoff Rehmet, Parallel Processing Group, |  ____   _ o         /\
 Computer Science Department,             | ___  _-\_<,        /\/\/\
 Rhodes University, RSA.                  |     (*)/'(*)    /\/\/\/\/\