jehanne/sys/src/lib/c/9sys
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
..
access.c libc: rewrite access() 2016-12-26 02:18:06 +01:00
announce.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
awakened.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
chdir.c kernel: move chdir to libc using devself/devproc 2016-12-15 22:42:01 +01:00
convD2M.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
convM2D.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
cputime.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
ctime.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
dial.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
dirfstat.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
dirfwstat.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
dirmodefmt.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
dirread.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
dirstat.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
dirwstat.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
dup.c libc: handle positive fd on "always-failing" creates (brk and dup) 2017-01-16 23:53:05 +01:00
fork.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
getenv.c libc: rewrite putenv and getenv. 2017-01-19 00:58:43 +01:00
getmainpid.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
getnetconninfo.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
getpid.c kernel: introduce devself 2016-12-11 01:26:08 +01:00
getppid.c kernel: introduce devself 2016-12-11 01:26:08 +01:00
getwd.c kernel: move chdir to libc using devself/devproc 2016-12-15 22:42:01 +01:00
iounit.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
nsec.c kernel: move nsec to libc 2017-01-06 00:56:22 +01:00
nulldir.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
ocreate.c kernel&all: create() syscall only sends Tcreate 2016-12-24 21:25:20 +01:00
pipe.c kernel: move sysdup to libc 2017-01-06 00:56:22 +01:00
postnote.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
privalloc.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
pushssl.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
putenv.c libc: rewrite putenv and getenv. 2017-01-19 00:58:43 +01:00
qlock.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
read.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
rerrstr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
sbrk.c libc: rewrite brk() and sbrk() 2017-01-18 23:35:41 +01:00
segattach.c kernel: introduce devself 2016-12-11 01:26:08 +01:00
setnetmtpt.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
sleep.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
stat.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
sysfatal.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
syslog.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
sysname.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
time.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
times.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
tm2sec.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
truerand.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
wait.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
waitpid.c decouple Jehanne from 9P2000 (as much as needed) 2016-12-06 23:01:45 +01:00
werrstr.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
write.c first usable version of kernel and commands 2016-11-26 03:49:29 +01:00