delorie.com/djgpp/doc/libc/libc_95.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <io.h> int _chmod(const char *filename, int func, mode_t mode); |
_chmod()
is called with func = 1, or else the call will fail.
The third argument is optional when getting attributes.
The attribute bits are defined as follows:
Bit Meaning 76543210 .......1 Read-only ......1. Hidden .....1.. System ....1... Volume Label ...1.... Directory ..1..... Archive xx...... Reserved (used by some network redirectors) |
On platforms where the LFN API (see section LFN) is available,
_chmod
calls function 0x7143 of Interrupt 21h, to support long
file names.
_chmod()
returns its attribute byte in case
it succeded, or -1 in case of failure.
ANSI/ISO C | No |
POSIX | No |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |