Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!math.ohio-state.edu!news2.uunet.ca!fw.novatel.ca!hpeyerl From: hpeyerl@novatel.ca (Herb Peyerl) Newsgroups: comp.os.386bsd.apps Subject: Re: fvwm Date: 7 Oct 1993 13:19:43 GMT Organization: NovAtel Communications Ltd. Lines: 21 Message-ID: <29151f$b7i@fw.novatel.ca> References: <1993Oct5.141628.25003@urbana.mcd.mot.com> <CEGx4C.4Bo@cvt.stuba.sk> NNTP-Posting-Host: sid.corp.novatel.ca X-Newsreader: TIN [version 1.2 PL0] Valo Roman (valo@cvt.stuba.sk) wrote: : So you can replace the line : fd_width = sysconf(_SC_OPEN_MAX); : with the line : fd_width = (long)_SC_OPEN_MAX; This is _WRONG_. _SC_OPEN_MAX is meant to be an argument to sysconf() (as you saw in the original source) which would normally return the maximum number of open file descriptors allowed (ie: maxfdescs). There isn't currently a sysconf() function so you're stuck. : This is exactly what I had done and fvwm works just fine for me. You've just told fvwm that the system can have 5 file descriptors open at a time. -- hpeyerl@novatel.ca | NovAtel Commnications Ltd. hpeyerl@fsa.ca | <nothing I say matters anyway> <NetBSD: A drinking group with a serious computing problem!>