scsh-users
[Top] [All Lists]

Re: (chdir) & fcntl(2)

To: scsh@martigny.ai.mit.edu
Subject: Re: (chdir) & fcntl(2)
From: holly@random.pc-labor.uni-bremen.de (Holger Duerer - Esperanto parolata)
Date: 09 Sep 1996 10:55:16 +0200
Organization: Zentrum fuer angewandte Informationstechnologien der Universitaet Bremen
>>>>> On 07 Sep 1996 22:28:15 -0400, shivers@ai.mit.edu (Olin Shivers) said:
  Olin> [...]

  Olin>    BTW, I can't seem to find any reference to fcntl(2) in the manual.  
Is
  Olin>    this because it's not documented, or because it's not supported 
(e.g.,
  Olin>    non-POSIX), or because I'm not looking hard enough?

  Olin> What do you want to do? fcntl(2) isn't a specific thing, it's
  Olin> more of a grab bag. Scsh does file locking with file-locking
  Olin> procedures, duping with duping procedures. What's left, in
  Olin> POSIX, is getting status flags off of file descriptors. I
  Olin> don't provide this. I should. Do you need it?

  Olin>         -Olin

As I read from W. Richard Steven's book (``Advanced Programming in the
Unix Environment''), ioctl is not POSIX but supported by BSD and SYSV.
Useful things you haven't mentioned might be reading/setting file
modes (asynch, blocking, append) and setting/clearing the CLOEXEC
flag.  (The BSDish querying/setting of owner process is probably too
specific (i.e. unportable) to merit its inclusion.)


        Holger

Disclaimer:  I have never used these function and don't use scsh (yet).
-- 
------------------------------------------------------------------------------
Holger D"urer                                          Tel.:  +49 421 218-2867
Universit"at Bremen                                    Fax.:  +49 421 218-2720
FB 3 -- Informatik / TZI - Intelligente Systeme
Postfach 330 440                                 <H.Duerer@ZAIT.Uni-Bremen.DE>
D - 28334 Bremen            <http://www.zait.uni-bremen.de/Duerer/Holger.html>

<Prev in Thread] Current Thread [Next in Thread>