Changeset 2311 for trunk/src


Ignore:
Timestamp:
Aug 28, 2005, 8:08:53 AM (20 years ago)
Author:
bird
Message:

chmod.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/libc/smoketests/fchmod-1.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2310 r2311  
    3030    umask(0);
    3131    unlink("fchmod-1.tst");
     32
    3233    int rc = -1;
    3334    int fh = open("fchmod-1.tst", O_RDWR | O_CREAT, 0766);
     
    3738        rc = fchmod(fh, 0744);
    3839        if (!rc)
     40
    3941            check_mode(fh, 0744);
     42
     43
     44
    4045        else
    4146            cErrors++;
     
    4651    close(fh);
    4752
     53
     54
     55
     56
     57
     58
     59
    4860    errno = 0;
    4961    rc = -1;
     
    5163    if (fh >= 0)
    5264    {
     65
     66
     67
     68
     69
     70
     71
     72
     73
    5374        rc = fchmod(fh, 0777);
    5475        if (!rc)
     
    6283    close(fh);
    6384
    64 //    unlink("fchmod-1.tst");
     85    unlink("fchmod-1.tst");
    6586
    6687    if (!cErrors)
Note: See TracChangeset for help on using the changeset viewer.