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

Last change on this file since 2247 was 2245, checked in by bird, 20 years ago

UniStrFromUcs added and UniStrToUcs to uconv.h.
Added UniStrFromUcs, UniStrToUcs, UniMalloc and UniFree to unicode.imp.

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