Get rid of sys/time.h
commitbd41ac52cf7d20e9e568c519bf2cb5ac7104b86a
authorJakub Jermar <jakub@jermar.eu>
Sat, 25 Aug 2018 22:21:25 +0000 (26 00:21 +0200)
committerJakub Jermar <jakub@jermar.eu>
Sat, 25 Aug 2018 22:21:25 +0000 (26 00:21 +0200)
tree84c0c607d50dd7db45240186a289e046a1ff2e5e
parente2625b1a1e5a2895b86f0e39c2d70a39e49e042a
Get rid of sys/time.h

This commit moves the POSIX-like time functionality from libc's
sys/time.h to libposix and introduces C11-like or HelenOS-specific
interfaces to libc.

Specifically, use of sys/time.h, struct timeval, suseconds_t and
gettimeofday is replaced by time.h (C11), struct timespec (C11), usec_t
(HelenOS) and getuptime / getrealtime (HelenOS).

Also attempt to fix the implementation of clock() to return microseconds
(clocks) rather than processor cycles and move it to libc.
80 files changed:
uspace/app/barber/barber.c
uspace/app/bdsh/cmds/modules/sleep/sleep.c
uspace/app/bnchmark/bnchmark.c
uspace/app/modplay/modplay.c
uspace/app/stats/stats.c
uspace/app/tester/ipc/ping_pong.c
uspace/app/tester/ipc/starve.c
uspace/app/testread/testread.c
uspace/app/tetris/scores.h
uspace/app/tetris/screen.c
uspace/app/tetris/tetris.c
uspace/app/top/screen.c
uspace/app/top/screen.h
uspace/app/top/top.c
uspace/app/wavplay/dplay.c
uspace/dist/src/c/demos/tetris/scores.h
uspace/dist/src/c/demos/tetris/tetris.c
uspace/dist/src/c/demos/top/top.c
uspace/drv/bus/usb/uhci/uhci_rh.c
uspace/drv/bus/usb/usbdiag/tests.c
uspace/drv/bus/usb/vhc/hub/hub.c
uspace/drv/bus/usb/xhci/hc.c
uspace/drv/bus/usb/xhci/isoch.c
uspace/drv/nic/e1k/e1k.c
uspace/drv/nic/rtl8139/driver.c
uspace/drv/nic/rtl8139/general.c
uspace/drv/nic/rtl8139/general.h
uspace/drv/time/cmos-rtc/cmos-rtc.c
uspace/lib/c/generic/async/client.c
uspace/lib/c/generic/async/ports.c
uspace/lib/c/generic/async/server.c
uspace/lib/c/generic/io/console.c
uspace/lib/c/generic/private/async.h
uspace/lib/c/generic/private/fibril.h
uspace/lib/c/generic/private/futex.h
uspace/lib/c/generic/private/thread.h
uspace/lib/c/generic/rndgen.c
uspace/lib/c/generic/stdlib.c
uspace/lib/c/generic/thread/fibril.c
uspace/lib/c/generic/thread/fibril_synch.c
uspace/lib/c/generic/thread/mpsc.c
uspace/lib/c/generic/thread/thread.c
uspace/lib/c/generic/time.c
uspace/lib/c/include/async.h
uspace/lib/c/include/ddi.h
uspace/lib/c/include/fibril.h
uspace/lib/c/include/fibril_synch.h
uspace/lib/c/include/io/con_srv.h
uspace/lib/c/include/io/console.h
uspace/lib/c/include/sys/time.h [deleted file]
uspace/lib/c/include/time.h
uspace/lib/cpp/include/__bits/chrono.hpp
uspace/lib/cpp/include/__bits/thread/threading.hpp
uspace/lib/drv/generic/remote_nic.c
uspace/lib/drv/include/nic_iface.h
uspace/lib/drv/include/ops/nic.h
uspace/lib/drv/include/pci_dev_iface.h
uspace/lib/nic/include/nic.h
uspace/lib/nic/include/nic_driver.h
uspace/lib/nic/include/nic_impl.h
uspace/lib/nic/src/nic_driver.c
uspace/lib/nic/src/nic_impl.c
uspace/lib/pcm/include/pcm/format.h
uspace/lib/pcm/include/pcm/sample_format.h
uspace/lib/pcut/src/os/helenos.c
uspace/lib/posix/include/posix/sys/time.h
uspace/lib/posix/include/posix/sys/types.h
uspace/lib/posix/include/posix/time.h
uspace/lib/posix/src/internal/common.h
uspace/lib/posix/src/time.c
uspace/lib/usb/include/usb/port.h
uspace/lib/usb/src/port.c
uspace/lib/usbhost/include/usb/host/endpoint.h
uspace/lib/usbhost/src/endpoint.c
uspace/srv/audio/hound/audio_device.c
uspace/srv/net/ethip/atrans.c
uspace/srv/net/ethip/atrans.h
uspace/srv/net/inetsrv/ntrans.c
uspace/srv/net/inetsrv/ntrans.h
uspace/srv/net/tcp/tcp_type.h