done done
This commit is contained in:
parent
45e509186d
commit
6b8ce7d5b1
@ -1,4 +1,4 @@
|
||||
scrut: scrut.o libscrut.o
|
||||
scrut: scrut.o libfileis.o
|
||||
$(CC) $(CFLAGS) -o scrut scrut.o scrut.o
|
||||
|
||||
clean:
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "libscrut.h"
|
||||
#include "libfileis.h"
|
||||
|
||||
#include <unistd.h> /* access(3), F_OK, R_OK, W_OK, X_OK */
|
||||
|
||||
int f_executable(char *path){ return access(path, X_OK) == 0; } /* test -x */
|
||||
@ -8,7 +9,7 @@ int f_writeable(char *path){ return access(path, W_OK) == 0; } /* test -w */
|
||||
|
||||
#include <sys/stat.h> /* lstat(3), struct stat, S_ISBLK, S_ISCHR, S_ISDIR,
|
||||
* S_ISFIFO, S_ISGID, S_ISREG, S_ISLNK, S_ISSOCK,
|
||||
* S_ISUID */
|
||||
* S_ISUID, S_ISVTX */
|
||||
|
||||
static struct stat buf;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user