#ifndef _OSINTER_H_
#define _OSINTER_H_ 1

#include "sysdep.h"
#include "bool.h"
#include "darray.h"

#ifdef unix
#include <sys/param.h>		/* Defines MAXPATHLEN */
#define OSINTER_MAXPATHLEN MAXPATHLEN
/* What to pass to get_directory if you want the current directory */
#define OSINTER_CUR_DIR "."
typedef int OSinter_UIDtype; /* from pw_uid in pwd.h */
typedef long OSinter_TimeType;
/* What functions that return UID's return when they fail */
#define OSINTER_ERROR_UID (-1)
#define OSINTER_USER_NAME_LENGTH (8)
#endif

extern Bool OSinter_get_directory PROTOTYPE((Darray, const char *));
extern Bool OSinter_get_cwd PROTOTYPE((char *));
extern Bool OSinter_set_cwd PROTOTYPE((const char *));
extern OSinter_UIDtype OSinter_get_file_uid PROTOTYPE((const char *));
extern OSinter_UIDtype OSinter_name_to_uid PROTOTYPE((const char *));
extern Bool OSinter_remove PROTOTYPE((const char *));
extern Bool OSinter_get_user_name PROTOTYPE((char *));
extern OSinter_TimeType OSinter_get_current_time PROTOTYPE((void));
extern OSinter_TimeType OSinter_get_file_mod_time PROTOTYPE((const char *));
#define OSinter_before(t1,t2) ((t1) < (t2))

#endif /* _OSINTER_H_ */
