delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | File attributes |
From: | Sami <no AT spam DOT com> |
Message-ID: | <Xns9141B245048B1gd678bcz5bAA@192.89.123.233> |
User-Agent: | Xnews/4.06.22 |
Lines: | 13 |
Date: | Sun, 21 Oct 2001 14:29:13 GMT |
NNTP-Posting-Host: | 194.251.251.90 |
X-Trace: | read2.inet.fi 1003674553 194.251.251.90 (Sun, 21 Oct 2001 17:29:13 EET DST) |
NNTP-Posting-Date: | Sun, 21 Oct 2001 17:29:13 EET DST |
Organization: | Sonera corp Internet services |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
By using chmod() I can set 'read-only' -file attribute like this: chmod ( "myfile", S_IWUSR | S_IRUSR ); I haven't found S_I* symbol for 'hidden' and 'system' -attributes. Is there any standard (or any common) function or way in C to set these -file attributes? I've found _chmod() in djgpp, but is there a more common function for this? The purpose would be to have the source compiled in various compilers. Or are these attributes supported only under MS platforms? How this is done in C++?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |