2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
13 char testfilename
[] = "__TEST__";
19 fd
= creat(testfilename
, 0700);
23 TEST((stat(testfilename
, &buf
) != -1));
24 printf("owner %d group %d\n", (int)buf
.st_uid
, (int)buf
.st_gid
);
26 TEST((chown(testfilename
, 1000, 1001) != -1));
27 TEST((stat(testfilename
, &buf
) != -1));
28 printf("owner %d group %d\n", (int)buf
.st_uid
, (int)buf
.st_gid
);
30 TEST((chown(testfilename
, 1001, 1000) != -1));
31 TEST((stat(testfilename
, &buf
) != -1));
32 printf("owner %d group %d\n", (int)buf
.st_uid
, (int)buf
.st_gid
);