no persistent history (flock missing), no arc4random, etc. for Solaris

This commit is contained in:
tg
2005-05-23 15:36:56 +00:00
parent dc5614a091
commit 37d3bd813d
4 changed files with 37 additions and 12 deletions

9
sh.h
View File

@@ -1,4 +1,4 @@
/** $MirOS: src/bin/mksh/sh.h,v 1.4 2005/05/23 15:24:43 tg Exp $ */
/** $MirOS: src/bin/mksh/sh.h,v 1.5 2005/05/23 15:36:55 tg Exp $ */
/* $OpenBSD: sh.h,v 1.27 2005/03/28 21:33:04 deraadt Exp $ */
/* $OpenBSD: shf.h,v 1.5 2005/03/30 17:16:37 deraadt Exp $ */
/* $OpenBSD: table.h,v 1.6 2004/12/18 20:55:52 millert Exp $ */
@@ -100,6 +100,9 @@ typedef int32_t Tflag;
#ifndef PATH_MAX
#define PATH_MAX 1024 /* pathname size (todo: PATH_MAX/pathconf()) */
#endif
#ifndef _PATH_DEFPATH
#define _PATH_DEFPATH "/bin:/usr/bin:/sbin:/usr/sbin"
#endif
EXTERN char * kshname; /* $0 */
EXTERN pid_t kshpid; /* $$, shell pid */
@@ -1301,6 +1304,10 @@ size_t strlcat(char *, const char *, size_t);
size_t strlcpy(char *, const char *, size_t);
#endif
#if defined(__sun__)
size_t confstr(int, char *, size_t);
#endif
#ifndef timeradd
#define timeradd(tvp, uvp, vvp) \
do { \