plan9fox/sys/src/ape/lib
Ori Bernstein 1047b53efc ape/libap: fix _startbuf, check rfork return (thanks pixelherodev)
When _startbuf is invoked, it would crash on the second invocation
if creating a mux segment failed. This is because the first attempt
would assign the return value -1 to the global mux variable, and
the second attempt would notice that the global mux was not nil,
and would attempt to use it.

This change only assigns to the global variable if the allocation
of the segment was a success.

While we're here, we should also check the return of the rfork call.
2021-01-19 19:56:38 -08:00
..
9 ape: add missing rerrstr.c 2020-06-05 18:52:22 -07:00
ap ape/libap: fix _startbuf, check rfork return (thanks pixelherodev) 2021-01-19 19:56:38 -08:00
auth libauth: add procsetuser() function to change user id of the calling process 2020-12-19 17:46:55 +01:00
bio ape: add libauth, libbio, libmp and libsec as replacements for openssl 2016-04-11 20:23:34 +02:00
bsd ape: remove getitimer setitimer implemenations 2018-07-03 12:28:05 -04:00
bz2 add zlib, bzlib and openssl ape ports 2011-05-03 09:56:35 +00:00
draw ape/libdraw: add missing eenter (thanks phil9) 2020-05-30 10:06:21 -07:00
fmt ape: fix format clash, %z is for size_t (which is a long currently), not pointer sized 2016-09-14 00:18:45 +02:00
l Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mp ape: initial support for arm64 2019-05-03 21:06:46 +02:00
net Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
plumb libplumb: add missing mkfile 2020-06-09 12:23:24 -07:00
sec libsec: remove hash pickle functions, document ripemd160, cleanup sechash(2) manpage 2020-03-01 15:07:44 +01:00
utf fix utf and rune handling in preparation for 32bit runes 2012-12-31 21:09:46 +01:00
v ape: add PASS_MAX constant for getpass() to limits.h (from patch/ape-pass_max) 2013-02-28 19:21:03 +01:00
z add zlib, bzlib and openssl ape ports 2011-05-03 09:56:35 +00:00
mkfile ape: don't hardcode list of ape library directories in /sys/src/ape/lib/mkfile 2019-09-16 16:21:40 +02:00