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

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

o Added/replaced setbuf, setbuffer and setlinebuf with FreeBSD impls.
o Added the BSD 4.4. setmode/getmode functions from FreeBSD.

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