<head><title>ColdC: Function/Method Reference: fchmod()</title></head> <body> <h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: fchmod()</h1> <hr> <p> <font size=+1><i>INTEGER</i> <b>fchmod</b>(<i>STRING <b>mode</b>[, STRING <b>file</b>]</i>)</font> <p>This function changes the mode of a file or directory. The mode is an octal number constructed by logically OR-ing the following values: <blockquote> <dl compact> <dt>4000<dd>set-user-ID-on-execution <dt>2000<dd>set-group-ID-on-execution <dt>1000<dd>sticky bit, see chmod(2) <dt>0400<dd>read by owner <dt>0200<dd>write by owner <dt>0100<dd>execute (or search for directories) by owner <dt>0070<dd>read, write, execute/search by group <dt>0007<dd>read, write, execute/search by others </dl> </blockquote> <p>The read, write, and execute/search values for group and others are en- coded as described for owner. <p>If the <code>RESTRICTIVE_FILES</code> option has been compiled into the driver, sticky and setuid/setgid bits cannot be changed. <p><hr size=4><p align=center><i>Last Modified on Mar 2 1996</i> <br><i>Copyright © 1995, 1996, Brandon Gillespie</i> </body>