Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: brown@altair.krl.caltech.edu (C. Titus Brown)
Subject: Help with fcntl SETFL options across platforms
Date: 24 Nov 1994 07:54:00 GMT	[thread overview]
Message-ID: <3b1gqo$b6r@gap.cco.caltech.edu> (raw)

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...


                 reply	other threads:[~1994-11-24  7:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox