text
stringlengths 0
234
|
---|
.tp |
.b enomem |
the allocation of memory for the notification group failed. |
.tp |
.b enosys |
this kernel does not implement |
.br fanotify_init (). |
the fanotify api is available only if the kernel was configured with |
.br config_fanotify . |
.tp |
.b eperm |
the operation is not permitted because the caller lacks the |
.b cap_sys_admin |
capability. |
.sh versions |
.br fanotify_init () |
was introduced in version 2.6.36 of the linux kernel and enabled in version |
2.6.37. |
.sh conforming to |
this system call is linux-specific. |
.sh bugs |
the following bug was present in linux kernels before version 3.18: |
.ip * 3 |
.\" fixed by commit 0b37e097a648aa71d4db1ad108001e95b69a2da4 |
the |
.b o_cloexec |
is ignored when passed in |
.ir event_f_flags . |
.pp |
the following bug was present in linux kernels before version 3.14: |
.ip * 3 |
.\" fixed by commit 48149e9d3a7e924010a0daab30a6197b7d7b6580 |
the |
.i event_f_flags |
argument is not checked for invalid flags. |
flags that are intended only for internal use, |
such as |
.br fmode_exec , |
can be set, and will consequently be set for the file descriptors |
returned when reading from the fanotify file descriptor. |
.sh see also |
.br fanotify_mark (2), |
.br fanotify (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) 2012 by michael kerrisk <[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 |
.\" |
.th mtrace 3 2021-03-22 "gnu" "linux programmer's manual" |
.sh name |
mtrace, muntrace \- malloc tracing |
.sh synopsis |
.nf |
.b "#include <mcheck.h>" |
.pp |
.b "void mtrace(void);" |
.b "void muntrace(void);" |
.fi |
.sh description |
the |
.br mtrace () |
function installs hook functions for the memory-allocation functions |
.rb ( malloc (3), |
.br realloc (3) |
.br memalign (3), |
.br free (3)). |
these hook functions record tracing information about memory allocation |
and deallocation. |
the tracing information can be used to discover memory leaks and |
attempts to free nonallocated memory in a program. |
.pp |
Subsets and Splits