Message-Id: Date: Fri, 3 Jul 98 14:16:57 MET DST From: Michel de Ruiter To: dj AT delorie DOT com cc: djgpp-workers AT delorie DOT com Subject: Some patches... Precedence: bulk Hi, workers, After looking a bit at the latest alpha, I have some patches to propose: ### First a small diff to correct a typing error in the docs: diff -dTru -x *.o DJLSR202/src/libc/bios/bioscom.txh /DJLSR202/src/libc/bios/bioscom.txh --- DJLSR202/src/libc/bios/bioscom.txh Thu Mar 12 22:40:04 1998 +++ /DJLSR202/src/libc/bios/bioscom.txh Sun Aug 31 13:20:22 1997 @@ -10,7 +10,7 @@ @subheading Description This function accesses the BIOS interrupt 0x14 function, serial - communication services. @code{port} should be yhthe COM port (0=COM1, + communication services. @code{port} should be the COM port (0=COM1, 1=COM2, etc). The valid values of cmd are: ### Second, may I ask why the following is not standard, because I think ### most people don't cross-compile libc: diff -dTru -x *.o DJLSR202/src/makefile.def /DJLSR202/src/makefile.def --- DJLSR202/src/makefile.def Sat May 30 18:17:16 1998 +++ /DJLSR202/src/makefile.def Fri Nov 14 21:49:48 1997 @@ -3,9 +3,9 @@ # These define the cross-to-djgpp and native programs. # For building distributed (djgpp) libraries and programs - CROSS_GCC = gcc-dos - CROSS_AR = /usr/local/i386-go32-msdos/bin/ar - CROSS_LD = /usr/local/i386-go32-msdos/bin/ld + CROSS_GCC = gcc + CROSS_AR = ar + CROSS_LD = ld CROSS_BISON = bison # For building native programs; assumes GNU versions @@ -14,7 +14,7 @@ LD = ld BISON = bison - CROSS_BUILD = 1 - #CROSS_BUILD = 0 + #CROSS_BUILD = 1 + CROSS_BUILD = 0 # You may need to replace coff-go32 with coff-i386 in lib/djgpp.djl ### Third, what are these two little files doing here? Only in DJLSR202/src/stub: a.out Only in DJLSR202/src/stub: stub.bin ### Here is another diff, I think DJ was a little too enthusiastic here: *** signal.org Sun Jun 28 21:44:26 1998 --- signal.h Fri Jul 3 04:03:52 1998 *************** *** 86,97 **** void psignal(int _sig, const char *_msg); - #define NSIG SIGMAX - - extern char *sys_siglist[]; - - void psignal(int _sig, const char *_msg); - #endif /* !_POSIX_SOURCE */ #endif /* !__STRICT_ANSI__ */ #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ --- 86,91 ---- ### Finally some fixes I made to the header files a long time ago, ### but which I never reported until now. Some may be very wrong. diff -drTc include/_ansi /DJLSR202/include/_ansi *** include/_ansi Wed Dec 7 02:02:40 1994 --- /DJLSR202/include/_ansi Sun Mar 15 21:55:02 1998 *************** *** 1,4 **** ! #ifndef __dj_include_ _h_ #define __dj_include__h_ #ifdef __cplusplus --- 1,4 ---- ! #ifndef __dj_include__h_ #define __dj_include__h_ #ifdef __cplusplus diff -drTc include/debug/_ansi /DJLSR202/include/debug/_ansi *** include/debug/_ansi Fri Apr 28 22:31:04 1995 --- /DJLSR202/include/debug/_ansi Sun Mar 15 21:55:18 1998 *************** *** 1,4 **** ! #ifndef __dj_include_debug_ _h_ #define __dj_include_debug__h_ #ifdef __cplusplus --- 1,4 ---- ! #ifndef __dj_include_debug__h_ #define __dj_include_debug__h_ #ifdef __cplusplus diff -drTc include/libc/_ansi /DJLSR202/include/libc/_ansi *** include/libc/_ansi Fri Apr 28 21:57:58 1995 --- /DJLSR202/include/libc/_ansi Sun Mar 15 21:57:32 1998 *************** *** 1,5 **** ! #ifndef __dj_include_ _h_ ! #define __dj_include__h_ #ifdef __cplusplus extern "C" { --- 1,5 ---- ! #ifndef __dj_include_libc__h_ ! #define __dj_include_libc__h_ #ifdef __cplusplus extern "C" { *************** *** 22,25 **** } #endif ! #endif /* !__dj_include__h_ */ --- 22,25 ---- } #endif ! #endif /* !__dj_include_libc__h_ */ diff -drTc include/libc/atexit.h /DJLSR202/include/libc/atexit.h *** include/libc/atexit.h Fri Apr 28 22:01:38 1995 --- /DJLSR202/include/libc/atexit.h Sun Mar 15 21:59:48 1998 *************** *** 1,6 **** /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #ifndef __dj_include_libc_atexit_h__ ! #define __dj_include_libc_dosexec_h__ #ifdef __cplusplus extern "C" { --- 1,6 ---- /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #ifndef __dj_include_libc_atexit_h__ ! #define __dj_include_libc_atexit_h__ #ifdef __cplusplus extern "C" { *************** *** 30,33 **** } #endif ! #endif /* __dj_include_libc_dosexec_h__ */ --- 30,33 ---- } #endif ! #endif /* __dj_include_libc_atexit_h__ */ diff -drTc include/netinet/_ansi /DJLSR202/include/netinet/_ansi *** include/netinet/_ansi Sun Feb 26 02:18:26 1995 --- /DJLSR202/include/netinet/_ansi Sun Mar 15 21:55:58 1998 *************** *** 1,5 **** ! #ifndef __dj_include_netinet_ _h_ ! #define __dj_include__h_ #ifdef __cplusplus extern "C" { --- 1,5 ---- ! #ifndef __dj_include_netinet__h_ ! #define __dj_include_netinet__h_ #ifdef __cplusplus extern "C" { *************** *** 22,25 **** } #endif ! #endif /* !__dj_include__h_ */ --- 22,25 ---- } #endif ! #endif /* !__dj_include_netinet__h_ */ diff -drTc include/netinet/in.h /DJLSR202/include/netinet/in.h *** include/netinet/in.h Sun Feb 26 02:20:58 1995 --- /DJLSR202/include/netinet/in.h Sun Mar 15 21:56:20 1998 *************** *** 1,6 **** /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #ifndef __dj_include_netinet_in_h_ ! #define __dj_include_in_h_ #ifdef __cplusplus extern "C" { --- 1,6 ---- /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #ifndef __dj_include_netinet_in_h_ ! #define __dj_include_netinet_in_h_ #ifdef __cplusplus extern "C" { *************** *** 43,46 **** } #endif ! #endif /* !__dj_include_in_h_ */ --- 43,46 ---- } #endif ! #endif /* !__dj_include_netinet_in_h_ */ diff -drTc include/pc.h /DJLSR202/include/pc.h *** include/pc.h Thu Jul 25 23:00:40 1996 --- /DJLSR202/include/pc.h Tue Jun 2 20:15:26 1998 *************** *** 21,29 **** void outportb (unsigned short _port, unsigned char _data); void outportw (unsigned short _port, unsigned short _data); void outportl (unsigned short _port, unsigned long _data); ! void outportsb(unsigned short _port, unsigned char *_buf, unsigned _len); ! void outportsw(unsigned short _port, unsigned short *_buf, unsigned _len); ! void outportsl(unsigned short _port, unsigned long *_buf, unsigned _len); unsigned char inp(unsigned short _port); unsigned short inpw(unsigned short _port); --- 21,29 ---- void outportb (unsigned short _port, unsigned char _data); void outportw (unsigned short _port, unsigned short _data); void outportl (unsigned short _port, unsigned long _data); ! void outportsb(unsigned short _port, const unsigned char *_buf, unsigned _len); ! void outportsw(unsigned short _port, const unsigned short *_buf, unsigned _len); ! void outportsl(unsigned short _port, const unsigned long *_buf, unsigned _len); unsigned char inp(unsigned short _port); unsigned short inpw(unsigned short _port); diff -drTc include/sys/_ansi /DJLSR202/include/sys/_ansi *** include/sys/_ansi Sat Mar 11 20:43:26 1995 --- /DJLSR202/include/sys/_ansi Sun Mar 15 21:54:58 1998 *************** *** 1,4 **** ! #ifndef __dj_include_sys_ _h_ #define __dj_include_sys__h_ #ifdef __cplusplus --- 1,4 ---- ! #ifndef __dj_include_sys__h_ #define __dj_include_sys__h_ #ifdef __cplusplus diff -drTc include/sys/wait.h /DJLSR202/include/sys/wait.h *** include/sys/wait.h Sun Sep 1 15:31:56 1996 --- /DJLSR202/include/sys/wait.h Tue Dec 9 14:01:36 1997 *************** *** 19,25 **** #define WNOHANG 1 #define WSTOPSIG(stat_val) 0 #define WTERMSIG(stat_val) ( ((stat_val) >> 8 ) & 0x3ff) ! #define WUNTRACED __DJ_pid_t #undef __DJ_pid_t --- 19,25 ---- #define WNOHANG 1 #define WSTOPSIG(stat_val) 0 #define WTERMSIG(stat_val) ( ((stat_val) >> 8 ) & 0x3ff) ! #define WUNTRACED 0 __DJ_pid_t #undef __DJ_pid_t Hope this helps. -- Groeten, Michel. http://www.cs.vu.nl/~mdruiter ____________ \ /====\ / "You know, Beavis, you need things that suck, \/ \/ to have things that are cool", Butt-Head.