Annotation of researchv10dc/cmd/library/gnamef.h, revision 1.1.1.1

1.1       root        1: /* We assume that all BSD machines param.h includes types.h  */
                      2: #include <sys/param.h>
                      3: #ifndef BSD4_2
                      4: #define DIR FILE
                      5: #define opendir(x) fopen((x), "r")
                      6: #define closedir(x) fclose((x))
                      7: #include <sys/types.h>
                      8: #endif BSD4_2
                      9: /* #include <sys/dir.h> */
                     10: #include <ndir.h>
                     11: #include <sys/stat.h>
                     12: 
                     13: #define MAXBASENAME 14 /* should be DIRSIZ but 4.2bsd prohibits that */
                     14: #define MAXFULLNAME BUFSIZ
                     15: #define MAXNAMESIZE    64      /* /usr/spool/uucp/<14 chars>/<14 chars>+slop */
                     16: #define        TRUE    1
                     17: #define        FALSE   0
                     18: 
                     19: extern struct stat __s_;
                     20: #define READANY(f)     ((stat((f),&__s_)==0) && ((__s_.st_mode&(0004))!=0) )
                     21: #define READSOME(f)    ((stat((f),&__s_)==0) && ((__s_.st_mode&(0444))!=0) )
                     22: 
                     23: #define WRITEANY(f)    ((stat((f),&__s_)==0) && ((__s_.st_mode&(0002))!=0) )
                     24: #define DIRECTORY(f)   ((stat((f),&__s_)==0) && ((__s_.st_mode&(S_IFMT))==S_IFDIR) )
                     25: #define NOTEMPTY(f)    ((stat((f),&__s_)==0) && (__s_.st_size!=0) )

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.