From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6653,e30d970f1df602eb,start X-Google-Attributes: gidf6653,public X-Google-Thread: fee84,e30d970f1df602eb,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-23 23:55:54 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!psuvax1!news.pop.psu.edu!hudson.lm.com!netline-fddi.jpl.nasa.gov!nntp-server.caltech.edu!altair.krl.caltech.edu!brown From: brown@altair.krl.caltech.edu (C. Titus Brown) Newsgroups: comp.unix.osf.osf1,comp.sys.sun.misc Subject: Help with fcntl SETFL options across platforms Date: 24 Nov 1994 07:54:00 GMT Organization: Avida Artificial Life group Message-ID: <3b1gqo$b6r@gap.cco.caltech.edu> NNTP-Posting-Host: altair.krl.caltech.edu Xref: nntp.gmd.de comp.unix.osf.osf1:6606 comp.sys.sun.misc:18179 Hello, all you wise people who actually understand fcntl on different platforms... :) I'm working on releasing some software (PD) for different machines, and I'm having some difficulty regarding fcntl usage between SunOS and OSF/1. 'm doing two things with fcntl, both using the SETFL option, and it doesn't seem to work the same on different platforms (no surprise there!) Quickly to the nitty gritty: fcntl(fd, F_SETFL, O_NDELAY). This works on both OSF/1 and HP-UX, but not on SunOS 4. FNDELAY works on SunOS 4. What I'm trying to do is set fcntl to be non-blocking on reads and writes. I get weird results using O_NONBLOCK on OSF/1 machines; could someone explain the differences between O_NDELAY, O_NONBLOCK, and FNDELAY? I'm sure it has something to do with the POSIX standards, but I'm not sure what. I'd be happy to summarize if there's a few requests for this info... Thanks, --Titus (P.S. Please e-mail your responses to me; I'll probably miss them in the noise of the group otherwise!) -- Titus Brown, brown@krl.caltech.edu. Kellogg Radiation Lab - where the screens don't need electricity to glow...