From 841067b45e61bb8d5a1394d8bba25db1d2a23ea0 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 21 Feb 2001 23:01:11 +0000 Subject: - fix "init" on ppc (do not use minilibc on non-i386 arch's) - fix segfault of dietlibc-linked apps (broken va_stuff in dietlibc) - cleanup of "init" --- mdk-stage1/minilibc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mdk-stage1/minilibc.h') diff --git a/mdk-stage1/minilibc.h b/mdk-stage1/minilibc.h index 8682ae3d2..f3ff9c758 100644 --- a/mdk-stage1/minilibc.h +++ b/mdk-stage1/minilibc.h @@ -109,6 +109,8 @@ static inline _syscall0(int,fork) #endif static inline _syscall0(pid_t,setsid) static inline _syscall3(int,syslog,int, type, char *, buf, int, len); +#define LINUX_REBOOT_CMD_RESTART 0x01234567 +#define reboot(x) reboot(0xfee1dead, 672274793, x) #else static inline _syscall5(int,_newselect,int,n,fd_set *,rd,fd_set *,wr,fd_set *,ex,struct timeval *,timeval); static inline _syscall3(int,write,int,fd,const char *,buf,unsigned long,count) @@ -141,3 +143,4 @@ void print_str(int fd, char * string); void print_int(int fd, int i); /* Minimum printf which handles only characters, %d's and %s's */ void printf(char * fmt, ...); + -- cgit v1.2.1