Commit graph

56 commits

Author SHA1 Message Date
David Given 94ffa3ba88 libc floating point and stdio floating point can now be turned on and off using
ACKCONF variables.
2018-06-23 00:04:14 +02:00
David Given 93f39e4bbf Run libcc.ansi through clang-format. 2018-06-21 22:33:47 +02:00
George Koehler 75ae957c75 Don't check ferror(fp) when reading fp.
If feof(fp) or ferror(fp) was set, then our libc returned EOF for all
later reads without trying to read.  Our libc now behaves like BSD
(and probably Illumos and musl) by checking only feof(fp).  For
difference, glibc doesn't check feof(fp).

I described the difference between our libc and BSD libc in
https://sourceforge.net/p/tack/mailman/message/35430300/
2017-10-28 16:20:48 -04:00
George Koehler b00a2c906d Build fdopen(), hypot(), putenv() in libc.
These functions are in POSIX; hypot() is in C99.  Also build cabs()
because it rides with hypot(), but don't declare cabs() in any header
file, because our compiler can't parse C99 "double complex" type.

Touch build.lua so it sees that .c files moved.
2017-10-28 13:33:57 -04:00
David Given f67c98e239 Distributions are a pain --- let's not bother any more. Instead, we just tag
the repository and download a complete snapshot, old and ancient stuff and all.
2016-09-02 23:00:38 +02:00
David Given 3ce4e53aa9 Most of libc builds now (missing malloc). 2016-08-08 23:55:47 +02:00
David Given d94c1c8150 Updated distr files.
--HG--
branch : dtrg-videocore
rename : mach/i80/.distr => mach/vc4/.distr
rename : plat/cpm/.distr => plat/rpi/.distr
2013-06-21 23:38:21 +01:00
David Given 69953d016c Add support for snprintf and vsnprintf. Try and make the return value a bit
more standards-compliant.

--HG--
branch : dtrg-videocore
2013-05-29 17:10:58 +01:00
George Koehler 0131ca4d46 Delete 689 undead files.
These files "magically reappeared" after the conversion from CVS to
Mercurial.  The old CVS repository deleted these files but did not
record *when* it deleted these files.  The conversion resurrected these
files because they have no history of deletion.  These files were
probably deleted before year 1995.  The CVS repository begins to record
deletions around 1995.

These files may still appear in older revisions of this Mercurial
repository, when they should already be deleted.  There is no way to fix
this, because the CVS repository provides no dates of deletion.

See http://sourceforge.net/mailarchive/message.php?msg_id=29823032
2012-09-20 22:26:32 -04:00
dtrg 0d8578410c Cleaned up and enabled the support for conditionally emitting the floating-point stdio code. 2007-04-27 22:41:39 +00:00
dtrg 24ea8aee3d Updated for the 6.0pre2 release. 2007-04-24 20:45:58 +00:00
dtrg 1c83baa702 Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
dtrg b611731ec3 Updated .distr files for the new release. 2007-02-25 12:51:55 +00:00
ceriel 6ec3dd7ebd fix in flushbuf: make sure it does not return EOF when it actually succeeds 1996-04-24 13:06:00 +00:00
ceriel 73b54a2326 fixed bug with %[] in doscan.c 1996-04-01 09:08:59 +00:00
ceriel 7442852cad Removed unclear test 1995-12-18 11:02:18 +00:00
ceriel 812b6f2158 Fixed obscure bug in setvbuf 1995-12-04 17:11:54 +00:00
ceriel 5edfb9eccf Fix: had a semicolon too much (KJB) 1995-04-18 13:56:20 +00:00
ceriel 1db6a3029b Header --> Id 1994-06-24 14:02:31 +00:00
ceriel b73eb4057e Fix: set error flag in some error cases 1993-10-07 09:44:03 +00:00
ceriel 983e1bf095 Fix to icompute.c: always had one digit too much 1993-08-26 10:08:37 +00:00
ceriel 7eb7218667 Fixed bug in flushbuf: did not reset stream->_ptr on write error 1993-01-14 10:02:28 +00:00
ceriel f3e5c3032f differing characters should be left untouched 1992-01-24 13:05:30 +00:00
ceriel e7b4e265d4 fixed some lint complaints 1991-09-30 16:24:45 +00:00
ceriel 9e9e7db6b4 Fixed flushbuf() so that it works with POSIX conformant Unix versions 1991-06-10 17:07:18 +00:00
ceriel 52287793fb Removed superfluous : 1991-03-26 18:41:47 +00:00
ceriel 319fb7cbff Removed evaluation order dependency bug 1991-03-21 09:49:35 +00:00
ceriel 55bbaa1bf2 Fixed wrong %c conversion 1991-03-04 13:35:22 +00:00
ceriel 9c0b85db41 Fixed tmpnam(): name contained null-byte 1991-02-26 09:28:39 +00:00
ceriel cf10cabb6f fixed problems with flushbuf 1991-02-22 16:45:47 +00:00
ceriel 9340345509 Fix FOPEN_MAX array bound error 1991-02-22 16:32:05 +00:00
ceriel 1c694d98d0 removed unused variables 1991-02-20 09:48:00 +00:00
ceriel c4c7787acc clearerr is now also a macro 1991-01-03 14:23:54 +00:00
eck 0ad960a9b0 set _IOMYBUF in setvbuf() when necessary 1990-12-14 14:47:26 +00:00
eck 0c8acbf834 vsprintf() sets _IOWRITING flag 1990-11-13 10:56:53 +00:00
eck bc6df29be8 changed first arg of sscanf() to const char * 1990-09-26 13:19:19 +00:00
eck 74f3d91777 added #if because rename() is also in POSIX 1990-09-11 10:26:42 +00:00
eck cd1f6c38a4 fixed freopen() bug by deleting some code 1990-08-28 13:44:48 +00:00
eck 21f1ef5a6c fixed character count in doscan 1990-07-11 09:08:33 +00:00
eck 472ee0cea4 always flush line-buffered output when filling an input buffer 1990-06-21 11:13:23 +00:00
ceriel 24c9be9777 Use fputs instead of printf in perror.c 1990-05-21 10:20:15 +00:00
eck 51467658c6 scan with %p didn't work properly on 2-4 machines 1990-05-03 10:50:23 +00:00
eck 470bb82342 garbage is allowed in the f[re]open mode string 1990-04-24 09:30:15 +00:00
eck a3bd2c6734 file creation on f[re]open() was still wrong 1990-04-09 15:55:51 +00:00
eck 09a4136272 deleted _tname from __iobuf structure 1990-04-09 15:38:02 +00:00
eck d2516d4eaf improved file creation on f[re]open() 1990-04-09 15:21:43 +00:00
eck d87444a7fb improved _doscan(); fflush() doesn't call fseek() anymore 1990-04-04 15:52:01 +00:00
eck 0bb4c0167c bug fixes for scanf() 1990-03-28 16:33:05 +00:00
eck ccd728edbc changed names of ?cvt : namespace problems 1990-02-27 16:48:01 +00:00
eck e4d7651f02 fixed fflush: it didn't even compile! 1990-02-13 17:08:05 +00:00