]> pd.if.org Git - pdclib/log
pdclib
11 years agoImport dlmalloc (public domain) as a malloc implementation. Add stub opt/notime
Owen Shepherd [Fri, 3 Aug 2012 18:02:23 +0000 (19:02 +0100)]
Import dlmalloc (public domain) as a malloc implementation. Add stub opt/notime
implementation of time.h for platforms with no clock (which only implements the
time(time_t*) function) to support this.

(Note: Builds, but implementation as of yet untested)

11 years agoRemove these 4 files now they have moved to opt/. hg dropped this from the
Owen Shepherd [Thu, 2 Aug 2012 20:49:50 +0000 (21:49 +0100)]
Remove these 4 files now they have moved to opt/. hg dropped this from the
previous changeset

11 years ago* Change the style of inclusion of the internal/ headers. Modern preprocessors
Owen Shepherd [Thu, 2 Aug 2012 20:48:01 +0000 (21:48 +0100)]
* Change the style of inclusion of the internal/ headers. Modern preprocessors
  all detect the header guards and know not to include anyhow. The old style may
  have actually been counterproductive
* Make the built library be standard independent (i.e. the library build is
  independent of _PDCLIB_C_VERSION/__STDC_VERSION__/_PDCLIB_CXX_VERSION
  /__cplusplus.
* <threads.h> from C11. A bit off of the track of C99 support (which is still a
  higher priority goal), but solid implementation of many C99 functions on many
  real platforms will need proper thread support. <stdio.h> support to come.
  This is a stub implementation.
* Move malloc/free/realloc etc to opt/malloc-solar, in preparation for support
  of other memory allocators. On the cards are at least ptmalloc3 (BSD) and
  dlmalloc (public domain) as options.
* New build system (See CoreMakefile.mk). Not ready yet; but its coming. This
  doesn't change the project dependencies - you still only need GNU make.

This is a large bundle of changes - most of them are as a result of implementing
PDClib into my system, so they're mostly "changes I was doing" that have got
wrapped up together. Hopefully, now that things are together, future changesets
should be better factored.

Special thanks go to Martin "Solar" Baute for the work he has put in on this
code over many years.

11 years agoupdate tags
convert-repo [Mon, 23 Jul 2012 16:08:39 +0000 (16:08 +0000)]
update tags

12 years agoImproved by Caleb1994 of osdev.org.
solar [Sun, 9 Oct 2011 11:17:58 +0000 (11:17 +0000)]
Improved by Caleb1994 of osdev.org.

12 years agoFixing #47 (*snprint() crash).
solar [Mon, 13 Jun 2011 13:40:45 +0000 (13:40 +0000)]
Fixing #47 (*snprint() crash).

12 years agoAdded LC_* definitions.
solar [Mon, 13 Jun 2011 10:13:23 +0000 (10:13 +0000)]
Added LC_* definitions.

12 years agoFixes #45.
solar [Mon, 13 Jun 2011 10:03:13 +0000 (10:03 +0000)]
Fixes #45.

13 years agoFixed prototype warnings.
solar [Thu, 17 Mar 2011 05:59:31 +0000 (05:59 +0000)]
Fixed prototype warnings.

13 years agofind did not match on symlinks.
solar [Thu, 17 Mar 2011 05:47:37 +0000 (05:47 +0000)]
find did not match on symlinks.

13 years agoBackported improvements to Makefile from OSDev.
solar [Thu, 17 Mar 2011 05:28:07 +0000 (05:28 +0000)]
Backported improvements to Makefile from OSDev.

13 years agoFix for #42 - free( NULL ) must not fail.
solar [Sun, 20 Feb 2011 20:48:48 +0000 (20:48 +0000)]
Fix for #42 - free( NULL ) must not fail.

13 years agoIt seems I have to review the list of warning options if I missed this one.
solar [Tue, 11 Jan 2011 05:52:32 +0000 (05:52 +0000)]
It seems I have to review the list of warning options if I missed this one.

13 years agoFix for #41.
solar [Tue, 11 Jan 2011 05:49:19 +0000 (05:49 +0000)]
Fix for #41.

13 years agoI am not sure I understood strcoll() and strxfrm() correctly, but this is it for...
solar [Fri, 31 Dec 2010 08:47:37 +0000 (08:47 +0000)]
I am not sure I understood strcoll() and strxfrm() correctly, but this is it for now.

13 years agoLanguage.
solar [Thu, 30 Dec 2010 22:46:02 +0000 (22:46 +0000)]
Language.

13 years agoAddressed ticket #40 (non-standard errno values).
solar [Thu, 30 Dec 2010 22:43:20 +0000 (22:43 +0000)]
Addressed ticket #40 (non-standard errno values).

13 years agolocaleconv, and setlocale (C locale only)
solar [Wed, 29 Dec 2010 13:31:51 +0000 (13:31 +0000)]
localeconv, and setlocale (C locale only)

13 years agoMoved ctype info into struct lconv.
solar [Wed, 29 Dec 2010 13:19:53 +0000 (13:19 +0000)]
Moved ctype info into struct lconv.

13 years agoctype
solar [Wed, 29 Dec 2010 06:25:59 +0000 (06:25 +0000)]
ctype

13 years agoForgot parameter type.
solar [Thu, 23 Dec 2010 06:16:56 +0000 (06:16 +0000)]
Forgot parameter type.

13 years agoStarted out on v0.6.
solar [Thu, 23 Dec 2010 06:15:28 +0000 (06:15 +0000)]
Started out on v0.6.

13 years agoComment on v0.5 release origin/tags/v0.5 v0.5
solar [Wed, 22 Dec 2010 21:44:28 +0000 (21:44 +0000)]
Comment on v0.5 release

13 years agoBasic tests for %c, %s, %[ and %p.
solar [Mon, 20 Dec 2010 07:15:23 +0000 (07:15 +0000)]
Basic tests for %c, %s, %[ and %p.

13 years agoSome testcases for scanf(). Fixed bug with %*... . Fixed artifact in Makefile.
solar [Mon, 20 Dec 2010 05:17:35 +0000 (05:17 +0000)]
Some testcases for scanf(). Fixed bug with %*... . Fixed artifact in Makefile.

13 years agoMoved the macro magic into the common header.
solar [Fri, 17 Dec 2010 06:05:00 +0000 (06:05 +0000)]
Moved the macro magic into the common header.

13 years agoCleaning up TODOs.
solar [Thu, 16 Dec 2010 07:05:57 +0000 (07:05 +0000)]
Cleaning up TODOs.

13 years agoCleaning up TODOs.
solar [Thu, 16 Dec 2010 06:00:24 +0000 (06:00 +0000)]
Cleaning up TODOs.

13 years agoMore cleaning up.
solar [Wed, 15 Dec 2010 06:35:38 +0000 (06:35 +0000)]
More cleaning up.

13 years agoTightening the code a bit.
solar [Tue, 14 Dec 2010 12:09:18 +0000 (12:09 +0000)]
Tightening the code a bit.

13 years agoFixed safeguard calculation in ftell().
solar [Tue, 14 Dec 2010 06:16:35 +0000 (06:16 +0000)]
Fixed safeguard calculation in ftell().

13 years agoNine-to-five job calling, leaving this intermediate.
solar [Mon, 13 Dec 2010 07:40:43 +0000 (07:40 +0000)]
Nine-to-five job calling, leaving this intermediate.

13 years agoWhoops. That wouldn't have worked...
solar [Sun, 12 Dec 2010 21:32:44 +0000 (21:32 +0000)]
Whoops. That wouldn't have worked...

13 years agoEOL handling is for text mode conversion.
solar [Sat, 11 Dec 2010 09:16:11 +0000 (09:16 +0000)]
EOL handling is for text mode conversion.

13 years agoWe will cross that bridge when we come to it.
solar [Sat, 11 Dec 2010 09:14:39 +0000 (09:14 +0000)]
We will cross that bridge when we come to it.

13 years agoReplaced the dumb PATCHFILES with a smart for-find.
solar [Sat, 11 Dec 2010 09:12:24 +0000 (09:12 +0000)]
Replaced the dumb PATCHFILES with a smart for-find.

13 years agoAdded testdriver for signals, make links now including signal.h
solar [Fri, 10 Dec 2010 07:41:09 +0000 (07:41 +0000)]
Added testdriver for signals, make links now including signal.h

13 years agoAdjusted Makefile and svn:ignore for signal/.
solar [Fri, 10 Dec 2010 06:26:29 +0000 (06:26 +0000)]
Adjusted Makefile and svn:ignore for signal/.

13 years agoCompleted <signal.h>, and moved into platform.
solar [Fri, 10 Dec 2010 06:21:48 +0000 (06:21 +0000)]
Completed <signal.h>, and moved into platform.

13 years agoPut printf() / scanf() test macros in seperate header.
solar [Thu, 9 Dec 2010 07:14:21 +0000 (07:14 +0000)]
Put printf() / scanf() test macros in seperate header.

13 years agoPreliminary signal handling.
solar [Thu, 9 Dec 2010 07:13:57 +0000 (07:13 +0000)]
Preliminary signal handling.

13 years agoSVN properties cleanup.
solar [Thu, 9 Dec 2010 05:18:55 +0000 (05:18 +0000)]
SVN properties cleanup.

13 years agoReworked scanf() testing. General cleanups.
solar [Wed, 8 Dec 2010 05:53:09 +0000 (05:53 +0000)]
Reworked scanf() testing. General cleanups.

13 years agoTest drivers for fgetpos, fsetpos, and perror. Cannot really test closeall().
solar [Mon, 6 Dec 2010 21:21:45 +0000 (21:21 +0000)]
Test drivers for fgetpos, fsetpos, and perror. Cannot really test closeall().

13 years agofseek() test driver.
solar [Mon, 6 Dec 2010 19:54:29 +0000 (19:54 +0000)]
fseek() test driver.

13 years agoTest driver (and much-needed fixes) to fgets().
solar [Fri, 3 Dec 2010 05:59:00 +0000 (05:59 +0000)]
Test driver (and much-needed fixes) to fgets().

13 years agoTestdriver for gets(). Turns out fseek() was not tested yet.
solar [Thu, 2 Dec 2010 21:16:06 +0000 (21:16 +0000)]
Testdriver for gets(). Turns out fseek() was not tested yet.

13 years agoTestdriver for tmpfile().
solar [Thu, 2 Dec 2010 07:36:59 +0000 (07:36 +0000)]
Testdriver for tmpfile().

13 years agoTest driver for freopen().
solar [Thu, 2 Dec 2010 07:19:35 +0000 (07:19 +0000)]
Test driver for freopen().

13 years agoUsing constants for testfile names
solar [Thu, 2 Dec 2010 06:20:16 +0000 (06:20 +0000)]
Using constants for testfile names

13 years agoSwitched to tmpfile() where appropriate.
solar [Wed, 1 Dec 2010 22:01:42 +0000 (22:01 +0000)]
Switched to tmpfile() where appropriate.

13 years agoSome cleanups and corrected typos.
solar [Wed, 1 Dec 2010 21:34:16 +0000 (21:34 +0000)]
Some cleanups and corrected typos.

13 years ago*Much* better.
solar [Wed, 1 Dec 2010 21:05:43 +0000 (21:05 +0000)]
*Much* better.

13 years agoBetter error reporting on printf's.
solar [Tue, 30 Nov 2010 23:56:38 +0000 (23:56 +0000)]
Better error reporting on printf's.

13 years agoStatus review.
solar [Sun, 21 Nov 2010 12:17:15 +0000 (12:17 +0000)]
Status review.

13 years agoFixed broken filename handling in freopen().
solar [Sat, 20 Nov 2010 08:53:56 +0000 (08:53 +0000)]
Fixed broken filename handling in freopen().

13 years agoBug #39: fclose( stdout ) corrupts memory
solar [Sat, 20 Nov 2010 06:01:42 +0000 (06:01 +0000)]
Bug #39: fclose( stdout ) corrupts memory

13 years agoThanks where thanks is due.
solar [Fri, 19 Nov 2010 05:36:52 +0000 (05:36 +0000)]
Thanks where thanks is due.

13 years agoFixing bug #37 and #38.
solar [Fri, 19 Nov 2010 05:33:50 +0000 (05:33 +0000)]
Fixing bug #37 and #38.

13 years agoprintf / scanf macros in inttypes.h.
solar [Tue, 9 Nov 2010 06:52:32 +0000 (06:52 +0000)]
printf / scanf macros in inttypes.h.

13 years ago(no commit message)
solar [Tue, 2 Nov 2010 20:54:11 +0000 (20:54 +0000)]

13 years agoStreamlined printf testing.
solar [Fri, 1 Oct 2010 18:28:28 +0000 (18:28 +0000)]
Streamlined printf testing.

13 years agoImproved reporting by printf tests.
solar [Sun, 26 Sep 2010 15:40:37 +0000 (15:40 +0000)]
Improved reporting by printf tests.

13 years agoProper handling of dependencies. (Related to #26.)
solar [Sun, 26 Sep 2010 08:36:44 +0000 (08:36 +0000)]
Proper handling of dependencies. (Related to #26.)

13 years agoProper handling of dependencies. (Related to #26.)
solar [Sun, 26 Sep 2010 07:11:41 +0000 (07:11 +0000)]
Proper handling of dependencies. (Related to #26.)

13 years agoProper handling of dependencies. (Related to #26.)
solar [Sun, 26 Sep 2010 06:30:44 +0000 (06:30 +0000)]
Proper handling of dependencies. (Related to #26.)

13 years agoReworked dependency handling.
solar [Sun, 1 Aug 2010 07:19:28 +0000 (07:19 +0000)]
Reworked dependency handling.

13 years agoUncovered severe formatting bug with one-digit numbers. Not fixed yet, but better...
solar [Wed, 21 Jul 2010 06:08:13 +0000 (06:08 +0000)]
Uncovered severe formatting bug with one-digit numbers. Not fixed yet, but better than before.

13 years agoFormatting bug.
solar [Tue, 20 Jul 2010 04:27:34 +0000 (04:27 +0000)]
Formatting bug.

13 years agoSet svn:ignore on testing. Modified Makefile.
solar [Mon, 19 Jul 2010 20:11:00 +0000 (20:11 +0000)]
Set svn:ignore on testing. Modified Makefile.

13 years agoMoved reference files to platform subdirs.
solar [Mon, 19 Jul 2010 20:04:10 +0000 (20:04 +0000)]
Moved reference files to platform subdirs.

13 years agoMade printf() testcases 32/64 bit agnostic.
solar [Mon, 19 Jul 2010 15:17:37 +0000 (15:17 +0000)]
Made printf() testcases 32/64 bit agnostic.

13 years agoFurther streamlined testing.
solar [Mon, 19 Jul 2010 14:16:52 +0000 (14:16 +0000)]
Further streamlined testing.

13 years agoForgot to switch this one to unified include.
solar [Mon, 19 Jul 2010 11:44:34 +0000 (11:44 +0000)]
Forgot to switch this one to unified include.

13 years agoCleaned up the testing a bit.
solar [Mon, 19 Jul 2010 11:36:38 +0000 (11:36 +0000)]
Cleaned up the testing a bit.

13 years agoMoved test-related files to testing subdirectory (i.e., out of the way).
solar [Mon, 19 Jul 2010 09:47:39 +0000 (09:47 +0000)]
Moved test-related files to testing subdirectory (i.e., out of the way).

13 years agoScrapped seperate testing for vscanf().
solar [Mon, 19 Jul 2010 09:22:54 +0000 (09:22 +0000)]
Scrapped seperate testing for vscanf().

13 years agoDisabled 'special case' tests for regression.
solar [Mon, 19 Jul 2010 09:00:16 +0000 (09:00 +0000)]
Disabled 'special case' tests for regression.

13 years agoProper handling of end-of-string.
solar [Mon, 19 Jul 2010 07:40:52 +0000 (07:40 +0000)]
Proper handling of end-of-string.

13 years agoType error resulting in improper handling of values > 127 and EOF.
solar [Mon, 19 Jul 2010 07:35:14 +0000 (07:35 +0000)]
Type error resulting in improper handling of values > 127 and EOF.

13 years agoscanf() returns -1 on early input error.
solar [Mon, 19 Jul 2010 05:19:04 +0000 (05:19 +0000)]
scanf() returns -1 on early input error.

13 years agoCorrected _MIN testcases.
solar [Sun, 18 Jul 2010 20:01:35 +0000 (20:01 +0000)]
Corrected _MIN testcases.

13 years agoBetter size-safe checking for integer widths.
solar [Sun, 18 Jul 2010 12:05:46 +0000 (12:05 +0000)]
Better size-safe checking for integer widths.

13 years agoIntermediate work improving printf() family unified testing.
solar [Fri, 16 Jul 2010 16:31:35 +0000 (16:31 +0000)]
Intermediate work improving printf() family unified testing.

13 years agoMoved printf() family tests to unified testing.
solar [Fri, 16 Jul 2010 08:07:22 +0000 (08:07 +0000)]
Moved printf() family tests to unified testing.

13 years agoFixed EOF handling.
solar [Fri, 16 Jul 2010 06:13:35 +0000 (06:13 +0000)]
Fixed EOF handling.

13 years agoPrefix / postfix error screwing up any code using ungetc().
solar [Tue, 13 Jul 2010 08:12:22 +0000 (08:12 +0000)]
Prefix / postfix error screwing up any code using ungetc().

13 years agoMore improved unified tests (now life).
solar [Thu, 1 Jul 2010 06:01:48 +0000 (06:01 +0000)]
More improved unified tests (now life).

13 years agoMore improved unified tests (now life).
solar [Thu, 1 Jul 2010 06:01:30 +0000 (06:01 +0000)]
More improved unified tests (now life).

13 years agoImproved unified tests.
solar [Thu, 1 Jul 2010 05:47:17 +0000 (05:47 +0000)]
Improved unified tests.

13 years agoMoving closer to unified I/O testing.
solar [Fri, 25 Jun 2010 11:09:25 +0000 (11:09 +0000)]
Moving closer to unified I/O testing.

13 years agoBeginning to *really* unify the scanf / printf testing.
solar [Fri, 25 Jun 2010 09:58:37 +0000 (09:58 +0000)]
Beginning to *really* unify the scanf / printf testing.

13 years agoTestcase printing made safe.
solar [Thu, 24 Jun 2010 13:42:59 +0000 (13:42 +0000)]
Testcase printing made safe.

13 years agoIndividual init to get around warnings on 64bit.
solar [Wed, 23 Jun 2010 08:39:21 +0000 (08:39 +0000)]
Individual init to get around warnings on 64bit.

13 years agoExtended test drivers to cover sign error.
solar [Wed, 23 Jun 2010 08:28:28 +0000 (08:28 +0000)]
Extended test drivers to cover sign error.

13 years agoProper testing of overflow digit handling.
solar [Wed, 23 Jun 2010 05:19:21 +0000 (05:19 +0000)]
Proper testing of overflow digit handling.

13 years agoNew file permissions.
solar [Wed, 23 Jun 2010 05:17:46 +0000 (05:17 +0000)]
New file permissions.

13 years agoSome cleanups.
solar [Sun, 20 Jun 2010 11:06:51 +0000 (11:06 +0000)]
Some cleanups.

13 years agoStreams are now closed on program exit. (I hope; untested.)
solar [Sat, 19 Jun 2010 20:26:50 +0000 (20:26 +0000)]
Streams are now closed on program exit. (I hope; untested.)

13 years agotmpfile() implementation now based on /proc/sys/kernel/random/uuid.
solar [Sat, 19 Jun 2010 18:40:21 +0000 (18:40 +0000)]
tmpfile() implementation now based on /proc/sys/kernel/random/uuid.