delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/02/16/14:31:00

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: Patches to DJGPP 1.09
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Tue, 16 Feb 93 10:54:28 PST
Mailer: Elm [revision: 66.25]

While porting some more FSF programs to DJGPP 1.09, I ran into a few
obscure bugs in libc.a of DJGPP.  Here are patches for those bugs.

Unofficial Patches to DJGPP 1.09
--------------------------------

1. In errno.h, EEXIST is defined to be 36, but open() returns 35 for
   EEXIST.  To fix this, I changed the value in djgpp/include/errno.h.
   After making this change, you should recompile
   djgpp/libsrc/c/gen/mktemp.c in libc.a, since it uses EEXIST.

2. The _fixpath() function, which is used internally by stat() and
   some other functions, needs to be fixed to convert to lowercase and
   to remove characters that MS-DOS will eventually ignore.  This
   fixes a bug in the inode numbers reported by stat().  To fix this,
   I changed djgpp/libsrc/c/gen/fixpath.c.

3. The gettimeofday() function didn't return the correct values in the
   tz_minuteswest and tz_dsttime fields.  To fix this, I got rid of
   djgpp/libsrc/c/sys/gettimeo.s and replaced it with
   djgpp/libsrc/c/sys/gettime_.s and djgpp/libsrc/c/sys/gettimeo.c.

4. The mkdir() function returns EACCESS (which is equal to 5) when
   there is already a directory entry with the requested name.  UNIX
   code expects to see EEXIST (which is 35).  To fix this, I modified
   djgpp/libsrc/c/sys/mkdir.s.

5. The utime() function has problems with dates between 1970 and 1980,
   because MS-DOS starts at 1980 while UNIX starts at 1970.  This
   caused dates between 1970 and 1980 to wraparound to some date far
   into the future.  To fix this, I modified
   djgpp/libsrc/c/sys/utime.c.

The appropriate patches follow, in a uuencoded zip file.
--
					Eric Backus
					ericb AT lsid DOT hp DOT com

section 1 of uuencode 5.15 of file patches.zip    by R.E.M.

begin 644 patches.zip
M4$L#!!0````(`"$03AH%J3N8(@$``-X#```*````97)R;F]H+F1I9MU1RT["
M0!1=CXG_<(R[QD++`!%V"D4;H6T`H]M"+])DF"'3J=&_=Z`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````$``````$H!``!F:7AP871H
M8RYD:6902P$"$P`4````"``K$$X:`[)>?4,!```%`@``"@`````````!````
M``#>!0``;6MD:7)S+F1I9E!+`0(3`!0````(`#(03AIO`;HZ]0```*\!```*
M``````````$``````$D'``!U=&EM96,N9&EF4$L!`A,`%`````@`;;0K&@!0
MD6"@`0``K@(```H``````````0``````9@@``&=E='1I;65?+G-02P$"$P`4
M````"`"1.2P:F7H;0XL!``#@`@``"@`````````!```````N"@``9V5T=&EM
:96\N8U!+!08`````!@`&`%(!``#A"P``````
`
end
sum -r/size 33312/4716 section (from "begin" to "end")
sum -r/size 29847/3401 entire input file

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019