jehanne/sys/src/cmd
Giacomo Tesio e70feee4a3 libc: introduce "jehanne_" namespace
With this commit all functions declared in libc.h have been renamed
with the "jehanne_" prefix. This is done for several reason:

- it removes conflicts during symbol resolution when linking
  standard C libraries like newlib or musl
- it allows programs depending on a standard C library to directly
  link to a library depending on our non standard libc (eg libsec).

To ease transiction two files are provided:

- sys/include/lib9.h that can be included instead of <libc.h> to use
  the old names (via a simple set of macros)
- sys/src/lib/c/lib9.c that can be compiled with a program where the
  macro provided by lib9.h are too dumb (see for example rc or grep).

In the kernel port/lib.h has been modified accordingly and some of
the functions it directly provides has been renamed too (eg malloc
in qmalloc.c and print in devcons.c).
2017-04-19 23:48:21 +02:00
..
acme libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
auth libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
awk libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
disk libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
dossrv libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
exportfs libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
grep libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
hjfs libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
hmi libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
hoc libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ip libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ndb libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
pict libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
rc libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
rio libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
sam libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
samterm libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
sys libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
usb libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ascii.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
basename.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
bind.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
cal.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
cat.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
chgrp.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
chmod.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
cleanname.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
cmd.json first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
cmds.json libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
cp.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
cpu.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
date.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
dd.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
du.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
echo.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ed.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
fcp.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
field.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
flip.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
hget.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
import.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
init.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
join.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
kcmds.json first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
kernel.json first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
lock.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
look.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ls.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
mc.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
mkdir.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
mntgen.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
mount.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
mpc.y libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ms.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
mtime.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
mv.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
netstat.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ns.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
p.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
pipefile.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ps.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
pwd.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
ramfs.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
rm.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
sed.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
seq.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
sleep.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
sort.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
split.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
srv.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
srvfs.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
stats.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
tail.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
tar.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
tee.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
test.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
time.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
touch.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
tr.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
unicode.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
uniq.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
unmount.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
wc.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
xargs.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
xd.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00