Annotation of coherent/f/usr/include.78/path.h, revision 1.1.1.1

1.1       root        1: /* (-lgl
                      2:  *     COHERENT Version 3.0
                      3:  *     Copyright (c) 1982, 1993 by Mark Williams Company.
                      4:  *     All rights reserved. May not be copied without permission.
                      5:  -lgl) */
                      6: /*
                      7:  * Path lookup.
                      8:  *
                      9:  * Path takes a path search list, a file name, and an access mode,
                     10:  * and searches each directory in the path list
                     11:  * for a file with the given name and access mode.
                     12:  * The constructed pathname, which is kept in a static buffer,
                     13:  * is returned on success.
                     14:  * NULL is returned if either pointer argument is NULL,
                     15:  * or if the search failed.
                     16:  */
                     17: #ifndef __PATH_H__
                     18: #define __PATH_H__
                     19: 
                     20: #include <access.h>
                     21: #if COHERENT
                     22: #define PATHSEP                '/'     /* Path name component separator */
                     23: #define        PATHSEPSTRING   "/"
                     24: #define LISTSEP                ':'     /* Search list component separator */
                     25: #define DEFPATH                ":/bin:/usr/bin"
                     26: #define DEFLIBPATH     "/lib:/usr/lib"
                     27: #define DEFSHELL       "sh"
                     28: #endif
                     29: #if GEMDOS
                     30: #define PATHSEP                '\\'
                     31: #define        PATHSEPSTRING   "\\"
                     32: #define LISTSEP                ','
                     33: #define DEFPATH                ",\\bin,\\usr\\bin"
                     34: #define DEFLIBPATH     "\\lib,,\\usr\\lib"
                     35: #define DEFSHELL       "msh.prg"
                     36: #endif
                     37: #if MSDOS
                     38: #define PATHSEP                '\\'
                     39: #define        PATHSEPSTRING   "\\"
                     40: #define LISTSEP                ';'
                     41: #define DEFPATH                ";\\bin;\\usr\\bin"
                     42: #define DEFLIBPATH     "\\lib;\\usr\\lib"
                     43: #define        DEFSHELL        "steve where are you"
                     44: #endif
                     45: #define MAXPATH        128             /* Size of static pathname buffer */
                     46: extern char *path();           /* (char *path, *file; int mode) */
                     47: 
                     48: #endif

unix.superglobalmegacorp.com

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