text
stringlengths 0
234
|
---|
for (tot_exp = 0; tot_exp < max_exp;) { |
s = read(fd, &exp, sizeof(uint64_t)); |
if (s != sizeof(uint64_t)) |
handle_error("read"); |
tot_exp += exp; |
print_elapsed_time(); |
printf("read: %" priu64 "; total=%" priu64 "\en", exp, tot_exp); |
} |
exit(exit_success); |
} |
.ee |
.sh see also |
.br eventfd (2), |
.br poll (2), |
.br read (2), |
.br select (2), |
.br setitimer (2), |
.br signalfd (2), |
.br timer_create (2), |
.br timer_gettime (2), |
.br timer_settime (2), |
.br epoll (7), |
.br time (7) |
.sh colophon |
this page is part of release 5.13 of the linux |
.i man-pages |
project. |
a description of the project, |
information about reporting bugs, |
and the latest version of this page, |
can be found at |
\%https://www.kernel.org/doc/man\-pages/. |
.\" copyright (c) 2002 andries brouwer ([email protected]) |
.\" |
.\" %%%license_start(verbatim) |
.\" permission is granted to make and distribute verbatim copies of this |
.\" manual provided the copyright notice and this permission notice are |
.\" preserved on all copies. |
.\" |
.\" permission is granted to copy and distribute modified versions of this |
.\" manual under the conditions for verbatim copying, provided that the |
.\" entire resulting derived work is distributed under the terms of a |
.\" permission notice identical to this one. |
.\" |
.\" since the linux kernel and libraries are constantly changing, this |
.\" manual page may be incorrect or out-of-date. the author(s) assume no |
.\" responsibility for errors or omissions, or for damages resulting from |
.\" the use of the information contained herein. the author(s) may not |
.\" have taken the same level of care in the production of this manual, |
.\" which is licensed free of charge, as they might when working |
.\" professionally. |
.\" |
.\" formatted or processed versions of this manual, if unaccompanied by |
.\" the source, must acknowledge the copyright and authors of this work. |
.\" %%%license_end |
.\" |
.\" inspired by a page written by walter harms. |
.\" |
.th getfsent 3 2021-03-22 "gnu" "linux programmer's manual" |
.sh name |
getfsent, getfsspec, getfsfile, setfsent, endfsent \- handle fstab entries |
.sh synopsis |
.nf |
.b #include <fstab.h> |
.pp |
.b "int setfsent(void);" |
.b "struct fstab *getfsent(void);" |
.b "void endfsent(void);" |
.pp |
.bi "struct fstab *getfsfile(const char *" mount_point ); |
.bi "struct fstab *getfsspec(const char *" special_file ); |
.fi |
.sh description |
these functions read from the file |
.ir /etc/fstab . |
the |
.ir "struct fstab" |
is defined by: |
.pp |
.in +4n |
.ex |
struct fstab { |
char *fs_spec; /* block device name */ |
char *fs_file; /* mount point */ |
char *fs_vfstype; /* filesystem type */ |
char *fs_mntops; /* mount options */ |
const char *fs_type; /* rw/rq/ro/sw/xx option */ |
int fs_freq; /* dump frequency, in days */ |
int fs_passno; /* pass number on parallel dump */ |
}; |
.ee |
.in |
.pp |
here the field |
.i fs_type |
contains (on a *bsd system) |
Subsets and Splits