ftp.delorie.com/djgpp/doc/libc/libc_307.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

fchown

Syntax

 
#include <unistd.h>

int fchown(int fd, uid_t owner, gid_t group);

Description

This function changes the ownership of the open file specified by fd to the user ID owner and group ID group.

This function does almost nothing under MS-DOS: it just checks if the handle fd is valid. This function can be hooked by File System Extensions (see section File System Extensions).

Return Value

This function returns zero if the handle is valid, non-zero otherwise.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004