1 /* This is file ACCESS.C */
3 * Copyright (C) 1993 DJ Delorie
6 * Redistribution and use in source and binary forms is permitted
7 * provided that the above copyright notice and following paragraph are
8 * duplicated in all such forms.
10 * This file is distributed WITHOUT ANY WARRANTY; without even the implied
11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 int access(const char *fn
, int flags
)
23 if (s
.st_mode
& S_IFDIR
)
27 if (s
.st_mode
& S_IWRITE
)