text
stringlengths 0
234
|
---|
a file descriptor created by
|
.br timerfd_create ()
|
is preserved across
|
.br execve (2),
|
and continues to generate timer expirations if the timer was armed.
|
.sh return value
|
on success,
|
.br timerfd_create ()
|
returns a new file descriptor.
|
on error, \-1 is returned and
|
.i errno
|
is set to indicate the error.
|
.pp
|
.br timerfd_settime ()
|
and
|
.br timerfd_gettime ()
|
return 0 on success;
|
on error they return \-1, and set
|
.i errno
|
to indicate the error.
|
.sh errors
|
.br timerfd_create ()
|
can fail with the following errors:
|
.tp
|
.b einval
|
the
|
.i clockid
|
is not valid.
|
.tp
|
.b einval
|
.i flags
|
is invalid;
|
or, in linux 2.6.26 or earlier,
|
.i flags
|
is nonzero.
|
.tp
|
.b emfile
|
the per-process limit on the number of open file descriptors has been reached.
|
.tp
|
.b enfile
|
the system-wide limit on the total number of open files has been
|
reached.
|
.tp
|
.b enodev
|
could not mount (internal) anonymous inode device.
|
.tp
|
.b enomem
|
there was insufficient kernel memory to create the timer.
|
.tp
|
.b eperm
|
.i clockid
|
was
|
.br clock_realtime_alarm
|
or
|
.br clock_boottime_alarm
|
but the caller did not have the
|
.br cap_wake_alarm
|
capability.
|
.pp
|
.br timerfd_settime ()
|
and
|
.br timerfd_gettime ()
|
can fail with the following errors:
|
.tp
|
.b ebadf
|
.i fd
|
is not a valid file descriptor.
|
.tp
|
.b efault
|
.ir new_value ,
|
.ir old_value ,
|
or
|
.i curr_value
|
is not valid a pointer.
|
.tp
|
.b einval
|
.i fd
|
is not a valid timerfd file descriptor.
|
.pp
|
.br timerfd_settime ()
|
can also fail with the following errors:
|
.tp
|
.b ecanceled
|
see notes.
|
.tp
|
.b einval
|
.i new_value
|
is not properly initialized (one of the
|
.i tv_nsec
|
falls outside the range zero to 999,999,999).
|
.tp
|
.b einval
|
.\" this case only checked since 2.6.29, and 2.2.2[78].some-stable-version.
|
.\" in older kernel versions, no check was made for invalid flags.
|
.i flags
|
is invalid.
|
.sh versions
|
these system calls are available on linux since kernel 2.6.25.
|
library support is provided by glibc since version 2.8.
|
.sh conforming to
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.