Remove unistd.h
commit582a0b84b0a73672531e7b404a89997af41ba0b9
authorJakub Jermar <jakub@jermar.eu>
Mon, 8 May 2017 19:20:39 +0000 (8 21:20 +0200)
committerJakub Jermar <jakub@jermar.eu>
Mon, 8 May 2017 19:20:39 +0000 (8 21:20 +0200)
tree22897a51b46a565213d326f17349f2d36e89d214
parent73db198fc789c011416723b1513d3e3943f91afa
Remove unistd.h

- Rename usleep() and sleep() to thread_usleep() and thread_sleep() and
  move to thread.[hc].
- Include stddef.h in order to provide NULL.
- Move getpagesize() to libposix.
- Sync uspace/dist/src/c/demos with originals.
163 files changed:
uspace/app/barber/barber.c
uspace/app/bdsh/cmds/builtin_cmds.c
uspace/app/bdsh/cmds/builtins/batch/batch.c
uspace/app/bdsh/cmds/mod_cmds.c
uspace/app/bdsh/cmds/modules/cat/cat.c
uspace/app/bdsh/cmds/modules/cmp/cmp.c
uspace/app/bdsh/cmds/modules/cp/cp.c
uspace/app/bdsh/cmds/modules/echo/echo.c
uspace/app/bdsh/cmds/modules/help/help.c
uspace/app/bdsh/cmds/modules/printf/printf.c
uspace/app/bdsh/cmds/modules/sleep/sleep.c
uspace/app/bdsh/cmds/modules/touch/touch.c
uspace/app/bdsh/errors.c
uspace/app/bdsh/exec.c
uspace/app/bdsh/scli.c
uspace/app/bdsh/tok.c
uspace/app/bithenge/test.c
uspace/app/df/df.c
uspace/app/edit/search.c
uspace/app/getterm/getterm.c
uspace/app/getterm/version.c
uspace/app/init/init.c
uspace/app/killall/killall.c
uspace/app/mkmfs/mkmfs.c
uspace/app/redir/redir.c
uspace/app/sbi/src/mytypes.h
uspace/app/sysinfo/sysinfo.c
uspace/app/taskdump/elf_core.c
uspace/app/taskdump/taskdump.c
uspace/app/tester/float/float1.c
uspace/app/tester/float/float2.c
uspace/app/tester/float/softfloat1.c
uspace/app/tester/hw/misc/virtchar1.c
uspace/app/tester/hw/serial/serial1.c
uspace/app/tester/mm/malloc1.c
uspace/app/tester/mm/malloc2.c
uspace/app/tester/mm/malloc3.c
uspace/app/tester/mm/mapping1.c
uspace/app/tester/print/print1.c
uspace/app/tester/print/print2.c
uspace/app/tester/print/print3.c
uspace/app/tester/print/print4.c
uspace/app/tester/print/print5.c
uspace/app/tester/print/print6.c
uspace/app/tester/stdio/logger1.c
uspace/app/tester/stdio/stdio1.c
uspace/app/tester/stdio/stdio2.c
uspace/app/tester/tester.c
uspace/app/tester/thread/setjmp1.c
uspace/app/tester/thread/thread1.c
uspace/app/tester/vfs/vfs1.c
uspace/app/testwrit/testwrit.c
uspace/app/tetris/screen.c
uspace/app/tetris/shapes.c
uspace/app/tetris/tetris.c
uspace/app/tetris/tetris.h
uspace/app/top/top.c
uspace/app/trace/syscalls.h
uspace/app/trace/trace.c
uspace/app/untar/tar.c
uspace/app/usbinfo/dump.c
uspace/app/vuhid/main.c
uspace/dist/src/c/demos/edit/search.c
uspace/dist/src/c/demos/tetris/scores.c
uspace/dist/src/c/demos/tetris/screen.c
uspace/dist/src/c/demos/tetris/shapes.c
uspace/dist/src/c/demos/tetris/tetris.c
uspace/dist/src/c/demos/tetris/tetris.h
uspace/dist/src/c/demos/top/top.c
uspace/drv/audio/sb16/mixer.c
uspace/drv/nic/ar9271/ar9271.c
uspace/drv/nic/ar9271/hw.c
uspace/drv/nic/e1k/e1k.c
uspace/drv/nic/ne2k/dp8390.c
uspace/drv/nic/rtl8139/driver.c
uspace/drv/nic/rtl8139/general.c
uspace/drv/nic/rtl8139/general.h
uspace/drv/nic/rtl8169/driver.c
uspace/lib/bithenge/src/failure.c
uspace/lib/bithenge/src/failure.h
uspace/lib/bithenge/src/file.c
uspace/lib/bithenge/src/helenos/common.h
uspace/lib/c/arch/abs32le/include/libarch/tls.h
uspace/lib/c/arch/abs32le/src/entry.c
uspace/lib/c/arch/abs32le/src/stacktrace.c
uspace/lib/c/arch/abs32le/src/thread_entry.c
uspace/lib/c/arch/abs32le/src/tls.c
uspace/lib/c/arch/riscv64/include/libarch/tls.h
uspace/lib/c/arch/riscv64/src/entry.c
uspace/lib/c/arch/riscv64/src/stacktrace.c
uspace/lib/c/arch/riscv64/src/thread_entry.c
uspace/lib/c/arch/riscv64/src/tls.c
uspace/lib/c/generic/adt/hash_table.c
uspace/lib/c/generic/as.c
uspace/lib/c/generic/config.c
uspace/lib/c/generic/ddi.c
uspace/lib/c/generic/dlfcn.c
uspace/lib/c/generic/double_to_str.c
uspace/lib/c/generic/fibril.c
uspace/lib/c/generic/getopt.c
uspace/lib/c/generic/inet/addr.c
uspace/lib/c/generic/inet/hostname.c
uspace/lib/c/generic/io/asprintf.c
uspace/lib/c/generic/io/chargrid.c
uspace/lib/c/generic/io/io.c
uspace/lib/c/generic/io/kio.c
uspace/lib/c/generic/io/klog.c
uspace/lib/c/generic/io/logctl.c
uspace/lib/c/generic/io/printf_core.c
uspace/lib/c/generic/io/vprintf.c
uspace/lib/c/generic/irq.c
uspace/lib/c/generic/malloc.c
uspace/lib/c/generic/rcu.c
uspace/lib/c/generic/rtld/module.c
uspace/lib/c/generic/stacktrace.c
uspace/lib/c/generic/stats.c
uspace/lib/c/generic/str.c
uspace/lib/c/generic/sysinfo.c
uspace/lib/c/generic/task.c
uspace/lib/c/generic/thread.c
uspace/lib/c/generic/time.c
uspace/lib/c/generic/tls.c
uspace/lib/c/generic/uuid.c
uspace/lib/c/generic/vfs/canonify.c
uspace/lib/c/include/adt/hash_table.h
uspace/lib/c/include/double_to_str.h
uspace/lib/c/include/getopt.h
uspace/lib/c/include/io/pixelmap.h
uspace/lib/c/include/ipc/dev_iface.h
uspace/lib/c/include/stdlib.h
uspace/lib/c/include/thread.h
uspace/lib/c/include/unistd.h [deleted file]
uspace/lib/compress/gzip.c
uspace/lib/crypto/crypto.c
uspace/lib/drv/generic/dev_iface.c
uspace/lib/drv/generic/logbuf.c
uspace/lib/pcut/src/os/helenos.c
uspace/lib/pcut/tests/timeout.c
uspace/lib/posix/source/fcntl.c
uspace/lib/posix/source/time.c
uspace/lib/posix/source/unistd.c
uspace/lib/scsi/src/spc.c
uspace/lib/uri/uri.c
uspace/lib/usb/src/dump.c
uspace/lib/usbdev/src/altiface.c
uspace/lib/usbdev/src/dp.c
uspace/srv/bd/file_bd/file_bd.c
uspace/srv/fs/exfat/exfat.c
uspace/srv/fs/fat/fat.c
uspace/srv/fs/fat/fat_dentry.c
uspace/srv/fs/mfs/mfs.c
uspace/srv/fs/tmpfs/tmpfs.c
uspace/srv/fs/udf/udf.c
uspace/srv/hid/input/input.c
uspace/srv/hid/input/port/niagara.c
uspace/srv/hid/input/port/ski.c
uspace/srv/hid/isdv4_tablet/isdv4.c
uspace/srv/hid/output/proto/vt100.c
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
uspace/srv/loader/main.c
uspace/srv/logger/ctl.c
uspace/srv/vfs/vfs_ops.c