2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001.
3 ** See ../LICENSE for license information.
13 /* Macro to substitute for ## because VAX C currently doesn't allow it. */
15 /* Use an intermediate paste macro so PASTE macro arguments will get */
16 /* evaluated. Therefore, PASTE(PASTE(a,b),c) will work. */
18 # define IPASTE(L,R) L ## R
20 # define PASTE(L,R) IPASTE(L,R)
23 # define PASTE(L,R ) L/**/R
26 /* Macro to substitute for # because VAX C currently doesn't allow it. */
31 # define STR(x) ISTR(x)
36 # define STR(x) ISTR(x)
40 ** MAXPATHLEN defines the longest permissable path length.
41 ** Is defined in <sys/param.h> in MIPS/Ultrix, but it not defined on the VAX.
42 ** Define here so available on both systems.
45 /*@constant int MAXPATHLEN; @*/
46 # define MAXPATHLEN 1024
51 OSD_PATHTOOLONG } filestatus;
53 extern /*@only@*/ cstring LSLRootName (cstring p_filespec) /*@*/ ;
56 osd_getPath (cstring p_path, cstring p_file, /*@out@*/ cstring *p_returnPath)
57 /*@modifies *p_returnPath@*/ ;
60 osd_getExePath (cstring p_path, cstring p_file, /*@out@*/ cstring *p_returnPath)
61 /*@modifies *p_returnPath@*/ ;
63 extern bool osd_fileExists (cstring p_filespec) /*@*/ ;
64 extern /*@observer@*/ cstring
65 osd_getEnvironment (cstring p_env, /*@returned@*/ cstring p_def) /*@*/ ;
67 extern filestatus osd_findOnLarchPath (cstring p_file, /*@out@*/ cstring *p_returnPath)
68 /*@modifies *p_returnPath@*/ ;
70 extern /*@observer@*/ cstring osd_getHomeDir (void) /*@*/ ;
72 extern /*@observer@*/ cstring osd_getEnvironmentVariable (cstring) ;
75 /*@constant int CALL_SUCCESS@*/
76 # define CALL_SUCCESS 0
77 extern int osd_system (cstring p_cmd) /*@modifies fileSystem@*/ ;
80 extern int osd_unlink (cstring) /*@modifies fileSystem@*/ ;
81 extern cstring osd_fixDefine (cstring);
82 extern bool osd_fileIsReadable (cstring);
84 extern bool osd_isConnectChar (char) /*@*/ ;
87 extern int osd_getPid (void) ;
89 extern int /*pid_t*/ osd_getPid (void) ;
93 # error "Multiple include"