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

Commit Graph

  • 419172fb0e - The destructor function invocation code no longer calls setjmp(). This is now done within stdlib_main.c prior to calling the destructor function invocation code. Olaf Barthel 2005-03-11 16:04:51 +00:00
  • f289140266 - Switched over the startup code and the library itself to use constructor/destructor functions for initialization and cleanup purposes. Olaf Barthel 2005-03-11 13:23:18 +00:00
  • b35f5e0fdb This commit was manufactured by cvs2svn to create tag 'BEFORE_CONSTRUCTOR_CHANGE'. BEFORE_CONSTRUCTOR_CHANGE Olaf Barthel 2005-03-11 11:35:32 +00:00
  • 86b7e5c429 - Introduced new constructor types and changed the overall priority order. Olaf Barthel 2005-03-11 11:35:31 +00:00
  • 42963b39c4 - Moved data out of stdlib_data.c and into the code that references or initializes it. Olaf Barthel 2005-03-11 09:37:29 +00:00
  • 678cab02fb - The macro definitions deserved better documentation. Well, they probably still do... Olaf Barthel 2005-03-10 13:58:13 +00:00
  • 59d7f8d07f - Fixed another interesting bug in the OS4 destructor code. Olaf Barthel 2005-03-10 13:30:11 +00:00
  • 9a7c8a8705 - Corrected a typo in the OS4 destructor code. Olaf Barthel 2005-03-10 13:28:05 +00:00
  • 96e74015f0 - Added S_IREAD, S_IWRITE and S_IEXEC aliases to <sys/stat.h>. Olaf Barthel 2005-03-10 11:40:57 +00:00
  • db8710d2ae - Reimplemented the constructor/destructor invocation code for GCC. Both the 68k and PowerPC platform now invoke them in the same order and the 68k code uses the designated invocation priorities. The PowerPC destructor function now sets up the exit() jmp_buf before the destructor functions are called. Olaf Barthel 2005-03-10 09:55:03 +00:00
  • 91f12dd8f0 - Reworked the constructor/destructor macros again. Olaf Barthel 2005-03-10 07:53:57 +00:00
  • d2f157b0a1 - Cleaned up the GCC constructor/destructor macros again. There is more to come. Olaf Barthel 2005-03-10 07:47:51 +00:00
  • e3e82b3657 - Thanks to Joerg Strohmayer, the GCC library build now manages to invoke the library's constructor/destructor functions in a very particular order. That way, you can use constructor/destructor functions in your own code and not have them clash with the library's own functions. Olaf Barthel 2005-03-09 21:07:25 +00:00
  • 4d3dc4a77f - The stdio destructor no longer resets the __iob pointer to NULL. This avoids trouble with destructor functions which use stdio code. Unsolved problem: the order in which destructors and constructors are called. Olaf Barthel 2005-03-09 16:56:05 +00:00
  • ee556fcb35 - Moved a few __delete_semaphore() calls into conditional compilation sections where they should have been in the first place. Olaf Barthel 2005-03-09 12:06:10 +00:00
  • cc8a8e42c0 - Moved the data declarations out of math_data.c, stat_data.c, socket_data.c, dirent_data.c and stdio_data.c and into the code that initializes them. Olaf Barthel 2005-03-09 10:48:59 +00:00
  • 0fad53e56e - Moved the CPU/FPU type tests into the respective linker libraries. Olaf Barthel 2005-03-07 16:56:36 +00:00
  • d33e3e909e - Cleaned up the 68k build makefile, so that the CPU and FPU tests and the error message display can run safely even on plain 68000 machines. This won't work for the 32 bit small data model, which implies 68020 code, but so there... Olaf Barthel 2005-03-07 14:04:09 +00:00
  • ef43011783 - Made the file descriptor checks in the fsync() and fdatasync() functions more robust. Olaf Barthel 2005-03-07 11:58:50 +00:00
  • a9c8cdc554 - Moved the Workbench console stream initialization into the initialization code for the stdin/stdout/stderr streams and out of the program parameter setup. Olaf Barthel 2005-03-07 11:16:43 +00:00
  • d370bd123b - Corrected the names of macros. Olaf Barthel 2005-03-06 09:04:44 +00:00
  • 6931123dc1 - DoTimer() now calls AllocSysObject() rather than making up a MsgPort locally. Olaf Barthel 2005-03-06 09:00:16 +00:00
  • b2ddf28fa7 - Replaced the plain text documentation with HTML versions. Olaf Barthel 2005-03-05 18:34:01 +00:00
  • 1bc19a04d3 - Fixed a compiler problem in the socket setup. Olaf Barthel 2005-03-05 17:55:26 +00:00
  • 1a0999bc1c - Feature freeze! Olaf Barthel 2005-03-05 17:16:55 +00:00
  • 1bf430d1d6 - In the thread-safe variant, the library now tries to allow multiple concurrent callers to use the socket functions. Note that this works only with the Roadshow TCP/IP stack, and the results with other TCP/IP stacks are rather unpredictable. Olaf Barthel 2005-03-04 20:08:19 +00:00
  • f2d1a3238d - Rewrote the code that allocates the file descriptor and file buffer tables so that all the memory allocations are in one place and it's possible to specify exactly how many table entries are required at a time. Olaf Barthel 2005-03-04 09:07:09 +00:00
  • 2c3bd39f71 - Added a very simple test program, just to see how much of the library it will pull in when linked. Olaf Barthel 2005-03-03 15:12:18 +00:00
  • 0deb0e3e2d - Added uname command, as contributed by Peter Bengtsson. Thank you very much! Olaf Barthel 2005-03-03 15:02:26 +00:00
  • dd380f8479 - Fixed the OS4 specific build makefile. Olaf Barthel 2005-03-03 14:46:10 +00:00
  • ec3d921f7b - Moved the signal semaphore allocation/initialization/deallocation into a dedicated module. This also has the advantage that it's harder to break code by accidentally forgetting to call InitSemaphore() after having allocated the memory for it. Olaf Barthel 2005-03-03 14:20:55 +00:00
  • ebd6cc3639 - Added the missing header files required to rebuild ftw_ftw.c and ftw_nftw.c. Olaf Barthel 2005-03-03 10:59:17 +00:00
  • 7690bb8399 - Reworked the code that handles quoting for the wildcard expansion routine. We no longer allocate memory and then modify it, but call a function for each quoted parameter which does whatever is necessary. Olaf Barthel 2005-03-03 09:32:09 +00:00
  • 2aba208878 - The lstat() code now reliably detects that it found a soft link. Olaf Barthel 2005-03-02 18:49:01 +00:00
  • 593caccb38 - Fixed the compilation problems I had introduced by mistake. Olaf Barthel 2005-03-02 14:47:10 +00:00
  • ac0cc97924 - Added atoll(), ffs(), ftw(), nftw(), lstat() and uname() code contributed by Peter Bengtsson. Thank you very much! Olaf Barthel 2005-03-02 12:57:56 +00:00
  • ef44c75126 - Cleaned up the header files some more; the POSIX stdio thread locking functions are now defined as empty macros unless __THREAD_SAFE is defined. Olaf Barthel 2005-02-28 13:42:54 +00:00
  • 9a8fe330a9 - Updated the README file to mention the PowerPC platform, the floating point support and the thread-safety. Olaf Barthel 2005-02-28 13:32:59 +00:00
  • 17d81c12c0 - The translation of Unix to Amiga path names now silently accepts absolute Amiga path names passed to it and will use them without changing them. Olaf Barthel 2005-02-28 13:32:11 +00:00
  • c799b17bb9 - Extended the thread-safety locking to the file descriptors. Olaf Barthel 2005-02-28 13:22:53 +00:00
  • 1df294c07e - The thread-safety code is now subject to conditional compilation. Both the library and the user code need to be rebuilt with the preprocessor symbol __THREAD_SAFE defined to get thread-safe code. Olaf Barthel 2005-02-28 10:07:35 +00:00
  • f51faeb168 - Added more semaphore locking around the basic stdio, memory, locale and dirent data operations. That should do it! While the library is not reentrant (this is not ixemul.library) it should be thread-safe now. Thread-safe in the sense of POSIX 1003.1c-1995. Olaf Barthel 2005-02-27 21:58:21 +00:00
  • c0c70bfd99 - Added stdio thread locking functions flockfile(), funlockfile(), and ftrylockfile(). Olaf Barthel 2005-02-27 18:09:12 +00:00
  • b10d1ad38c - The process window pointer is now restored and reset between ^C checks while wildcard patterns are expanded in the the command line. Olaf Barthel 2005-02-26 09:05:54 +00:00
  • 1550c6fef3 - When using the wildcard expansion code for command line parameters (which is by default linked in with libunix.a), regular expressions can no longer prompt dos.library requesters to appear. However, to be on the safe side, if you are expecting to pass regular expressions on the command line, do not use the wildcard expansion code such as by overriding the library symbols with dummy functions such as are used in the file "stdlib_wildcard_expand.c". Olaf Barthel 2005-02-25 10:14:22 +00:00
  • 53d99ac7a2 - Fixed a warning for a possibly uninitialized variable in the new iob hook code. Olaf Barthel 2005-02-21 16:09:44 +00:00
  • c4c25649f2 - Cosmetic changes for (hopefully) better readability. Olaf Barthel 2005-02-21 10:22:02 +00:00
  • 18f1f75479 - The lseek() function return code was not consistently treated as the then current file position. Fixed. Olaf Barthel 2005-02-20 15:46:57 +00:00
  • 410833d2ed - The buffered and unbuffered file hook code is now invoked through function pointers alone. The utility.library/CallHookPkt mechanism is no longer required. Olaf Barthel 2005-02-20 13:19:40 +00:00
  • cfa6f566db - Simplified the fcntl() code to use the varargs functions more carefully. Also, the file descriptor duplication code no longer uses a goto to deliver its result. Olaf Barthel 2005-02-20 09:03:02 +00:00
  • 99547756fe - Major, major changes! Moved most of the monolithic code out of the file descriptor hook and into the respective functions, such as dup2(), fchmod(), fchown(), fcntl(), fdatasync(), fstatfs(), fsync(), ftruncate() and lseek(). Code which is not strictly required will no longer find its way into your programs if you link with the updated library. Olaf Barthel 2005-02-18 18:53:17 +00:00
  • ea638f0970 - Moved the slash translation code around a bit more. Now ".//" comes out as "" rather than ":". Olaf Barthel 2005-02-16 14:48:17 +00:00
  • 4aa85e1d12 - Rewrote the __translate_unix_to_amiga_path_name() function to translate patterns such as "foo/bar/../../baz" properly, and to use strlen() less. Olaf Barthel 2005-02-15 17:27:22 +00:00
  • fcb8cfc0dc - Small changes to make this build properly for OS4. Olaf Barthel 2005-02-07 11:19:32 +00:00
  • 1efe5fde4d This commit was manufactured by cvs2svn to create tag 'V1_188'. V1_188 Olaf Barthel 2005-02-07 10:52:33 +00:00
  • a626336b7b - Tweaked the build makefiles to produce fewer meaningless warnings. Olaf Barthel 2005-02-07 10:52:32 +00:00
  • 07d09bb185 - Added the fsync() and fdatasync() functions and the <stdint.h> and <inttypes.h> header files contributed by Peter Bengtsson. Thank you very much! Olaf Barthel 2005-02-04 15:03:14 +00:00
  • 6ad88ff97f - The library no longer sends ACTION_DISK_INFO packets to the console handler. The side-effects were too varied and irritating after all. Olaf Barthel 2005-02-04 08:49:10 +00:00
  • 2ddfeab0cf - Added some extra documentation on the WBStartup variable. Olaf Barthel 2005-02-03 17:33:54 +00:00
  • 91028c63bc - Lost the __not_a_number and __infinity variables, including the code which initialized them. Olaf Barthel 2005-02-03 16:56:20 +00:00
  • 209884bd1f - We now allocate the AnchorPath used in the unistd_wildcard_expand.c code. Also, the contents of the AnchorPath structure are no longer modified between calls. MatchEnd() has to be sufficient. Olaf Barthel 2005-02-03 12:16:38 +00:00
  • 3548d3cf7e - We now allocate the AnchorPath used in the unistd_wildcard_expand.c code. Also, the contents of the AnchorPath structure are no longer modified between calls. MatchEnd() has to be sufficient. Olaf Barthel 2005-02-03 12:14:55 +00:00
  • 50b8b623cc - Folded duplicate code in "time_mktime.c"; also, errno is no longer modified unless the library is built with the "CHECK_FOR_NULL_POINTERS" option. Olaf Barthel 2005-01-30 16:10:59 +00:00
  • 49bc1d6b13 - Updated the ".cvsignore" file. Olaf Barthel 2005-01-30 10:23:26 +00:00
  • fce21e21d6 - The functions in stdlib.h which require a compiler that supports the "long long" data type are no longer prototyped if the library is built for SAS/C. Olaf Barthel 2005-01-30 09:48:06 +00:00
  • f8b1e7516f - Folded duplicate code stdio_init_exit.c into a common function. Olaf Barthel 2005-01-30 09:37:59 +00:00
  • 93fe7d42e6 This commit was manufactured by cvs2svn to create tag 'V1_187'. V1_187 Olaf Barthel 2005-01-29 18:22:20 +00:00
  • 8e2820e9b7 - Added the missing 'time_convert_time.c'. Olaf Barthel 2005-01-29 18:22:19 +00:00
  • ab22a23f27 - Changed the algorithm that calculates the number of days that have passed so far as used by the the __convert_time() function and the conversion code in strftime(). Olaf Barthel 2005-01-29 18:05:14 +00:00
  • 0ae8d68e64 - We also test the strftime() %U, %W and %j format specifiers. Olaf Barthel 2005-01-29 17:48:07 +00:00
  • 0b1d21471d - Plugged in a different algorithm for calculating the day of the week in strftime() and asctime_r(). This one isn't sensitive to the effects of adding/subtracting the local time zone. Olaf Barthel 2005-01-26 18:41:39 +00:00
  • 987316e638 - Added a missing file. Olaf Barthel 2005-01-26 09:24:38 +00:00
  • e8d4187ea5 - The general test program now also exercises the time conversion functions. Olaf Barthel 2005-01-25 11:21:58 +00:00
  • 003faf7a24 - mktime() is supposed to convert the time specification, given as local time, into the number of seconds since January 1st, 1970, relative to UTC. This didn't really work up until now since the time value returned was given as local time. Olaf Barthel 2005-01-25 11:21:00 +00:00
  • d1aaa84bcc - Moved the common DateStamp to time_t conversion code into a shared function. Olaf Barthel 2005-01-24 10:25:46 +00:00
  • e1476c15b3 - Added instructions for switching over an existing Amiga 68k GCC installation to use "clib2". Olaf Barthel 2005-01-20 12:47:31 +00:00
  • 17fea5626a - Added a check against DBL_EPSILON in log() and log10() in place of the check against 0 that used to be in there. Olaf Barthel 2005-01-18 20:00:08 +00:00
  • e4b70e946f - The default console output window opened when a program is launched from Workbench would open and stay open. This was not intended to happen and is a side-effect of the new stdio initialization code which checks if the stdio streams are in non-blocking mode. Fixed. Olaf Barthel 2005-01-15 08:17:10 +00:00
  • eca85e071b This commit was manufactured by cvs2svn to create tag 'V1_186'. V1_186 Olaf Barthel 2005-01-14 09:07:18 +00:00
  • 56b0a74c61 - Added a missing definition to stdio_init_exit.c which is part of the OS4 header files, but not of the older header file distributions. Olaf Barthel 2005-01-14 09:07:17 +00:00
  • d23f4318f9 - close() did not reset the non-blocking file property, as it should have. This only worked for files which were closed anyway, but not for the stdio streams. Fixed. Olaf Barthel 2005-01-14 08:36:54 +00:00
  • 23f70d0c53 - Lost some more code that is not required for AmigaOS 4.x and can be handled conveniently through conditional compilation. Olaf Barthel 2005-01-13 15:39:39 +00:00
  • c6fcede4ce - Whether or not stdio console streams are blocking or non-blocking is now determined at initialization time. The I/O mode is restored before the program exits. Previously, any changes to the I/O mode would persist. Olaf Barthel 2005-01-12 09:15:50 +00:00
  • 5801d000d4 Added -a switch to cp so that it behaves like Copy CLONE. Olaf Barthel 2005-01-10 00:56:15 +00:00
  • 619b64e6f4 - open() no longer examines a file after opening it in order to figure out whether read/write accesses are permitted. This decision is now for the file system to make. Olaf Barthel 2005-01-09 16:07:27 +00:00
  • 5191ee5660 - The V37/V40 compatibility code is no longer built for the AmigaOS4 version of the library. Olaf Barthel 2005-01-09 15:58:02 +00:00
  • 64c1175f7b - Made the <ctype.h> macros more robust. Olaf Barthel 2005-01-09 15:20:33 +00:00
  • be827762de - Added the baserel directory to the .cvsignore file. Olaf Barthel 2005-01-09 10:44:25 +00:00
  • 618299fb48 - Replaced ASSERT() macro invocation with assert() call. Olaf Barthel 2005-01-09 10:43:40 +00:00
  • fbc6d94840 - Dropped the special flag variable used by the abort() function that tracks whether or not console output is possible. We now use the global "__no_standard_io" instead. Olaf Barthel 2005-01-09 10:10:41 +00:00
  • 5cf80326bc - Removed a misplaced IsInteractive() from the stdio initialization function. Now this could have been big trouble... Olaf Barthel 2005-01-09 09:54:33 +00:00
  • e571888f4f - The "char" limits in <limits.h> are now set up according to the current compiler settings, which can either default to an unsigned or signed definition. Olaf Barthel 2005-01-09 09:40:33 +00:00
  • f519aafaca - Redirecting stderr to a file no longer has the effect of showing error messages and assertion failure notifications as requesters. The exception is in redirecting stderr to NIL: which will prompt the requester use. Olaf Barthel 2005-01-08 10:21:28 +00:00
  • c61e6cf190 This commit was manufactured by cvs2svn to create tag 'V1_185'. V1_185 Olaf Barthel 2005-01-02 09:07:22 +00:00
  • 984c6729c1 - Updated the copyright information. Olaf Barthel 2005-01-02 09:07:21 +00:00
  • 49df44872d - fwrite() now flushes the entire "buffer" for unbuffered files. The exception are "interactive" files such as console windows. For these line buffered output is used. Olaf Barthel 2004-12-27 09:15:55 +00:00
  • e77cc97daf - The data structure alignment (file I/O buffer) is now configurable at compile time. The default used to be 16 bytes, which is appropriate for the 68040/68060 but not for the PowerPC, which uses 32 or 128 bytes per cache line. Olaf Barthel 2004-12-26 13:14:47 +00:00
  • ad0880d204 - Changed the definition of alloca() for GCC, which now defaults to the built-in function. Olaf Barthel 2004-12-26 10:28:57 +00:00
  • d74535f87f - Tried to make it possible to have debug versions of the memory management code in the default link library along with the normal versions. Let's see how well this works out in the GCC version. SAS/C does not seem to like it... Olaf Barthel 2004-12-24 18:31:38 +00:00
  • 73e6ccc14e - Moved the memory initialization and cleanup functions into the malloc/free code itself and updated the alloca code to do its own data management. Olaf Barthel 2004-12-24 11:46:12 +00:00