You must have a WRITE privilege for the file specified to change the mode. The C RTL does not support the S_ISVTX bit. Setting the S_ISVTX mode has no effect.