diff -urN shellutils-2.0/config.h shellutils-2.0-eo/config.h --- shellutils-2.0/config.h Fri Jun 20 20:22:55 2003 +++ shellutils-2.0-eo/config.h Wed Jun 18 21:43:29 2003 @@ -23,7 +23,7 @@ /* Define to the type of elements in the array set by `getgroups'. Usually this is either `int' or `gid_t'. */ -#define GETGROUPS_T gid_t +#define GETGROUPS_T int /* Define if the `getloadavg' function needs to be run setuid or setgid. */ /* #undef GETLOADAVG_PRIVILEGED */ @@ -35,22 +35,22 @@ #define HAVE_ALLOCA 1 /* Define if you have and it should be used (not on Ultrix). */ -#define HAVE_ALLOCA_H 1 +/* #define HAVE_ALLOCA_H 1 */ /* Define if you don't have vprintf but do have _doprnt. */ /* #undef HAVE_DOPRNT */ /* Define if your system has a working fnmatch function. */ -#define HAVE_FNMATCH 1 +/* #define HAVE_FNMATCH 1 */ /* Define if your system has its own `getloadavg' function. */ /* #undef HAVE_GETLOADAVG */ /* Define if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 +/* #define HAVE_MMAP 1 */ /* Define if your struct tm has tm_zone. */ -#define HAVE_TM_ZONE 1 +/* #define HAVE_TM_ZONE 1 */ /* Define if you don't have tm_zone but do have the external array tzname. */ @@ -132,16 +132,16 @@ /* Define if your system's definition of `struct termios' has a member named c_line. */ -#define HAVE_C_LINE 1 +/* #define HAVE_C_LINE 1 */ /* Define if your system has SysV shadow passwords and the shadow.h header. */ -#define HAVE_SHADOW_H 1 +/* #define HAVE_SHADOW_H 1 */ /* Define if you have the syslog function. */ -#define HAVE_SYSLOG 1 +/* #define HAVE_SYSLOG 1 */ /* Define if your system's struct utmp has a member named ut_host. */ -#define HAVE_UT_HOST 1 +/* #define HAVE_UT_HOST 1 */ /* Define if you have the header file. */ /* #undef HAVE_UTMPX_H */ @@ -158,16 +158,16 @@ /* #undef TERMIOS_NEEDS_XOPEN_SOURCE */ /* Define if you have the __argz_count function. */ -#define HAVE___ARGZ_COUNT 1 +/* #define HAVE___ARGZ_COUNT 1 */ /* Define if you have the __argz_next function. */ -#define HAVE___ARGZ_NEXT 1 +/* #define HAVE___ARGZ_NEXT 1 */ /* Define if you have the __argz_stringify function. */ -#define HAVE___ARGZ_STRINGIFY 1 +/* #define HAVE___ARGZ_STRINGIFY 1 */ /* Define if you have the alarm function. */ -#define HAVE_ALARM 1 +/* #define HAVE_ALARM 1 */ /* Define if you have the bcopy function. */ #define HAVE_BCOPY 1 @@ -179,10 +179,10 @@ #define HAVE_BZERO 1 /* Define if you have the chroot function. */ -#define HAVE_CHROOT 1 +/* #define HAVE_CHROOT 1 */ /* Define if you have the dcgettext function. */ -#define HAVE_DCGETTEXT 1 +/* #define HAVE_DCGETTEXT 1 */ /* Define if you have the doprnt function. */ /* #undef HAVE_DOPRNT */ @@ -191,16 +191,16 @@ #define HAVE_DUP2 1 /* Define if you have the endgrent function. */ -#define HAVE_ENDGRENT 1 +/* #define HAVE_ENDGRENT 1 */ /* Define if you have the endpwent function. */ -#define HAVE_ENDPWENT 1 +/* #define HAVE_ENDPWENT 1 */ /* Define if you have the floor function. */ #define HAVE_FLOOR 1 /* Define if you have the ftime function. */ -#define HAVE_FTIME 1 +/* #define HAVE_FTIME 1*/ /* Define if you have the getcwd function. */ #define HAVE_GETCWD 1 @@ -212,40 +212,40 @@ #define HAVE_GETGROUPS 1 /* Define if you have the gethostbyaddr function. */ -#define HAVE_GETHOSTBYADDR 1 +/* #define HAVE_GETHOSTBYADDR 1 */ /* Define if you have the gethostbyname function. */ -#define HAVE_GETHOSTBYNAME 1 +/* #define HAVE_GETHOSTBYNAME 1 */ /* Define if you have the gethostid function. */ -#define HAVE_GETHOSTID 1 +/* #define HAVE_GETHOSTID 1 */ /* Define if you have the gethostname function. */ -#define HAVE_GETHOSTNAME 1 +/* #define HAVE_GETHOSTNAME 1 */ /* Define if you have the getloadavg function. */ /* #undef HAVE_GETLOADAVG */ /* Define if you have the getpagesize function. */ -#define HAVE_GETPAGESIZE 1 +/* #define HAVE_GETPAGESIZE 1 */ /* Define if you have the gettimeofday function. */ #define HAVE_GETTIMEOFDAY 1 /* Define if you have the getusershell function. */ -#define HAVE_GETUSERSHELL 1 +/* #define HAVE_GETUSERSHELL 1 */ /* Define if you have the inet_ntoa function. */ -#define HAVE_INET_NTOA 1 +/* #define HAVE_INET_NTOA 1 */ /* Define if you have the initgroups function. */ -#define HAVE_INITGROUPS 1 +/* #define HAVE_INITGROUPS 1 */ /* Define if you have the isascii function. */ #define HAVE_ISASCII 1 /* Define if you have the lchown function. */ -#define HAVE_LCHOWN 1 +/* #define HAVE_LCHOWN 1 */ /* Define if you have the localeconv function. */ #define HAVE_LOCALECONV 1 @@ -263,7 +263,7 @@ #define HAVE_MEMMOVE 1 /* Define if you have the mempcpy function. */ -#define HAVE_MEMPCPY 1 +/* #define HAVE_MEMPCPY 1 */ /* Define if you have the memset function. */ #define HAVE_MEMSET 1 @@ -272,7 +272,7 @@ #define HAVE_MODF 1 /* Define if you have the munmap function. */ -#define HAVE_MUNMAP 1 +/* #define HAVE_MUNMAP 1 */ /* Define if you have the pow function. */ /* #undef HAVE_POW */ @@ -290,19 +290,19 @@ #define HAVE_SETENV 1 /* Define if you have the sethostname function. */ -#define HAVE_SETHOSTNAME 1 +/* #define HAVE_SETHOSTNAME 1 */ /* Define if you have the setlocale function. */ -#define HAVE_SETLOCALE 1 +/* #define HAVE_SETLOCALE 1 */ /* Define if you have the sqrt function. */ /* #undef HAVE_SQRT */ /* Define if you have the stime function. */ -#define HAVE_STIME 1 +/* #define HAVE_STIME 1 */ /* Define if you have the stpcpy function. */ -#define HAVE_STPCPY 1 +/* #define HAVE_STPCPY 1 */ /* Define if you have the strcasecmp function. */ #define HAVE_STRCASECMP 1 @@ -320,7 +320,7 @@ #define HAVE_STRERROR 1 /* Define if you have the strerror_r function. */ -#define HAVE_STRERROR_R 1 +/* #define HAVE_STRERROR_R 1 */ /* Define if you have the strncasecmp function. */ #define HAVE_STRNCASECMP 1 @@ -341,34 +341,34 @@ /* #undef HAVE_STRTOULL */ /* Define if you have the strtoumax function. */ -#define HAVE_STRTOUMAX 1 +/* #define HAVE_STRTOUMAX 1 */ /* Define if you have the sysinfo function. */ -#define HAVE_SYSINFO 1 +/* #define HAVE_SYSINFO 1 */ /* Define if you have the syslog function. */ -#define HAVE_SYSLOG 1 +/* #define HAVE_SYSLOG 1 */ /* Define if you have the tzset function. */ -#define HAVE_TZSET 1 +/* #define HAVE_TZSET 1 */ /* Define if you have the uname function. */ #define HAVE_UNAME 1 /* Define if you have the utmpname function. */ -#define HAVE_UTMPNAME 1 +/* #define HAVE_UTMPNAME 1 */ /* Define if you have the vprintf function. */ #define HAVE_VPRINTF 1 /* Define if you have the header file. */ -#define HAVE_ALLOCA_H 1 +/* #define HAVE_ALLOCA_H 1 */ /* Define if you have the header file. */ -#define HAVE_ARGZ_H 1 +/* #define HAVE_ARGZ_H 1 */ /* Define if you have the header file. */ -#define HAVE_ARPA_INET_H 1 +/* #define HAVE_ARPA_INET_H 1 */ /* Define if you have the header file. */ #define HAVE_DIRENT_H 1 @@ -380,7 +380,7 @@ #define HAVE_FLOAT_H 1 /* Define if you have the header file. */ -#define HAVE_LIBINTL_H 1 +/* #define HAVE_LIBINTL_H 1 */ /* Define if you have the header file. */ #define HAVE_LIMITS_H 1 @@ -395,19 +395,19 @@ #define HAVE_MALLOC_H 1 /* Define if you have the header file. */ -#define HAVE_MEMORY_H 1 +/* #undef HAVE_MEMORY_H */ /* Define if you have the header file. */ /* #undef HAVE_NDIR_H */ /* Define if you have the header file. */ -#define HAVE_NETDB_H 1 +/* #define HAVE_NETDB_H 1 */ /* Define if you have the header file. */ -#define HAVE_NETINET_IN_H 1 +/* #define HAVE_NETINET_IN_H 1 */ /* Define if you have the header file. */ -#define HAVE_NL_TYPES_H 1 +/* #define HAVE_NL_TYPES_H 1 */ /* Define if you have the header file. */ #define HAVE_PATHS_H 1 @@ -419,7 +419,7 @@ #define HAVE_STRING_H 1 /* Define if you have the header file. */ -#define HAVE_STRINGS_H 1 +/* #undef HAVE_STRINGS_H */ /* Define if you have the header file. */ /* #undef HAVE_SYS_DIR_H */ @@ -431,7 +431,7 @@ #define HAVE_SYS_PARAM_H 1 /* Define if you have the header file. */ -#define HAVE_SYS_SOCKET_H 1 +/* #define HAVE_SYS_SOCKET_H 1 */ /* Define if you have the header file. */ /* #undef HAVE_SYS_SYSTEMINFO_H */ @@ -440,10 +440,10 @@ #define HAVE_SYS_TIME_H 1 /* Define if you have the header file. */ -#define HAVE_SYS_TIMEB_H 1 +/* #define HAVE_SYS_TIMEB_H 1 */ /* Define if you have the header file. */ -#define HAVE_SYSLOG_H 1 +/* #define HAVE_SYSLOG_H 1 */ /* Define if you have the header file. */ #define HAVE_TERMIOS_H 1 @@ -455,10 +455,10 @@ #define HAVE_UTIME_H 1 /* Define if you have the header file. */ -#define HAVE_WCHAR_H 1 +/* #define HAVE_WCHAR_H 1 */ /* Define if you have the header file. */ -#define HAVE_WCTYPE_H 1 +/* #define HAVE_WCTYPE_H 1 */ /* Define if you have the dgc library (-ldgc). */ /* #undef HAVE_LIBDGC */ @@ -500,7 +500,7 @@ /* Define if exists, doesn't clash with , and declares uintmax_t. */ -#define HAVE_INTTYPES_H 1 +/* #define HAVE_INTTYPES_H 1 */ /* Define if you have the unsigned long long type. */ #define HAVE_UNSIGNED_LONG_LONG 1 @@ -558,7 +558,7 @@ #define HAVE_DECL_REALLOC 1 /* Define if this function is declared. */ -#define HAVE_DECL_STPCPY 1 +/* #define HAVE_DECL_STPCPY 1 */ /* Define if this function is declared. */ #define HAVE_DECL_STRSTR 1 @@ -628,10 +628,10 @@ #define C_GETLOADAVG 1 /* Define if your system has the /proc/uptime special file. */ -#define HAVE_PROC_UPTIME 1 +/* #define HAVE_PROC_UPTIME 1 */ /* Define if your system defines TIOCGWINSZ in sys/ioctl.h. */ -#define GWINSZ_IN_SYS_IOCTL 1 +/* #define GWINSZ_IN_SYS_IOCTL 1 */ /* Define if your system defines `struct winsize' in sys/ptem.h. */ /* #undef WINSIZE_IN_PTEM */ @@ -640,16 +640,16 @@ /* #undef GWINSZ_IN_SYS_PTY */ /* Define to 1 if you have the stpcpy function. */ -#define HAVE_STPCPY 1 +/* #define HAVE_STPCPY 1 */ /* Define if your locale.h file contains LC_MESSAGES. */ -#define HAVE_LC_MESSAGES 1 +/* #define HAVE_LC_MESSAGES 1 */ /* Define to 1 if NLS is requested. */ -#define ENABLE_NLS 1 +/* #define ENABLE_NLS 1 */ /* Define to 1 if you have gettext and don't want to use GNU gettext. */ -#define HAVE_GETTEXT 1 +/* #define HAVE_GETTEXT 1 */ /* Define as 1 if you have catgets and don't want to use GNU gettext. */ /* #undef HAVE_CATGETS */ diff -urN shellutils-2.0/lib/Makefile shellutils-2.0-eo/lib/Makefile --- shellutils-2.0/lib/Makefile Fri Jun 20 20:22:11 2003 +++ shellutils-2.0-eo/lib/Makefile Fri Jun 20 17:06:01 2003 @@ -13,6 +13,11 @@ SHELL = /bin/sh +ROOT = $(HOME)/EOTA/eota/kernel +NEWLIB = $(HOME)/EOTA/libc/newlib-1.8.1/eota/newlib +NCFLAGS = -g -O2 -Wall -I. -I$(NEWLIB)/targ-include \ + -I$(NEWLIB)/libc/include -DEOTA + srcdir = . top_srcdir = .. prefix = /usr/local @@ -149,10 +154,13 @@ getopt$U.o getopt1$U.o getugroups$U.o human$U.o long-options$U.o \ quotearg$U.o readutmp$U.o stripslash$U.o version-etc$U.o xgetcwd$U.o \ xgethostname$U.o xmalloc$U.o xstrdup$U.o xstrtod$U.o xstrtol$U.o \ -xstrtoul$U.o xstrtoumax$U.o +xstrtoul$U.o xstrtoumax$U.o \ +error$U.o getline$U.o gethostname$U.o stime$U.o regex$U.o group-member$U.o \ +getusershell$U.o \ +eota$U.o libsu_a_OBJECTS = $(am_libsu_a_OBJECTS) AR = ar -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(NCFLAGS) CFLAGS = -g -O2 CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ @@ -165,7 +173,8 @@ lchown.c malloc.c memchr.c memcmp.c memcpy.c memmove.c memset.c \ mktime.c putenv.c realloc.c regex.c stime.c stpcpy.c strcasecmp.c \ strcspn.c strftime.c strncasecmp.c strstr.c strtod.c strtol.c strtoul.c \ -strtoull.c strtoumax.c +strtoull.c strtoumax.c getusershell.c \ +eota.c DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) diff -urN shellutils-2.0/lib/eota.c shellutils-2.0-eo/lib/eota.c --- shellutils-2.0/lib/eota.c Thu Jan 1 09:00:00 1970 +++ shellutils-2.0-eo/lib/eota.c Fri Jun 20 20:05:43 2003 @@ -0,0 +1,19 @@ +int lstat(const char *file_name, struct stat *buf) +{ + return stat(file_name, buf); +} + +#include + +struct passwd *getpwnam(const char * name) { return NULL; } +struct passwd *getpwuid(uid_t uid) { return NULL; } +void setgrent(void) {} +void endgrent(void) {} +int getgrent() {} +int pathconf() { return 0; } +int chroot() { return 0; } +int gethostid(void) { return 0; } +int getpriority() { return 0; } +int setpriority() { return 0; } +char *getpass(const char *prompt) { return NULL; } +char *crypt(const char *key, const char *salt) { return NULL; } diff -urN shellutils-2.0/lib/human.c shellutils-2.0-eo/lib/human.c --- shellutils-2.0/lib/human.c Sun Jul 11 01:43:37 1999 +++ shellutils-2.0-eo/lib/human.c Wed Jun 18 21:43:29 2003 @@ -73,6 +73,10 @@ 'Y' /* Yotta */ }; +#ifdef EOTA +#undef uintmax_t +#define uintmax_t int +#endif /* EOTA */ /* Like human_readable_inexact, except always round to even. */ char * human_readable (uintmax_t n, char *buf, diff -urN shellutils-2.0/lib/readutmp.h shellutils-2.0-eo/lib/readutmp.h --- shellutils-2.0/lib/readutmp.h Wed May 5 22:30:29 1999 +++ shellutils-2.0-eo/lib/readutmp.h Wed Jun 18 21:43:30 2003 @@ -93,6 +93,10 @@ # define PARAMS(Args) () # endif +#ifdef EOTA +#define ut_name ut_user +#endif /* EOTA */ + extern char *extract_trimmed_name PARAMS ((const STRUCT_UTMP *ut)); extern int read_utmp PARAMS ((const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf)); diff -urN shellutils-2.0/lib/stime.c shellutils-2.0-eo/lib/stime.c --- shellutils-2.0/lib/stime.c Mon Jun 23 20:41:23 1997 +++ shellutils-2.0-eo/lib/stime.c Wed Jun 18 21:43:30 2003 @@ -30,9 +30,13 @@ stime (when) time_t *when; { +#ifndef EOTA struct timeval tv; tv.tv_sec = *when; tv.tv_usec = 0; return settimeofday (&tv, (struct timezone *) 0); +#else + return NULL; +#endif } diff -urN shellutils-2.0/lib/sys/utmp.h shellutils-2.0-eo/lib/sys/utmp.h --- shellutils-2.0/lib/sys/utmp.h Thu Jan 1 09:00:00 1970 +++ shellutils-2.0-eo/lib/sys/utmp.h Wed Jun 18 21:43:30 2003 @@ -0,0 +1,43 @@ +#ifndef _UTMP_H +# define _UTMP_H + +#include + +# define UTMP_FILE "/etc/utmp" +# define WTMP_FILE "/etc/wtmp" + +struct utmp { + char ut_user[8]; /* how limited */ + char ut_id[4]; /* ditto */ + char ut_line[12]; /* I'm repeating myself */ + short ut_pid; + short ut_type; + struct exit_status { + short e_termination; + short e_exit; + } ut_exit; /* for DEAD_PROCESS processes */ + time_t ut_time; +}; + +/* Definitions for ut_type fields */ + +# define EMPTY 0 +# define RUN_LVL 1 +# define BOOT_TIME 2 +# define OLD_TIME 3 +# define NEW_TIME 4 +# define INIT_PROCESS 5 +# define LOGIN_PROCESS 6 +# define USER_PROCESS 7 +# define DEAD_PROCESS 8 +# define ACCOUNTING 9 +# define UTMAXTYPE ACCOUNTING + +# define RUNLVL_MSG "run-level %c" +# define BOOT_MSG "system boot" +# define OTIME_MSG "old time" +# define NTIME_MSG "new time" + +#endif /* _UTMP_H */ + + diff -urN shellutils-2.0/lib/xstrtol.h shellutils-2.0-eo/lib/xstrtol.h --- shellutils-2.0/lib/xstrtol.h Mon Apr 19 11:43:30 1999 +++ shellutils-2.0-eo/lib/xstrtol.h Wed Jun 18 21:43:30 2003 @@ -5,6 +5,11 @@ # include /* for uintmax_t */ # endif +#ifdef EOTA +#undef uintmax_t +#define uintmax_t int +#endif /* EOTA */ + # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args diff -urN shellutils-2.0/src/Makefile shellutils-2.0-eo/src/Makefile --- shellutils-2.0/src/Makefile Fri Jun 20 20:22:19 2003 +++ shellutils-2.0-eo/src/Makefile Wed Jun 18 21:43:30 2003 @@ -13,6 +13,16 @@ SHELL = /bin/sh +ROOT = $(HOME)/EOTA/eota/kernel +NEWLIB = $(HOME)/EOTA/libc/newlib-1.8.1/eota/newlib +NLIBS = $(NEWLIB)/crt0.o $(NEWLIB)/libc.a +KERNLIBS = $(ROOT)/POSIX/libc/libnative.a +STARTADDR = 0x00001000 +ENTRY = _start +NCFLAGS = -g -O2 -Wall -I. -I$(NEWLIB)/targ-include \ + -I$(NEWLIB)/libc/include -DEOTA +LDFLAGS = -s -Bstatic -e ${ENTRY} -Ttext=$(STARTADDR) + srcdir = . top_srcdir = .. prefix = /usr/local @@ -67,7 +77,7 @@ DATADIRNAME = share GENCAT = GETCONF = getconf -GETLOADAVG_LIBS = -L/usr/local/lib +GETLOADAVG_LIBS = GMOFILES = cs.gmo de.gmo el.gmo es.gmo fr.gmo it.gmo nl.gmo no.gmo pl.gmo pt.gmo pt_BR.gmo ru.gmo sk.gmo sv.gmo zh.gmo GMSGFMT = /usr/bin/msgfmt GNU_PACKAGE = GNU sh-utils @@ -142,7 +152,7 @@ seq_LDADD = $(LDADD) -lm seq_DEPENDENCIES = $(LDADD) -uptime_LDADD = $(LDADD) -L/usr/local/lib +uptime_LDADD = $(LDADD) uptime_DEPENDENCIES = $(LDADD) su_LDADD = $(LDADD) -lcrypt @@ -172,7 +182,7 @@ PROGRAMS = $(bin_PROGRAMS) CPPFLAGS = -LDFLAGS = +# LDFLAGS = LIBS = ANSI2KNR = basename_SOURCES = basename.c @@ -332,10 +342,10 @@ yes_LDFLAGS = SCRIPTS = $(bin_SCRIPTS) -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(NCFLAGS) CFLAGS = -g -O2 -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +CCLD = $(LD) +LINK = $(CCLD) $(AM_LDFLAGS) $(LDFLAGS) -o $@ DIST_SOURCES = basename.c chroot.c date.c dirname.c echo.c env.c expr.c \ factor.c false.c hostid.c hostname.c id.c logname.c nice.c pathchk.c \ pinky.c printenv.c printf.c pwd.c seq.c sleep.c stty.c su.c tee.c \ @@ -425,135 +435,135 @@ basename: $(basename_OBJECTS) $(basename_DEPENDENCIES) @rm -f basename - $(LINK) $(basename_LDFLAGS) $(basename_OBJECTS) $(basename_LDADD) $(LIBS) + $(LINK) $(basename_LDFLAGS) $(basename_OBJECTS) $(basename_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) chroot: $(chroot_OBJECTS) $(chroot_DEPENDENCIES) @rm -f chroot - $(LINK) $(chroot_LDFLAGS) $(chroot_OBJECTS) $(chroot_LDADD) $(LIBS) + $(LINK) $(chroot_LDFLAGS) $(chroot_OBJECTS) $(chroot_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) date: $(date_OBJECTS) $(date_DEPENDENCIES) @rm -f date - $(LINK) $(date_LDFLAGS) $(date_OBJECTS) $(date_LDADD) $(LIBS) + $(LINK) $(date_LDFLAGS) $(date_OBJECTS) $(date_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) dirname: $(dirname_OBJECTS) $(dirname_DEPENDENCIES) @rm -f dirname - $(LINK) $(dirname_LDFLAGS) $(dirname_OBJECTS) $(dirname_LDADD) $(LIBS) + $(LINK) $(dirname_LDFLAGS) $(dirname_OBJECTS) $(dirname_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) echo: $(echo_OBJECTS) $(echo_DEPENDENCIES) @rm -f echo - $(LINK) $(echo_LDFLAGS) $(echo_OBJECTS) $(echo_LDADD) $(LIBS) + $(LINK) $(echo_LDFLAGS) $(echo_OBJECTS) $(echo_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) env: $(env_OBJECTS) $(env_DEPENDENCIES) @rm -f env - $(LINK) $(env_LDFLAGS) $(env_OBJECTS) $(env_LDADD) $(LIBS) + $(LINK) $(env_LDFLAGS) $(env_OBJECTS) $(env_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) expr: $(expr_OBJECTS) $(expr_DEPENDENCIES) @rm -f expr - $(LINK) $(expr_LDFLAGS) $(expr_OBJECTS) $(expr_LDADD) $(LIBS) + $(LINK) $(expr_LDFLAGS) $(expr_OBJECTS) $(expr_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) factor: $(factor_OBJECTS) $(factor_DEPENDENCIES) @rm -f factor - $(LINK) $(factor_LDFLAGS) $(factor_OBJECTS) $(factor_LDADD) $(LIBS) + $(LINK) $(factor_LDFLAGS) $(factor_OBJECTS) $(factor_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) false: $(false_OBJECTS) $(false_DEPENDENCIES) @rm -f false - $(LINK) $(false_LDFLAGS) $(false_OBJECTS) $(false_LDADD) $(LIBS) + $(LINK) $(false_LDFLAGS) $(false_OBJECTS) $(false_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) hostid: $(hostid_OBJECTS) $(hostid_DEPENDENCIES) @rm -f hostid - $(LINK) $(hostid_LDFLAGS) $(hostid_OBJECTS) $(hostid_LDADD) $(LIBS) + $(LINK) $(hostid_LDFLAGS) $(hostid_OBJECTS) $(hostid_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) hostname: $(hostname_OBJECTS) $(hostname_DEPENDENCIES) @rm -f hostname - $(LINK) $(hostname_LDFLAGS) $(hostname_OBJECTS) $(hostname_LDADD) $(LIBS) + $(LINK) $(hostname_LDFLAGS) $(hostname_OBJECTS) $(hostname_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) id: $(id_OBJECTS) $(id_DEPENDENCIES) @rm -f id - $(LINK) $(id_LDFLAGS) $(id_OBJECTS) $(id_LDADD) $(LIBS) + $(LINK) $(id_LDFLAGS) $(id_OBJECTS) $(id_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) logname: $(logname_OBJECTS) $(logname_DEPENDENCIES) @rm -f logname - $(LINK) $(logname_LDFLAGS) $(logname_OBJECTS) $(logname_LDADD) $(LIBS) + $(LINK) $(logname_LDFLAGS) $(logname_OBJECTS) $(logname_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) nice: $(nice_OBJECTS) $(nice_DEPENDENCIES) @rm -f nice - $(LINK) $(nice_LDFLAGS) $(nice_OBJECTS) $(nice_LDADD) $(LIBS) + $(LINK) $(nice_LDFLAGS) $(nice_OBJECTS) $(nice_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) pathchk: $(pathchk_OBJECTS) $(pathchk_DEPENDENCIES) @rm -f pathchk - $(LINK) $(pathchk_LDFLAGS) $(pathchk_OBJECTS) $(pathchk_LDADD) $(LIBS) + $(LINK) $(pathchk_LDFLAGS) $(pathchk_OBJECTS) $(pathchk_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) pinky: $(pinky_OBJECTS) $(pinky_DEPENDENCIES) @rm -f pinky - $(LINK) $(pinky_LDFLAGS) $(pinky_OBJECTS) $(pinky_LDADD) $(LIBS) + $(LINK) $(pinky_LDFLAGS) $(pinky_OBJECTS) $(pinky_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) printenv: $(printenv_OBJECTS) $(printenv_DEPENDENCIES) @rm -f printenv - $(LINK) $(printenv_LDFLAGS) $(printenv_OBJECTS) $(printenv_LDADD) $(LIBS) + $(LINK) $(printenv_LDFLAGS) $(printenv_OBJECTS) $(printenv_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) printf: $(printf_OBJECTS) $(printf_DEPENDENCIES) @rm -f printf - $(LINK) $(printf_LDFLAGS) $(printf_OBJECTS) $(printf_LDADD) $(LIBS) + $(LINK) $(printf_LDFLAGS) $(printf_OBJECTS) $(printf_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) pwd: $(pwd_OBJECTS) $(pwd_DEPENDENCIES) @rm -f pwd - $(LINK) $(pwd_LDFLAGS) $(pwd_OBJECTS) $(pwd_LDADD) $(LIBS) + $(LINK) $(pwd_LDFLAGS) $(pwd_OBJECTS) $(pwd_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) seq: $(seq_OBJECTS) $(seq_DEPENDENCIES) @rm -f seq - $(LINK) $(seq_LDFLAGS) $(seq_OBJECTS) $(seq_LDADD) $(LIBS) + $(LINK) $(seq_LDFLAGS) $(seq_OBJECTS) $(seq_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) sleep: $(sleep_OBJECTS) $(sleep_DEPENDENCIES) @rm -f sleep - $(LINK) $(sleep_LDFLAGS) $(sleep_OBJECTS) $(sleep_LDADD) $(LIBS) + $(LINK) $(sleep_LDFLAGS) $(sleep_OBJECTS) $(sleep_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) stty: $(stty_OBJECTS) $(stty_DEPENDENCIES) @rm -f stty - $(LINK) $(stty_LDFLAGS) $(stty_OBJECTS) $(stty_LDADD) $(LIBS) + $(LINK) $(stty_LDFLAGS) $(stty_OBJECTS) $(stty_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) su: $(su_OBJECTS) $(su_DEPENDENCIES) @rm -f su - $(LINK) $(su_LDFLAGS) $(su_OBJECTS) $(su_LDADD) $(LIBS) + $(LINK) $(su_LDFLAGS) $(su_OBJECTS) $(su_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) tee: $(tee_OBJECTS) $(tee_DEPENDENCIES) @rm -f tee - $(LINK) $(tee_LDFLAGS) $(tee_OBJECTS) $(tee_LDADD) $(LIBS) + $(LINK) $(tee_LDFLAGS) $(tee_OBJECTS) $(tee_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) test: $(test_OBJECTS) $(test_DEPENDENCIES) @rm -f test - $(LINK) $(test_LDFLAGS) $(test_OBJECTS) $(test_LDADD) $(LIBS) + $(LINK) $(test_LDFLAGS) $(test_OBJECTS) $(test_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) true: $(true_OBJECTS) $(true_DEPENDENCIES) @rm -f true - $(LINK) $(true_LDFLAGS) $(true_OBJECTS) $(true_LDADD) $(LIBS) + $(LINK) $(true_LDFLAGS) $(true_OBJECTS) $(true_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) tty: $(tty_OBJECTS) $(tty_DEPENDENCIES) @rm -f tty - $(LINK) $(tty_LDFLAGS) $(tty_OBJECTS) $(tty_LDADD) $(LIBS) + $(LINK) $(tty_LDFLAGS) $(tty_OBJECTS) $(tty_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) uname: $(uname_OBJECTS) $(uname_DEPENDENCIES) @rm -f uname - $(LINK) $(uname_LDFLAGS) $(uname_OBJECTS) $(uname_LDADD) $(LIBS) + $(LINK) $(uname_LDFLAGS) $(uname_OBJECTS) $(uname_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) uptime: $(uptime_OBJECTS) $(uptime_DEPENDENCIES) @rm -f uptime - $(LINK) $(uptime_LDFLAGS) $(uptime_OBJECTS) $(uptime_LDADD) $(LIBS) + $(LINK) $(uptime_LDFLAGS) $(uptime_OBJECTS) $(uptime_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) users: $(users_OBJECTS) $(users_DEPENDENCIES) @rm -f users - $(LINK) $(users_LDFLAGS) $(users_OBJECTS) $(users_LDADD) $(LIBS) + $(LINK) $(users_LDFLAGS) $(users_OBJECTS) $(users_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) who: $(who_OBJECTS) $(who_DEPENDENCIES) @rm -f who - $(LINK) $(who_LDFLAGS) $(who_OBJECTS) $(who_LDADD) $(LIBS) + $(LINK) $(who_LDFLAGS) $(who_OBJECTS) $(who_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) whoami: $(whoami_OBJECTS) $(whoami_DEPENDENCIES) @rm -f whoami - $(LINK) $(whoami_LDFLAGS) $(whoami_OBJECTS) $(whoami_LDADD) $(LIBS) + $(LINK) $(whoami_LDFLAGS) $(whoami_OBJECTS) $(whoami_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) yes: $(yes_OBJECTS) $(yes_DEPENDENCIES) @rm -f yes - $(LINK) $(yes_LDFLAGS) $(yes_OBJECTS) $(yes_LDADD) $(LIBS) + $(LINK) $(yes_LDFLAGS) $(yes_OBJECTS) $(yes_LDADD) $(LIBS) $(NLIBS) $(KERNLIBS) install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) diff -urN shellutils-2.0/src/nice.c shellutils-2.0-eo/src/nice.c --- shellutils-2.0/src/nice.c Mon Apr 26 04:17:07 1999 +++ shellutils-2.0-eo/src/nice.c Wed Jun 18 21:43:30 2003 @@ -44,6 +44,10 @@ # define GET_PRIORITY() getpriority (PRIO_PROCESS, 0) #endif +#ifdef EOTA +#define PRIO_PROCESS 0 +#endif /* EOTA */ + static int isinteger PARAMS ((char *s)); /* The name this program was run with. */ diff -urN shellutils-2.0/src/pathchk.c shellutils-2.0-eo/src/pathchk.c --- shellutils-2.0/src/pathchk.c Wed Mar 31 14:32:02 1999 +++ shellutils-2.0-eo/src/pathchk.c Wed Jun 18 21:43:30 2003 @@ -47,6 +47,10 @@ #include "error.h" #include "long-options.h" +#ifdef EOTA +#define EACCES 13 +#endif /* EOTA */ + /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "pathchk"