test: use libc.h constants for access() mode (thanks qrstuv)
This commit is contained in:
parent
460c598430
commit
c770b09f43
1 changed files with 4 additions and 4 deletions
|
@ -143,16 +143,16 @@ e3(void)
|
|||
return(isdir(nxtarg(0)));
|
||||
|
||||
if(EQ(a, "-r"))
|
||||
return(tio(nxtarg(0), 4));
|
||||
return(tio(nxtarg(0), AREAD));
|
||||
|
||||
if(EQ(a, "-w"))
|
||||
return(tio(nxtarg(0), 2));
|
||||
return(tio(nxtarg(0), AWRITE));
|
||||
|
||||
if(EQ(a, "-x"))
|
||||
return(tio(nxtarg(0), 1));
|
||||
return(tio(nxtarg(0), AEXEC));
|
||||
|
||||
if(EQ(a, "-e"))
|
||||
return(tio(nxtarg(0), 0));
|
||||
return(tio(nxtarg(0), AEXIST));
|
||||
|
||||
if(EQ(a, "-c"))
|
||||
return(0);
|
||||
|
|
Loading…
Reference in a new issue