David Given
93f39e4bbf
Run libcc.ansi through clang-format.
2018-06-21 22:33:47 +02:00
David Given
b85c25e4e5
Fix resource leak.
...
Closes : #75
2018-06-02 20:59:11 +02:00
David Given
d6e65833fb
Format.
2018-06-02 20:57:43 +02:00
George Koehler
54028e403e
Delete unused misc/getpw.c from libc.
...
@hexcoder- reported in https://github.com/davidgiven/ack/issues/57
that our getpw() has bugs.
I don't fix these bugs, because Illumos and Linux manual pages say
that getpw() is obsolete. The function can overflow its buffer, so it
is never safe to use. Our libc did not build getpw().
2017-10-28 14:25:39 -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
d273497077
Add some missing libc functions: setenv, unsetenv, strdup.
...
--HG--
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
extra : source : 64d6e6eec18d76bf8f3947ec5d171db94acdb282
2013-05-29 21:41:58 +01: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
1db6a3029b
Header --> Id
1994-06-24 14:02:31 +00:00
ceriel
e7b4e265d4
fixed some lint complaints
1991-09-30 16:24:45 +00:00
ceriel
2ad0051a24
popen.c did not compile with __USG defined
1991-09-18 09:19:40 +00:00
ceriel
1d73a4f04e
Added hypot.c
1991-02-26 18:08:25 +00:00
ceriel
9340345509
Fix FOPEN_MAX array bound error
1991-02-22 16:32:05 +00:00
ceriel
4a03769a47
Added mktemp.c
1991-02-01 10:31:03 +00:00
eck
4c99b235ed
oops: forgot to update LIST
1990-12-03 14:21:21 +00:00
eck
36861e70ac
added isatty.c: it is reasonably standard on UNIX systems
1990-12-03 14:13:31 +00:00
eck
c937359a4e
oops, _envp should have been _penvp
1990-09-27 16:52:07 +00:00
eck
4581d9f266
forgot to update LIST
1990-09-27 16:38:32 +00:00
eck
81ce150a96
changed environment handling to decrease namespace pollution
1990-09-27 13:40:08 +00:00
eck
1dd88ae8da
changed int-functions to void-functions
1990-09-11 10:24:15 +00:00
eck
5fcee85f88
removed test because of moon3
1990-08-28 14:53:34 +00:00
ceriel
9570000674
an = was temporarily set to 0, but not reset
1990-05-14 12:30:18 +00:00
eck
536b12010f
garbage is allowed in the fdopen mode string
1990-04-24 09:40:47 +00:00
eck
c1b2a43ef5
changed system-calls to avoid namespace pollution
1990-01-22 11:44:21 +00:00
eck
7157ec19b6
changed strrchr() into strchr()
1990-01-04 08:39:10 +00:00
eck
670ca5a83a
added putenv.c
1990-01-03 17:23:10 +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
94db19641a
Initial revision
1989-12-18 14:40:54 +00:00