jehanne/sys/src/lib/c/port
Giacomo Tesio 65cdad4317 libc: rewrite putenv and getenv.
These new implementations

- do several validity check on input parameters
- allow a bit larger variable names (127 bytes, aka sizeof(Proc.genbuf)-1)
- preserve nulls in the content (the original version used to replace
  '\0' with ' '). I can't see why they did, actually.
  See also http://marc.info/?l=9fans&m=148475801229908&w=2

Should also fix CID 155718
2017-01-19 00:58:43 +01:00
..
_assert.c libc: _assert do not return. should fix build 2017-01-17 21:28:56 +01:00
abs.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
asin.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
atan.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
atan2.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
atexit.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
atnotify.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
atof.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
atol.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
atoll.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
bsearch.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
charstod.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
cistrcmp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
cistrncmp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
cistrstr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
cleanname.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
crypt.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
ctype.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
encodefmt.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
execl.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
exp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
fabs.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
floor.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
fmod.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
frand.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
frexp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
getcallerpc.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
getfields.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
getuser.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
hangup.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
hypot.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
lnrand.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
lock.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
log.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
lrand.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
malloc.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
memccpy.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
memchr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
memcmp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
memmove.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
memset.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
mktemp.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
muldiv.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
nan.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
needsrcquote.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
netmkaddr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
nrand.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
ntruerand.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
perror.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
pool.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
pow.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
pow10.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
qsort.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
quote.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
rand.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
readn.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
rune.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runebase.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runebsearch.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrcat.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrchr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrcmp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrcpy.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrdup.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrecpy.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrlen.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrncat.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrncmp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrncpy.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrrchr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runestrstr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runetype.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
runetypebody-6.2.0.h first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
sin.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
sinh.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strcat.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strchr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strcmp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strcpy.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strcspn.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strdup.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strecpy.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strlen.c libc: rewrite putenv and getenv. 2017-01-19 00:58:43 +01:00
strncat.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strncmp.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strncpy.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strpbrk.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strrchr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strspn.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strstr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strtod.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strtok.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strtol.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strtoll.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strtoul.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
strtoull.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
tan.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
tanh.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
tokenize.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
toupper.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
u16.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
u32.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
u64.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
utfecpy.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
utflen.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
utfnlen.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
utfrrune.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
utfrune.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
utfutf.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00