1 /* $Id: utils.h,v 1.5 2001/12/13 13:27:01 amai Exp $ */
5 extern const char *GetCurrentDir(void);
6 extern const char *GetHomeDir(void);
7 extern char *PrependHome(const char *filename
, char *buf
, int buflen
);
8 const char *GetUserName(void);
9 const char *GetHostName(void);
10 extern int Max(int i1
, int i2
);
11 extern int Min(int i1
, int i2
);
12 extern int Min3(int i1
, int i2
, int i3
);
13 extern int Max3(int i1
, int i2
, int i3
);
16 /* If anyone knows where to get this from system include files (in a machine
17 independent way), please change this (L_cuserid is apparently not ANSI) */
18 #define MAXUSERNAMELEN 32
20 /* Ditto for the maximum length for a node name. SYS_NMLN is not available
21 on most systems, and I don't know what the portable alternative is. */
23 #define MAXNODENAMELEN SYS_NMLN
25 #define MAXNODENAMELEN (MAXPATHLEN+2)