source: trunk/minix/lib/posix/_chown.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 313 bytes
Line 
1#include <lib.h>
2#define chown _chown
3#include <string.h>
4#include <unistd.h>
5
6PUBLIC int chown(name, owner, grp)
7_CONST char *name;
8_mnx_Uid_t owner;
9_mnx_Gid_t grp;
10{
11 message m;
12
13 m.m1_i1 = strlen(name) + 1;
14 m.m1_i2 = owner;
15 m.m1_i3 = grp;
16 m.m1_p1 = (char *) name;
17 return(_syscall(FS, CHOWN, &m));
18}
Note: See TracBrowser for help on using the repository browser.