search for: strtotimespec

Displaying 9 results from an estimated 9 matches for "strtotimespec".

2023 Jan 26
0
[klibc:time64] time: Use clock_* system calls for time-of-day and sleep
...ex 02a18e64..8b132190 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -29,7 +29,8 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \ statfs.o fstatfs.o umount.o \ creat.o open.o openat.o \ fread2.o fwrite2.o fgets.o fputc.o fputs.o puts.o putchar.o \ - sleep.o usleep.o strtotimespec.o strtotimeval.o \ + clock_nanosleep.o nanosleep.o sleep.o usleep.o \ + strtotimespec.o strtotimeval.o \ raise.o abort.o assert.o alarm.o pause.o \ __signal.o sysv_signal.o bsd_signal.o siglist.o sigabbrev.o \ siglongjmp.o \ @@ -53,7 +54,8 @@ klib-y += vsnprintf.o snprintf.o vsprint...
2011 Feb 27
4
[PATCH] Add minimal mkstemp(3) implementation.
...rintf.o fprintf.o vfprintf.o perror.o \ statfs.o fstatfs.o umount.o \ - creat.o open.o openat.o open_cloexec.o \ + creat.o mkstemp.o open.o openat.o open_cloexec.o \ fopen.o fread.o fread2.o fgetc.o fgets.o \ fwrite.o fwrite2.o fputc.o fputs.o puts.o putchar.o \ sleep.o usleep.o strtotimespec.o strtotimeval.o \ diff --git a/usr/klibc/mkstemp.c b/usr/klibc/mkstemp.c new file mode 100644 index 0000000..8430357 --- /dev/null +++ b/usr/klibc/mkstemp.c @@ -0,0 +1,93 @@ +/*- + * Compact mkstemp(3)-only implementation, for klibc + * + * Copyright (c) 2009, 2011 + * Thorsten Glaser <tg at mi...
2005 Dec 08
0
Allow greater precision with sleep
...,21 @@ #include <stdio.h> #include <stdlib.h> +#include <time.h> + int main(int argc, char *argv[]) { - unsigned long s; + struct timespec ts; char *p; if (argc != 2) goto err; - s = strtoul(argv[1], &p, 10); + p = strtotimespec(argv[1], &ts); if ( *p ) goto err; - sleep(s); + nanosleep(&ts, NULL); return 0; * Canonical Ltd * Ubuntu Service and Support * +1 514 691 7221 * Linux for Human Beings.
2016 Jan 15
0
[klibc:master] Remove open_cloexec()
...o sprintf.o \ setpgrp.o getpgrp.o daemon.o \ printf.o vprintf.o fprintf.o vfprintf.o perror.o \ statfs.o fstatfs.o umount.o \ - creat.o open.o openat.o open_cloexec.o \ + creat.o open.o openat.o \ fread2.o fwrite2.o fgets.o fputc.o fputs.o puts.o putchar.o \ sleep.o usleep.o strtotimespec.o strtotimeval.o \ raise.o abort.o assert.o alarm.o pause.o \ diff --git a/usr/klibc/open_cloexec.c b/usr/klibc/open_cloexec.c deleted file mode 100644 index e30b09d..0000000 --- a/usr/klibc/open_cloexec.c +++ /dev/null @@ -1,18 +0,0 @@ -/* - * open_cloexec.c - * - * A quick hack to do an open(...
2010 Apr 16
0
[PATCH] add minimal faccessat()
...f.o fprintf.o vfprintf.o perror.o \ statfs.o fstatfs.o umount.o \ creat.o open.o openat.o open_cloexec.o \ - fopen.o fread.o fread2.o fgetc.o fgets.o \ + fopen.o fread.o fread2.o fgetc.o fgets.o faccessat.o \ fwrite.o fwrite2.o fputc.o fputs.o puts.o putchar.o \ sleep.o usleep.o strtotimespec.o strtotimeval.o \ raise.o abort.o assert.o alarm.o pause.o \ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index ae58b9b..896452c 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -98,7 +98,7 @@ int swapoff(const char *); * Inode-related system calls */ in...
2007 Aug 15
0
[git patch] fstype support + minor stuff
....o \ - setpgrp.o getpgrp.o daemon.o \ - printf.o vprintf.o fprintf.o vfprintf.o perror.o \ - statfs.o fstatfs.o umount.o \ - creat.o open.o openat.o open_cloexec.o \ - fopen.o fread.o fread2.o fgetc.o fgets.o \ - fwrite.o fwrite2.o fputc.o fputs.o puts.o putchar.o \ - sleep.o usleep.o strtotimespec.o strtotimeval.o \ - raise.o abort.o assert.o alarm.o pause.o \ - __signal.o sysv_signal.o bsd_signal.o siglist.o sigabbrev.o \ - siglongjmp.o \ - sigaction.o sigpending.o sigprocmask.o sigsuspend.o \ - pselect.o ppoll.o \ - brk.o sbrk.o malloc.o realloc.o calloc.o \ - mmap.o shm_open...
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...n/trunk/knl/linux/usr//include -I/root/gen/trunk/knl/linux/usr//arch/powerpc/include -D__KLIBC__=2 -D__KLIBC_MINOR__=0 -D_BITSIZE=32 -fno-stack-protector -fwrapv -m32 -Os -W -Wall -Wno-sign-compare -Wno-unused-parameter -c -o usr/klibc/usleep.o usr/klibc/usleep.c ppc-linux-gcc -Wp,-MD,usr/klibc/.strtotimespec.o.d -nostdinc -iwithprefix include -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/arch/ppc -Iusr/include/arch/ppc -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/bits32 -Iusr/include/bits32 -I/root/ofs/trunk/packages/klibc-2.0.2/usr/klibc/../include -Iusr/klibc/../include -I/root/ofs/trunk/...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote: > > > Find attached two patches I have in order to build klibc 2.0.2 > against kernel 3.8.13 > We had to introduce those patches when going from kernel 3.6 to kernel 3.7 > Hope it helps. > those patches are wrong and again very brittle. just use the way it is described in `make help': A) cd ~/src/linux
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at: