Commit graph

52 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 b9d2f353d9 Move the pure stdlib functions into the new pure directory. 2018-06-21 22:52:31 +02:00
David Given 93f39e4bbf Run libcc.ansi through clang-format. 2018-06-21 22:33:47 +02:00
David Given 13e195d19f Warning fixes. 2018-06-17 15:42:26 +02:00
David Given 7eaa235fd1 Bodge the ancient em monitor library into building as a libsys for the em22
plat. It's completely untested, but it builds and makes e.out executables.
2018-06-13 21:44:25 +09: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 a200a2fb53 Replaced the funky and hard-to-compile ACK malloc with a much smaller
and simpler one stolen from K&R. libc builds now.
2016-08-11 00:30:32 +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 074b42aa97 Add some missing libc functions: setenv, unsetenv, strdup.
--HG--
branch : dtrg-videocore
rename : lang/cem/libcc.ansi/stdlib/getenv.c => lang/cem/libcc.ansi/stdlib/setenv.c
rename : lang/cem/libcc.ansi/string/strlen.c => lang/cem/libcc.ansi/string/strdup.c
2013-05-29 21:41: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 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
dtrg 67733b9d3c Added the correct shell script magic. (Some platforms insist on this.) 2006-07-30 23:37:15 +00:00
ceriel e41c75c1bc Some minor changes 1995-08-17 10:03:43 +00:00
ceriel 1db6a3029b Header --> Id 1994-06-24 14:02:31 +00:00
ceriel 067ad0cc22 Fixed div() and ldiv() for machines with -1/2 = -1 1993-10-26 13:58:04 +00:00
ceriel 4775779d8e Made more portable 1993-10-06 13:15:12 +00:00
ceriel a37e49b619 Added check, but probably never happens with correct FEF 1993-08-31 10:53:05 +00:00
ceriel 298fd07712 Prevent warning about overflow 1993-06-09 11:47:01 +00:00
ceriel 6e48c50a6c Put malloc.c after malloc in .distr file, otherwise it cannot be made 1991-12-19 10:22:15 +00:00
ceriel 25cf41d9b7 Distribute malloc.c to improve lint library generation 1991-09-30 16:36:17 +00:00
ceriel e7b4e265d4 fixed some lint complaints 1991-09-30 16:24:45 +00:00
ceriel 5d00c41800 Removed definition of EMHOME; it was not used 1991-08-07 10:52:35 +00:00
ceriel e001541608 Fixed bug in checking of last char of environment variable 1991-04-24 12:18:03 +00:00
ceriel ab8022ccbd Fixed bug 1991-04-22 11:29:48 +00:00
ceriel cb7438cb99 Some modifications to improve floating point printing 1991-02-26 18:37:47 +00:00
ceriel 3ddb8e24b7 wctomb() now also returns 1 on 0-char 1991-01-15 11:55:33 +00:00
eck 04480b1db9 added protection against #define of _POSIX_SOURCE 1990-11-22 13:59:54 +00:00
eck 57b1d9824a fixed bugs with sizeof() and unnormalized values 1990-11-09 16:26:15 +00:00
eck c937359a4e oops, _envp should have been _penvp 1990-09-27 16:52:07 +00:00
eck 2c9fbebe4e strod() & _str_ext_cvt() made more strictly conforming 1990-09-07 11:00:24 +00:00
eck 4ab420fb0f fixed qsort() for 0 elements 1990-08-28 14:03:24 +00:00
eck bc137646df fixed types because of the 2-4 version 1990-08-24 17:05:53 +00:00
ceriel cf28f45a59 improved conversion of extended to string 1990-07-20 09:39:43 +00:00
ceriel c6a11d1f62 rand() did not work on 2-byte machines 1990-06-30 20:02:45 +00:00
ceriel 59dd7cdfeb fix to fix 1990-05-22 12:22:25 +00:00
ceriel ef69de1614 atol and atoi get old-fashioned behaviour 1990-05-22 10:48:12 +00:00
eck 27718f5d6d error with cast to unsigned long 1990-05-11 15:22:19 +00:00
eck c8c4c6e7a9 several bug fixes after test-suite 1990-03-28 16:37:18 +00:00
eck f99437138d made little mistakes in div() and ldiv() 1990-03-05 13:48:03 +00:00
eck 11c9808d7e fixed div() and ldiv() 1990-03-01 16:32:22 +00:00
eck b2cbaa46d5 changed system-call to avoid namespace pollution 1990-01-22 16:26:12 +00:00
eck 0ab62357ce changed system-calls to avoid namespace pollution 1990-01-22 13:00:13 +00:00
eck 35023ba945 bug fixes from modules/malloc; changed formats to use %p 1990-01-18 17:24:18 +00:00
eck 80b04b4440 changed Makefile again 1989-12-19 15:06:03 +00:00
eck f4e1d47704 changed Makefile 1989-12-19 11:20:16 +00:00
eck e00f89ea6f made a lot of changes 1989-12-18 15:14:14 +00:00
eck c98a786cc4 Intial revision 1989-12-18 13:31:20 +00:00