1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

Commit Graph

  • cf74717ead - Added ftello() and fseeko() which both merely call the equivalent (at least for clib2) ftell() and fseek() functions, respectively. Olaf Barthel 2005-06-18 07:23:17 +00:00
  • f81dfdfca7 Added section about profiling Thomas Frieden 2005-06-15 15:23:29 +00:00
  • 196ce6e140 *** empty log message *** Thomas Frieden 2005-06-15 15:00:57 +00:00
  • 629e40475f Added profil prototype Thomas Frieden 2005-06-15 15:00:28 +00:00
  • 85e421feb8 Removed compiler warnings Thomas Frieden 2005-06-15 14:59:51 +00:00
  • 3be260b746 Added profiling support to makefile (PowerPC specific) Thomas Frieden 2005-06-15 14:59:15 +00:00
  • b78a86774c Added getopt_long Thomas Frieden 2005-06-14 15:56:57 +00:00
  • 9aba55afba Added getopt_long Thomas Frieden 2005-06-14 15:26:29 +00:00
  • 426fe0cc61 New file Thomas Frieden 2005-06-14 15:22:56 +00:00
  • 1aadee2d9d This commit was manufactured by cvs2svn to create tag 'V1_193'. V1_193 Olaf Barthel 2005-06-04 14:16:59 +00:00
  • 6a13b08f40 - Header files don't belong into the list of object files... Olaf Barthel 2005-06-04 14:16:58 +00:00
  • 59807dbff1 - Added an error/EOF check in the input drain loop. Olaf Barthel 2005-06-04 13:57:08 +00:00
  • 414e07aa20 - Integrated Peter Bengtsson's termios code. Thank you very much! I chose to add it to libunix.a rather than keeping it in a separate libtermios.a library. Olaf Barthel 2005-06-04 10:46:23 +00:00
  • 2a22c4ff0d - The scanf() family now supports character ranges for the %[ conversion. Note that this is a non-standard feature! Olaf Barthel 2005-06-03 11:12:12 +00:00
  • 576660ca0a - Added more casts for the powf() function parameters. Olaf Barthel 2005-05-30 18:28:45 +00:00
  • 5451d3a694 - Made ACrypt() compile again. Olaf Barthel 2005-05-30 14:01:20 +00:00
  • c26da2c5e8 - Updated the smakefile, so that it includes the new math object files. Olaf Barthel 2005-05-30 11:42:38 +00:00
  • c3975b1e6e - Replaced the (float) casts in strtof() with calls to powf(). Olaf Barthel 2005-05-30 09:50:43 +00:00
  • a79b05194d - Ported acosh(), acoshf(), asinh(), asinhf(), lgamma(), lgammaf(), remainder() and remainderf() for C99. Olaf Barthel 2005-05-30 08:47:41 +00:00
  • 3975d234bd - Ported cosf(), coshf(), sinf(), sinhf(), tanf(), tanhf() and hypotf() for C99. Olaf Barthel 2005-05-30 08:10:41 +00:00
  • 3c220c3939 - Implemented fmin()/fminf(), fmax()/fmaxf(), fdim()/fdimf() for C99. Olaf Barthel 2005-05-29 14:45:33 +00:00
  • 49e98713d4 - Implemented fmin()/fminf(), fmax()/fmaxf(), fdim()/fdimf() (C99). Olaf Barthel 2005-05-29 12:41:04 +00:00
  • 505c23237a - Added skeleton code for acosf(), acosh(), acoshf(), asinf(), asinh(), asinhf(), atan2f(), atanf(), atanh(), atanhf(), cbrt(), cbrtf(), ceilf(), cosf(), coshf(), erf(), erfc(), erfcf(), erff(), exp2(), exp2f(), expf(), expm1(), expm1f(), fdim(), fdimf(), floorf(), fma(), fmaf(), fmax(), fmaxf(), fmin(), fminf(), fmodf(), frexpf(), hypotf(), ilogb(), ilogbf(), ldexpf(), lgamma(), lgammaf(), log10f(), log1p(), log1pf(), log2(), log2f(), logbf(), logf(), lrint(), lrintf(), lround(), lroundf(), modff(), nearbyint(), nearbyintf(), powf(), remainder(), remainderf(), remquo(), remquof(), round(), roundf(), scalbn(), scalbnf(), sinf(), sinhf(), sqrtf(), tanf(), tanhf(), tgamma(), tgammaf(), trunc() and truncf(), to be filled in later... Olaf Barthel 2005-05-29 11:19:01 +00:00
  • ffeb475873 - Added a TODO-list which at this time only covers the missing floating point arithmetic functions. Olaf Barthel 2005-05-29 10:44:23 +00:00
  • c3a10b88b5 - Added NAN, INFINITY, FLT_EVAL_METHOD, float_t and double_t to <math.h>. Olaf Barthel 2005-05-29 10:09:55 +00:00
  • 2ced1d3293 - Modified the locale-aware isalnum(), isalpha(), iscntrl(), isdigit(), isgraph(), islower(), isprint(), ispunct(), isspace(), isupper(), isxdigit(), tolower() and toupper() functions to clamp the input parameter to the "unsigned char" range before it is submitted to the respective locale.library function. This should be in sync with what the specs demand, which state that if the input parameter is neither EOF nor in the range of an "unsigned char" variable, then the results are undefined. Olaf Barthel 2005-05-29 09:56:09 +00:00
  • fb4dae84aa - Added a couple of (float) casts. Olaf Barthel 2005-05-29 08:19:36 +00:00
  • a03ced93b0 - The record locking code in fcntl() is no longer part of the regular libc.a, but only of libunix.a. Olaf Barthel 2005-05-27 13:19:30 +00:00
  • a19d60f524 - For %C strtime() should return the century number, not the year number mod 100. Olaf Barthel 2005-05-19 13:57:53 +00:00
  • f6d20fee01 - Moved the IExec initialization in "simple_sprintf.c". Olaf Barthel 2005-05-18 07:22:52 +00:00
  • d4aa0b04af - Forgot to update the .cvsignore file to ignore the simple_sprintf test program. Olaf Barthel 2005-05-17 19:16:43 +00:00
  • df05c80c57 - Added a simple test for sprintf() which does not use any of the normal library startup code. Olaf Barthel 2005-05-17 19:15:32 +00:00
  • a1ffc20864 - Documented __strip_double_slash() and plugged in a memmove() in place of the copying loop. Olaf Barthel 2005-05-15 12:32:59 +00:00
  • 13c857ba0a - Added %D, %e, %F, %g, %G and %h for strftime(); repaired %I. Olaf Barthel 2005-05-14 14:47:46 +00:00
  • 5ecfdf33c6 - Added tests for inf/nan. Olaf Barthel 2005-05-14 10:57:43 +00:00
  • fa31c468dc - fpclassify() now returns FP_ZERO both for 0 and -0. Olaf Barthel 2005-05-14 10:52:31 +00:00
  • feb29fa334 - Enabled the C99 language option. Olaf Barthel 2005-05-12 15:07:22 +00:00
  • d0a4e057bc - Added C99 checks to "complex_headers.h". Olaf Barthel 2005-05-12 14:50:06 +00:00
  • c5087c78ce - Getting ready for the 1.192 release. Olaf Barthel 2005-05-12 14:42:32 +00:00
  • c5c6492868 - fflush() no longer calls flockfile()/funlockfile() with a NULL parameter. Olaf Barthel 2005-05-12 14:00:54 +00:00
  • 539cc3553d - Added isunordered(), isgreater(), isgreaterequal(), isless(), islessequal() and islessgreater() to <math.h> for C99. Olaf Barthel 2005-05-12 13:21:47 +00:00
  • bc65dd2877 - Added isblank(). Olaf Barthel 2005-05-11 20:15:28 +00:00
  • ec027fa510 - The strftime() %z conversion now prints the time zone difference as a "decimal" number. That is, if the difference is 5 hours and 30 minutes, then %z will now print "530" rather than "330". Olaf Barthel 2005-05-09 13:47:24 +00:00
  • 65484eac3c - Corrected the thread-safe clearerr() macro. Olaf Barthel 2005-05-08 17:02:16 +00:00
  • 2be60de3e7 - Added "fstat_stdout_test". Olaf Barthel 2005-05-08 16:27:25 +00:00
  • 89b568bcb8 - Small fixes to the scanf() family. Olaf Barthel 2005-05-08 11:27:26 +00:00
  • 2548af2b4b - Hid two more program files. Olaf Barthel 2005-05-08 11:20:49 +00:00
  • a1b39c4d01 - Added test cases for C99 format conversions. Olaf Barthel 2005-05-08 11:20:03 +00:00
  • 9e32991a6d - For the printf() "%a" conversion the exponent now comes out as a binary number rather than a decimal one. Now how odd is that? Olaf Barthel 2005-05-08 08:51:30 +00:00
  • c8d29ea9c1 - Added HUGE_VALF to <math.h>. Olaf Barthel 2005-05-07 17:04:07 +00:00
  • 28f561c61b - The printf() family now supports the %hh, %j, %t and %z modifiers and the %a/%A conversions for C99. The %j is treated like %ll, %t and %z are treated like %l. Olaf Barthel 2005-05-07 16:39:27 +00:00
  • 07056f3e26 - Plugged in the proper ISO 8601 week number calculation function. Olaf Barthel 2005-05-07 14:03:08 +00:00
  • 3bd6766484 - strftime() now ignores the E and O modifiers. Olaf Barthel 2005-05-07 13:40:19 +00:00
  • e01d58319d - Added strtof(), llabs(), lldiv(), vsscanf() and vscanf() for C99. Olaf Barthel 2005-05-07 13:21:49 +00:00
  • ec4fd3c2cb - The libunix.a flavour of system() no longer attempts to translate the name of a command unless it contains path separator characters. Olaf Barthel 2005-04-28 15:38:47 +00:00
  • df89c636db - Fixed a typo in the semaphore creation code. Ouch. Olaf Barthel 2005-04-25 15:39:56 +00:00
  • 90a192134e - If fread()/fwrite() fail to read/write any data because either the number of records or the size of each record is zero, both now call clearerr() to avoid giving the caller the wrong impression that an EOF or error occured. Olaf Barthel 2005-04-24 19:38:59 +00:00
  • 3660b26c9f - Fixed two linker errors which were caused by duplicate symbol definitions. Olaf Barthel 2005-04-24 15:27:13 +00:00
  • 9f3d5e50b4 - Fixed two linker errors which were caused by duplicate symbol definitions. Olaf Barthel 2005-04-24 14:04:36 +00:00
  • 876039440f - The record locking semaphore could wind up getting added to the public list twice. Fixed. Olaf Barthel 2005-04-24 12:19:06 +00:00
  • 0c553faff1 - Changed how errors are detected, as returned by Write(), Read() and Seek(). Seek() is particularly challenging because the value it returns might be a valid file position and not an error. Olaf Barthel 2005-04-24 09:53:12 +00:00
  • 1d611fefbe - Changed how error conditions raised by dos.library file I/O functions are detected. Olaf Barthel 2005-04-24 08:46:37 +00:00
  • a50aba0b64 - Reversed the change in rename() which enforced deletion of the target file. Olaf Barthel 2005-04-21 10:23:17 +00:00
  • 2e9ac7d003 - The Unix-like rename() now removes the target file even if that file has been protected from deletion. Olaf Barthel 2005-04-20 12:06:00 +00:00
  • 0a440c8405 - Added the two release archive build scripts. Olaf Barthel 2005-04-16 10:35:12 +00:00
  • f63a0788d5 - Fixed the startup build target directory names. Olaf Barthel 2005-04-16 10:11:26 +00:00
  • 431dd488a1 - Changed how the startup code is built for the different library flavours, and which files this involves. Olaf Barthel 2005-04-13 14:35:06 +00:00
  • 15c16efd07 - Final version bump before release. Olaf Barthel 2005-04-09 09:30:29 +00:00
  • 6e39efe7d7 - Added a hopefully enlightening comment on the subtleties of semaphore locking in the stdio_fflush.c file. Olaf Barthel 2005-04-04 11:56:26 +00:00
  • 92cc3e9a79 - The stdio locking in fcntl() wasn't working correctly. Fixed. Olaf Barthel 2005-04-04 10:10:02 +00:00
  • a18f415374 - Small tweaks to fix GCC 68k compiler warnings. Olaf Barthel 2005-04-03 10:53:24 +00:00
  • 3096691d75 - Added more code and changes contributed by Peter Bengtsson, thank you very much! This includes the following: Olaf Barthel 2005-04-03 10:22:48 +00:00
  • d5c36d66e4 - We now call IsInteractive() rather than send a type ACTION_DISK_INFO to a likely console handler file's MsgPort. Olaf Barthel 2005-04-02 18:02:54 +00:00
  • 7f9fbc453b - Invoking fstat() on what maps to a con-handler stream now produces information identifying it as a character special file. Side-effect: if the input/output went to a CON:/AUTO window, that window will pop open and stay open. Olaf Barthel 2005-04-02 13:25:55 +00:00
  • 6f010ddf87 - File descriptors produced by dup() or dup2() now work exactly like the original file descriptors they are duplicates of. I modified the function which maps file descriptor numbers to file descriptor table entries to return the table entries of the original files. Olaf Barthel 2005-04-01 18:46:37 +00:00
  • 09b52e077f - Moved the __UtilityBase/__IUtility variable declarations into a separate file. Olaf Barthel 2005-03-30 19:37:47 +00:00
  • 9c2c44b008 - raise() no longer resets the signal handler before it invokes the one currently configured. It merely blocks the delivery of the respective signal to prevent recursion. Olaf Barthel 2005-03-27 10:02:50 +00:00
  • df01f27551 - Moved the signal block mask and the signal function table out of signal_data.c and into signal_raise.c where they are actually used. This makes it possible to override the default definition of the __check_abort_enabled variable in your own programs. Olaf Barthel 2005-03-26 11:01:13 +00:00
  • 58d26ce8cb - The name of the public record locking semaphore has to be preallocated for OS4 if the AllocSysObject() function is used to create it. Olaf Barthel 2005-03-26 10:53:35 +00:00
  • b1ac45a0b9 - Updated the specs file not to reference the main.o files any more. Olaf Barthel 2005-03-26 09:15:07 +00:00
  • aafda37c84 - Ready for release... Olaf Barthel 2005-03-25 09:14:38 +00:00
  • 3eb15a612f - Oops, nearly broke fcntl() again for sockets. Olaf Barthel 2005-03-25 08:59:22 +00:00
  • 590d1b8eec - Small fixes to fcntl() and select() to cover the thread-safe fd->fd_DefaultFile == ZERO case. Olaf Barthel 2005-03-25 08:50:59 +00:00
  • 1fbe4bd0a5 - Added a description of the thread-safe stdin/stdout/stderr behaviour. Olaf Barthel 2005-03-25 08:50:10 +00:00
  • 8edfcc3f86 - Activated the dormant thread-safe standard input/output/error handling code. Olaf Barthel 2005-03-24 16:40:16 +00:00
  • a6daababe7 - The thread-safe system() call now blocks all standard I/O operations until the function has returned. Which is harsh, but there is no elegant solution to the issue of keeping the same dos.library file handles from concurrent use which SystemTagList() might just end up using. Olaf Barthel 2005-03-24 15:31:16 +00:00
  • 5695784272 - Moved stdlib_main.o into the regular lib.c, at least for the 68k build. The PowerPC build may follow later, provided I manage to get the specs file fixed. Olaf Barthel 2005-03-20 17:14:58 +00:00
  • 5eefcf4555 - Fixed the constructor/destructor invocation sequence for the SAS/C and GCC 68k library builds. Olaf Barthel 2005-03-20 12:14:09 +00:00
  • d85d6648ea - Modified the SAS/C constructor/destructor invocation sequence, now that the names of the functions assigned through the new macros are different. Olaf Barthel 2005-03-20 11:57:11 +00:00
  • c471c50784 - Turns out that the constructor/destructor calling sequence was still wrongish for the OS4 library. So I had to change it *again*. Which probably means that the 68k library will need further changes... Olaf Barthel 2005-03-20 11:18:06 +00:00
  • cd10dc9a1a - assertion failures early on during program initialization should no longer spell big trouble on account of the stdio data structures possibly not being in a well-defined and initialized state. Olaf Barthel 2005-03-19 11:06:57 +00:00
  • 7d3ea7fae6 - Moved the call chain printing out of stdlib_main.c and into separate files. Olaf Barthel 2005-03-19 10:15:56 +00:00
  • ead29c1850 - Reorganized the local header files, removing redundancies. Olaf Barthel 2005-03-18 12:38:25 +00:00
  • f492e6a6c0 - fcntl() did not work for sockets. Fixed. Olaf Barthel 2005-03-16 09:28:37 +00:00
  • dc80018239 - Re-added the long word alignment check for MC68020 I didn't commit at home. Olaf Barthel 2005-03-15 11:18:32 +00:00
  • 966851e8bd - ftruncate() ended up changing the current file position, contrary to what it is supposed to do. Fixed. Olaf Barthel 2005-03-14 10:03:06 +00:00
  • a60623bbc6 - Turns out that the 68k GCC port does not sort constructor and destructor functions in any way at all. I reimplemented the entire library constructor/destructor functionality to use the same approach as libnix. Olaf Barthel 2005-03-12 14:10:09 +00:00
  • d8bf652ae6 - Added a table size check to guard against accesses beyond the last file descriptor. Olaf Barthel 2005-03-12 09:49:47 +00:00
  • b048323196 - Aliases of file descriptors are now using the signal semaphore of the original file descriptor. Olaf Barthel 2005-03-12 09:43:48 +00:00
  • 08cc54d3fa - Fixed the SAS/C destructor function prototypes and verified that the constructors/destructors are called in the proper order, too. Olaf Barthel 2005-03-11 18:27:27 +00:00