delorie.com/djgpp/doc/libc/libc_96.html   search  
libc.a reference

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

chown

Syntax

 
#include <unistd.h>

int chown(const char *file, int owner, int group);

Description

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

This function does nothing under MS-DOS. This function can be hooked by File System Extensions (see section File System Extensions).

Return Value

This function always returns zero if the file exists, else it returns -1 and sets errno to ENOENT.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004