text
stringlengths 0
234
|
---|
.i size |
is not positive. |
.tp |
.b einval |
.rb ( epoll_create1 ()) |
invalid value specified in |
.ir flags . |
.tp |
.b emfile |
the per-user limit on the number of epoll instances imposed by |
.i /proc/sys/fs/epoll/max_user_instances |
was encountered. |
see |
.br epoll (7) |
for further details. |
.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 enomem |
there was insufficient memory to create the kernel object. |
.sh versions |
.br epoll_create () |
was added to the kernel in version 2.6. |
library support is provided in glibc starting with version 2.3.2. |
.pp |
.\" to be precise: kernel 2.5.44. |
.\" the interface should be finalized by linux kernel 2.5.66. |
.br epoll_create1 () |
was added to the kernel in version 2.6.27. |
library support is provided in glibc starting with version 2.9. |
.sh conforming to |
.br epoll_create () |
and |
.br epoll_create1 () |
are linux-specific. |
.sh notes |
in the initial |
.br epoll_create () |
implementation, the |
.i size |
argument informed the kernel of the number of file descriptors |
that the caller expected to add to the |
.b epoll |
instance. |
the kernel used this information as a hint for the amount of |
space to initially allocate in internal data structures describing events. |
(if necessary, the kernel would allocate more space |
if the caller's usage exceeded the hint given in |
.ir size .) |
nowadays, |
this hint is no longer required |
(the kernel dynamically sizes the required data structures |
without needing the hint), but |
.i size |
must still be greater than zero, |
in order to ensure backward compatibility when new |
.b epoll |
applications are run on older kernels. |
.sh see also |
.br close (2), |
.br epoll_ctl (2), |
.br epoll_wait (2), |
.br epoll (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/. |
.so man3/catanh.3 |
.\" copyright 2005, 2012, 2016 michael kerrisk <mtk.manpages@gmail.com> |
.\" |
.\" %%%license_start(gpl_noversion_oneline) |
.\" distributed under the gpl. |
.\" %%%license_end |
.\" |
.\" 2008-12-04, petr baudis <pasky@suse.cz>: document open_wmemstream() |
.\" |
.th open_memstream 3 2021-03-22 "gnu" "linux programmer's manual" |
.sh name |
open_memstream, open_wmemstream \- open a dynamic memory buffer stream |
.sh synopsis |
.nf |
.b #include <stdio.h> |
.pp |
.bi "file *open_memstream(char **" ptr ", size_t *" sizeloc ); |
.pp |
.b #include <wchar.h> |
.pp |
.bi "file *open_wmemstream(wchar_t **" ptr ", size_t *" sizeloc ); |
.fi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.