source: trunk/src/emx/ChangeLog.LIBC@ 2264

Last change on this file since 2264 was 2263, checked in by bird, 20 years ago

Changed version number back to 3.3.5 / 0.6 rc1.

  • Property cvs2svn:cvs-rev set to 1.109
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 22.8 KB
Line 
1/* $Id: ChangeLog.LIBC 2263 2005-07-18 01:45:07Z bird $ */
2
3TODO: open replace on RAMFS fails with error 32!
4
52005-07-17: knut st. osmundsen <bird-gccos2-spam@anduin.net>
6 - libc:
7 o LIBC_ASSERT*() are for internal libc errors, LIBCLOG_ERROR*() are
8 for user related error. Big code adjustements.
9 o Fixed a few smaller issues.
10 o Started fixing exec() backend.
11 o Fixed some more mktime / localtime bugs.
12 o Fixed crash on simple LIBC_ASSERT() caused by NULL format string.
13 o Generate device numbers for devices and pipes too.
14 o Fixed mixup of Dev and Inode during filehandle inheritance.
15 o Fixed __dup and __dup2 bug in relation to the FD_CLOEXEC clearing.
16 o Fixed bug in codepage normalization during setlocale().
17 o Fixed bug in regex where the lock was overwritten after initialization.
18 o Switch the glibc locks to smutex to avoid leaking event semaphores.
19 o Added _smutex_try_request().
20 o Fixed __libc_back_fsResolve to always set fInUnixTree so the result can
21 be adjusted correctly on failure as well.
22 - version.smak:
23 o Changed version number back to 3.3.5 / 0.6 rc1.
24
252005-07-11: knut st. osmundsen <bird-gccos2-spam@anduin.net>
26 - libos2:
27 o UniStrFromUcs added and UniStrToUcs to uconv.h.
28 Added UniStrFromUcs, UniStrToUcs, UniMalloc and UniFree to unicode.imp.
29
302005-07-10: knut st. osmundsen <bird-gccos2-spam@anduin.net>
31 - libc:
32 o Replaced BSD regex with the new GLIBC implementation.
33 o Fixed two bad bugs in the handling of the list of free
34 SPM notification structures.
35 o Moved the codeset standardization up a bit so nl_langinfo
36 and setlocale reports the same codeset.
37
382005-07-06: knut st. osmundsen <bird-gccos2-spam@anduin.net>
39 - libc:
40 o Changed utimes() to allow NULL pointer parameter.
41 Please note that BSD will crash in if you try it there.
42 o Renamed the BSD setmode to bsd_setmode and put back the
43 PC setmode.
44
452005-07-05: knut st. osmundsen <bird-gccos2-spam@anduin.net>
46 - libc:
47 o Fixed spawn/fork + fork() + exec/spawn/fork in the child.
48 o Kill any known decentants to prevent them from being
49 adopted by our parent. (On UNIX processes begin made
50 orphants are adopted and killed by the init process.)
51 o Added signal handler types for POSIX, BSD and GNU conformance.
52 o Reap embryos when the waiter thread is querying spm about
53 the death certificate. This, together with a tiny fix
54 in __spawnve() cures the bad spm process leaks when spawning
55 non-libc processes seen with make when building libc.
56
572005-07-04: knut st. osmundsen <bird-gccos2-spam@anduin.net>
58 - libc:
59 o Added the BSD optreset global to getopt.
60 o Changed PC setmode to _setmode. As it collides with a BSD 4.4. interface.
61 o Added the BSD 4.4. setmode/getmode functions from FreeBSD.
62 o Added getsid and getpgid, correcting the getpgrp implementation.
63 o Added/replaced setbuf, setbuffer and setlinebuf from BSD.
64
652005-07-03: knut st. osmundsen <bird-gccos2-spam@anduin.net>
66 - libc:
67 o Collected the different panic routines into one single routine
68 in the backend, __libc_Back_panic[V](). The routine supports
69 very simple printf like message formatting. By default it wil
70 dump any available registers and attempt dumping the process
71 before killing it. This behaviour can be configured with the
72 env var.: LIBC_PANIC=[nodump][terse][quiet][breakpoint]
73
742005-07-02: knut st. osmundsen <bird-gccos2-spam@anduin.net>
75 - libc:
76 o Added obstack.h and it's implementation from GLIBC.
77 o malloc and realloc must set errno to ENOMEM on failure.
78 o Fixed assertion during realloc(p, -256) to return failure
79 instead. Added a few more overflow checks.
80 o Added %m (GLIBC extension) to the printf familiy. %m means
81 priting strerror(errno), it takes no arguments.
82 o Fixed serveral bugs in the C/POSIX locale
83 o Implemented the LC_MESSAGES locale.
84 o Fixed mixup in fts.c port.
85 o Replaced the EMX ftw with the BSD one so we implement the SuS specs.
86 o Clear FD_CLOEXEC on the handle returned by dup, dup2 and fcntl(F_DUPFD,,).
87 o Fixed a buffer size validation bug in the backend for getcwd and
88 friends. Was requiring a byte to much.
89 o Updated some TCPIP headers with GLIBC __USE_MISC #includes. (more to go)
90 o sys/fcntl.h shall include sys/stat.h in XSI mode.
91 o Added stpncpy from GLIBC.
92 o Added sys/builtin.h to sys/smutex.h.
93 o Updated features.h and sys/gnu/cdefs.h with more recent versions from cvs.
94 o Ported from GLIBC 2.3.x CVS.
95 o Fixed some waitid() and waitpid() problems related to stopping and resuming children.
96 o Updated argz.h because of bustage caused by new cdefs.h (THROW).
97 - libcrypt:
98 o Created stub library.
99 - version.smak, libc.smak:
100 o Back to betas, beta6 now.
101
1022005-07-01: knut st. osmundsen <bird-gccos2-spam@anduin.net>
103 - libc:
104 o Made isinf[lf] return -1 for negative infinity like GLIBC does.
105 o Added prototypes for nan[lf] to math.h, gcc inlines these.
106 o Ported GLIBC argp and getopt (argp requires the GLIBC one).
107 This means no optreset anylonger.
108 o Some corrections / hacks in the weak_alias departement.
109 o Shopped missing math stuff from GLIBC.
110 o Added fpu_control.h, ieee754.h and endian.h from the GLIBC tradition.
111
1122005-06-30: knut st. osmundsen <bird-gccos2-spam@anduin.net>
113 - libc:
114 o Added fwide() (dummy until LIBC07).
115 o Renamed struct _FILE to struct __sFILE to match BSD.
116 o Added wait.h for GLIBC compatability, content is #include <sys/wait.h>.
117 o Added _D_EXACT_NAMLEN and _D_ALLOC_NAMLEN macros to sys/dirent.h to
118 make GLIBC code happy.
119 o Added REG_NOERROR to regex.h to make GLIBC code happy.
120 o The three default heap handles can be duplicates of one another, this
121 could cause deadlocks in certain cases usually involing tiled memory.
122 o Added asprintf() and vasprintf().
123 o Added get_current_dir_name() (GLIBC extension).
124 o Added the strdupa() and strndupa() GLIBC extensions. These are macros
125 use alloca() to allocate the memory for the string.
126 o Added the getdelim() and getline() GLIBC extensions.
127 o Added getlogin_r() (still just a fake).
128 o Added TEMP_FAILURE_RETRY() macro to unistd.h. This is yet another GLIBC hack.
129
1302005-06-29: knut st. osmundsen <bird-gccos2-spam@anduin.net>
131 - *:
132 o Fixed stack alignment, it must be 16 bytes not 4!
133 o Fixed bustage caused by the include cleanup.
134 - libc:
135 o Added ieeefp.h and functions from FreeBSD - this is
136 the SysV/386 FP control interface. (inline only)
137 o Added fgets_unlocked and gets_unlocked.
138
1392005-06-28: knut st. osmundsen <bird-gccos2-spam@anduin.net>
140 - *:
141 o Released v0.6 beta 5.
142 o Changed versions to v0.6 rc1.
143 o Created the libc06b5 forwarder dll.
144 - libc:
145 o Added _NSIG and making NSIG and _NSIG equal to SIGRTMAX + 1.
146 o Added memrawchr and strchrnul from glibc, enabling us to shop .S
147 files from glibc at the same time.
148 o On glibc lot's of limits.h stuff is included from direct.h because of
149 need for NAME_MAX, let's do something similar.
150 o Corrected MAXNAMLEN / d_name field length.
151
1522005-06-27: knut st. osmundsen <bird-gccos2-spam@anduin.net>
153 - emxomfld, ld:
154 o Generate .def-file for dlls without one. (This only makes sense for
155 emxomfld since ld doesn't implement __declspec(dllexport) yet, but
156 anyway.)
157 - emxomf, emxomfld:
158 o Kicked out all the old weak handling (from early 3.2.2 alphas).
159
1602005-06-26: knut st. osmundsen <bird-gccos2-spam@anduin.net>
161 - libc:
162 o Added [__]isinf[fl] which seems to have been mislaid during the
163 math source import.
164 o Rewrote the libcXXXX.dll install rule to not play with emxload since
165 emxload sticks around when first loaded.
166 o Made unsetenv() cause tzset reload just like putenv() and setenv().
167 o Changed putenv() behaviour for removal (no '=' in input) to be identical
168 to unsetenv(). This solves duplicate variable testcase.
169 o Changed filestreams opened for both reading and writing to switch
170 more willingly between read and write mode.
171 o Made sscan() return EOF on EOF.
172 o Made sscan() skip blanks in input for '%%'.
173 o Implemented the stdio_unlocked stuff with BSD and GLIBC extension.
174 TODO: Require a new locktype which support recursive usage! Currently
175 a hack using 8 free flag bits is used.
176 o Corrected realpath() behaviour to return the path up to the failure
177 point on error. _realrealpath() also does this now.
178 (This also saves us a temp buffer and a copy of the result.)
179 o Fixed a bug in the handling of ".." in the path resolver.
180 o Extended that path resolver to check the directoryness of the input
181 according to flags and any trailing slashes.
182 o Change the path resolver to be very strict about UNC - UNC have exactly
183 two slashes at the start of the path.
184
1852005-06-25: knut st. osmundsen <bird-gccos2-spam@anduin.net>
186 - libc:
187 o Fixed SIGINT and similar issues with fork().
188 TODO: LIBC signals depending on 16-bit OS/2 signals will
189 still cause trouble, this needs fixing.
190 o Extended the fmutex error message.
191 o Fixed regression in the fmutex must completion code (bad fs handling).
192
1932005-06-23: knut st. osmundsen <bird-gccos2-spam@anduin.net>
194 - libc:
195 o Fixed some more incorrectness of the 'C' locale, it only
196 defines the first 128 chars.
197 o Build hack for math.h.
198 o Updated sys/stat.h, sys/resource.h and sys/_types.h to
199 FreeBSD 5.3 level.
200 o btowc(): WEOF is 32-bit, wchar_t is 16.
201 o *printf(): wide char support.
202 o sysctl(): Changed the boottime alogrithm.
203 o strxfrm(): Corrected the return values.
204 o __ftime(): Corrected regression causing the time to be 35 years wrong.
205 o strftime(): Added C99 %F.
206 o strptime(): Fixed a few parsing and calculation bugs.
207
2082005-06-19: knut st. osmundsen <bird-gccos2-spam@anduin.net>
209 - libc:
210 o File resize optimization: The JFS, HPFS and probably NET
211 will never return space which isn't zeroed when expanding
212 a file. Associate a file system information object with the
213 filehandles to keep track of such features. This also fixes
214 the fsStatFH() implementation trouble.
215 This attribute doesn't apply to CDFS. While RAMFS fails
216 the test, it zeros at open but not at setfilesize.
217 o Fixed invalid inode and dev numbers for new files, was passing
218 the wrong path around.
219
2202005-06-13: knut st. osmundsen <bird-gccos2-spam@anduin.net>
221 - libc:
222 o Auto init fmutexes.
223 o Fixed potential deadlock the first time a must-complete
224 fmutex was entered.
225 o Replaced mktemp and mkstemp with BSD versions. Also adding
226 mkstemps, mkdtemp, arc4random, arc4random_addrandom and
227 arc4random_stir.
228 o Limited the namespace pollution caused by machine/param.h
229 (included by sys/param.h which is used by lot's of tcpip headers).
230 Define _BSD_NAMESPACE_POLLUTION to get it all.
231 o Fixed bug in getitimer/setitmer, it didn't zero the old value struct
232 if the timer wasn't running.
233 o Fixed a bug in __ftime(), the time was jolting around.
234
2352005-06-12: knut st. osmundsen <bird-gccos2-spam@anduin.net>
236 - libc:
237 o Changed the LIBC_PATHREADWRITERS to a generic LIBC_HOOK_DLLS.
238 See src/emx/src/lib/sys/hooks.c for details.
239
2402005-06-11: knut st. osmundsen <bird-gccos2-spam@anduin.net>
241 - libc:
242 o The smallcnv stuff is gone, waste of space since we're not really into
243 static linking. Should've done this when switching to gdtoa.
244 o Ported the msun and some other math bits from current FreeBSD libc.
245 This mostly replaces the EMX math, except for some double long variants
246 and some EMX specific ones. This is a risky change, but it's needed
247 if we're gonna catch up on the C99 bits and make libstdc++ happy.
248 There are some new headers, complex.h and fenv.h being the importan ones.
249 float.h have gotten some updates while math.h is totally replaced.
250 More than 100 standard functions were added!
251 NOTE: msun is using MATH_ERREXCEPT (math_errhandling) and not
252 MATH_ERRNO for error reporting.
253 I really hope this is not gonna uncover more OS/2 387 mess.
254 o Handle .cmd, .bat, .btm and hash-bang script files if DosExecPgm()
255 fails. (I'm a little bit uncertain about argv[0], but it appears to work.)
256
2572005-06-05: knut st. osmundsen <bird-gccos2-spam@anduin.net>
258 - libc:
259 o the setitimer backend was making incorrect assumptions about the
260 HTIMER range - NULLHANDLE is valid for HTIMER. Changed it to use ~0U
261 as invalid handle. (untested)
262 o Default TCPIP mode is __USB_LIBC_TCPIP. When either TCPV40HDRS or TCPV41HDRS
263 are defined we are in strict mode and __USB_LIBC_TCPIP will not be defined.
264 - libomflib, emxomfar:
265 o Allow multiple modules by the same basename. This is not in tradition with
266 other librarians, but it solves incompatible behaviour between emxomfar and ar.
267 - ld:
268 o Avoid using alloca since we might easily run out of stack for big objects
269 with debuginfo.
270 - emxomf:
271 o Added support for new EMX a.out stab N_EXP (0x6c). This encodes export
272 definitions. (gcc can do __declspec(dllexport) now.)
273 TODO: ld needs updating, probably this is the right time to drop the
274 old ld and fixup the binutils port!
275
2762005-05-08: knut st. osmundsen <bird-gccos2-spam@anduin.net>
277 - libc:
278 o Added _getenv_[int|long|longlong]. Using this for LIBC_THREAD_MIN_STACK_SIZE.
279 o Ported the BSD SysV Semaphore module.
280 o Added a signal notification callback to the thread structure.
281 o Changed tcpip term callback to more generic exitlist callback (SPM).
282 o Ported the BSD SysV Shared Memory module.
283
2842005-05-05: knut st. osmundsen <bird-gccos2-spam@anduin.net>
285 - libc:
286 o Added fts.h and ported the BSD implementation.
287 It's not 100% correct since we're lacking fchdir and cannot open
288 directories - will update it when this is in place.
289 o Disabled the UF_ and SF_ defines in sys/stat.h since we don't have st_flags.
290 o Added mkfifo (stub).
291 o Added lutimes and futimes, replacing __utimes.
292
2932005-05-01: knut st. osmundsen <bird-gccos2-spam@anduin.net>
294 - libc:
295 o Fixed incorrect d_type returned by readdir and readdir_r.
296 o Changed chdir() to unix style, added _chdir_os2() as a backwards compatible
297 api. _chdir2() and chdir() are operating identically now.
298 o Fixed several incorrect/incomplete path resolve cases. Some causing
299 invalid ino values.
300 o Unlock the libc DLL before installing it (cp, make or someone might be using it).
301 o Unix root rewrite rule ends it's pszTo with a slash, this caused
302 two slashes and thus UNC trouble.
303 o Quick rewrite of access() (also affects eaccess()) to work in chroot environment.
304 o Added O_BINARY to all opens in bsd/db.
305
3062005-04-30: knut st. osmundsen <bird-gccos2-spam@anduin.net>
307 - libmoddef:
308 o Allow empty definition strings. (weakld failed on python _curses_m)
309 - weakld:
310 o Fixed incorrect .def-file parse error message.
311 - sys/param.h:
312 o Added MAXBSIZE, BKVASIZE and BKVAMASK which are used by some BSD tools.
313 - libc:
314 o Added fchmod and reimplemented chmod and lchmod. Still missing FS level
315 unix attribute handling, but this is a start.
316
3172005-04-25: knut st. osmundsen <bird-gccos2-spam@anduin.net>
318 - libc:
319 o Added the sysctl interface from BSD. Not all values are
320 supported, nor are we compatible with tcpip41 sysctl yet.
321
3222005-04-24: knut st. osmundsen <bird-gccos2-spam@anduin.net>
323 - libc:
324 o Fixed bug in getfsstate(). (df from coreutils works now!)
325 o Implemented process priority management. Added nice(), setpriority()
326 and getpriority() in the process.
327 o Added process enumeration and access function to sharedpm.
328
3292005-04-23: knut st. osmundsen <bird-gccos2-spam@anduin.net>
330 - emxomf:
331 o Refined the 'G' hack fixing globals in the text segment.
332 - libc:
333 o Added cs:eip to the abnormal termination message. (signals.c)
334 o Default stack size 512KB when caller specifies 0. (beginthr.c)
335 o Use the env.var. LIBC_THREAD_MIN_STACK_SIZE value as a byte count
336 specifying the minimum stack size. When not specified minium size
337 defaults to 4096. (beginthr.c)
338 o Added the libsocket and libsyslog libraries to the libc IMPORT library.
339 There are now two sets of libc_dll.a/lib libraries, one for tcpipv4 and
340 one for tcpipv41+ (default).
341 o Added nanosleep() and changed usleep() and sleep() to use it.
342 o Added wmemcpy(), wmemset(), wmemcmp(), wmemchr() and wmemmove(). (untested)
343 o Added SUN/HP/RTLinux api gethrtime() as a wrapper around the DosTmr* apis.
344 o Rewrote atexit() fixing problem with the callbacks calling exit() recursivly
345 and adding on_exit().
346 o Added stdio_ext.h and implemented __fpending() and __fbufsize().
347 (Just to make coreutils easier to port.)
348
3492005-03-23: knut st. osmundsen <bird-gccos2-spam@anduin.net>
350 - src/lib/sys/__spawnve.c:
351 o Fixed double free of pFS (should've been pSig).
352 Thanks for froloff.
353
3542005-03-19: knut st. osmundsen <bird-gccos2-spam@anduin.net>
355 - 386/builtin.h:
356 o Fixed serveral bugs in the atomic inc/dec functions.
357 Added a testcase for these.
358 - libc:
359 o Fixed various typos in the socket per process counting. Thanks to
360 nickk for point these out.
361
3622005-03-13: knut st. osmundsen <bird-gccos2-spam@anduin.net>
363 - version.smak:
364 o 6b4 -> 6b5.
365
366 - libc:
367 o Implemented socket duplication.
368 o Fixed various socket close & fork bugs.
369 o Applied parts of tcpipver patches from Lorne and Froloff.
370 o Fixed various UNC trouble reported by David.
371 o Fixed open problem in DosEx.
372 o Fixed incorrect pool allocation in DosEx.
373 o Fixed missing free pool item in DoxEx - *big* leak.
374 o Fixed TID/PID mixup when calling DosVerifyPidTid() from fmutex wait loop.
375 o Applied patch from Nickk for broken settimeofday().
376 o Moved iconv into LIBC.
377 o Ported GLIBC intl and made it a part of LIBC.
378 o Implemented -Zargs-wild and -Zargs-resp crt0 variations.
379 o Added support for single quoted arguments. (pray this doesn't screw up...)
380 o Replaced the __atod implementation with the NETLIB gdtoa implementation
381 used by BSD. (The old routine kept hitting assertions.)
382 o Created libc06a4 forwarder dll.
383
384 - libiconv, libdl, libm:
385 o Made these empty stub libraries.
386
387 - emxomf:
388 o Fixed getopt(,,"l::") problem. BSD getopt doesn't pass FLAG_PERMUTE for getopt and
389 thus it would consume the next argument unless it was an option. Using
390 getopt_long(,,"l::", NULL, NULL) solves the problem.
391
392 - testcases:
393 o Testcases for various new problems/code.
394
3952005-02-01: knut st. osmundsen <bird-gccos2-spam@anduin.net>
396 - libc:
397 o Fixed bogus bubble sort in setlocale/LC_COLLATE.
398
3992005-01-31: knut st. osmundsen <bird-gccos2-spam@anduin.net>
400 - libc:
401 o Applied readdir_r() errno fix from Lorne.
402 o Fixed lstat() backend on request from Lorne.
403
4042005-01-30: knut st. osmundsen <bird-gccos2-spam@anduin.net>
405 - libc:
406 o Applies setlocale patch from Lorne which fixes two bugs in LC_COLLATE.
407
4082005-01-28: knut st. osmundsen <bird-gccos2-spam@anduin.net>
409 - libc:
410 o Applied setlocale patch from Lorne.
411 o Faked the C99 lconv additions by copying the local ones.
412
4132005-01-16: knut st. osmundsen <bird-gccos2-spam@anduin.net>
414 - libos2:
415 o Added SafeDosStartSession from Dmitry Froloff.
416 - libc:
417 o Fixed year problem in settimeofday.
418 o Check if fxsave/fxrstor is supported before using them in fork().
419 ASSUMES cpuid eax=1 works on all targets.
420 o Implemented nl_langinfo(CODESET).
421 o Added bunch a of ASCII codeset name conversions.
422 o Fixed bug in socket inherit over exec/spawn. Thanks to Froloff.
423 o Forgot to take the signal semaphore when receiving a signal
424 from the 16bit handler. Thanks to Froloff.
425 o rmdir errno fix from Lorne.
426 o rmdir shall fail on symlink.
427 o rmdir shall return ENOTDIR if the path isn't a directory (but exists).
428 o Fixed setlocale(LC_ALL/LC_MONETARY, "C").
429 o Changed the process reaper to use internal signal api to skip some overhead.
430 o Fixed a return path from signal raise where the signal sem wasn't
431 released. (The out of queue node hang.)
432 - libsocket:
433 o os2_select: Fixed a couple of filehandle conversion bugs. Thanks to Froloff.
434 o soclose shouldn't return EBADF but ENOSOCK according to the specs.
435 - libsocket, libc:
436 o Return ENOSOCK instead of ENOSYS when attempting socket operation on filehandle.
437
438
4392005-01-??: knut st. osmundsen <bird-gccos2-spam@anduin.net>
440 - libc:
441 o Fixed problem with fork'ed children beliving they were
442 still forking after fork() returned. (DLL load issue)
443 o Fixed signal queue node leak. Thanks to Lorne.
444
4452004-12-20: knut st. osmundsen <bird-gccos2-spam@anduin.net>
446 - libc:
447 o Added inode and dev calculation for fstat and stat.
448 TODO: save unix EAs. opendir d_fileno?
449 o Ported all string/w* functions from FreeBSD except wcsxfrm.c.
450
4512004-12-12: knut st. osmundsen <bird-gccos2-spam@anduin.net>
452 - os2emx.h:
453 o Corrected define of NP_NBLK. (thanks to froloff)
454 - __mcount:
455 o Export stub in all builds but the profiling build.
456 - libdl:
457 o Removed and stubbed it (install). It's all in LIBC now.
458 TODO: make libm and libdl stubbing in LIBC!
459
4602004-12-09: knut st. osmundsen <bird-gccos2-spam@anduin.net>
461 - waitpid(), waitid(), wait(), wait4(), wait3(),
462 __libc_Back_processWait():
463 o Fixed missing WNOHANG handling.
464 Created waitpid-1.c testcase in testcase/misc for this problem.
465 o Clearified error codes ECHILD and EINVAL, use the waitpid() specs.
466
467 - ChangeLog.Libc:
468 o Created this file.
469
Note: See TracBrowser for help on using the repository browser.