www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/10/00:26:30

From: elf AT netcom DOT com (Marc Singer)
Subject: chmod and fchmod
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP List Alias)
Date: Fri, 9 Dec 1994 14:51:28 -0800 (PST)

If I have a file open and I chmod on that file, my open file handle is
invalidated.  How do I know?  If I close the file handle after doing
the chmod, I get an error about an illegal file handle.  Is this
expected behavior from DJGPP?  The other option would be to use
fchmod, but this call responds with the error that it is
unimplemented.

In addition, I am not clear if the mode bits in the stat structure are
set according to the mode bits in DOS.  I believe I was seeing a file
as read only if I opened it for reading even though that file was RW
on disk.

-- 
Marc Singer
elf AT netcom DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019