diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2015-04-01 07:40:15 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2015-04-06 16:13:31 +0200 |
| commit | 5eeca37ce16abc581e8a3ce4e558e19c6485e379 (patch) | |
| tree | 52da1fe9d9857395bf2d67a9a49e4430bcc7bbb9 | |
| parent | 1024e8ffb9275c74e33fd0c9543d06b629b645ef (diff) | |
| download | man-pages-5eeca37ce16abc581e8a3ce4e558e19c6485e379.tar.gz | |
mq_open.3: NOTES: explain differences from the underlying system call
The check for the slash at the start of a pathname is done in glibc
Reported-by: Fabien Pichot <fpichot@bouledef.eu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man3/mq_open.3 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/man3/mq_open.3 b/man3/mq_open.3 index bd39d9f5fb..6c40768cf6 100644 --- a/man3/mq_open.3 +++ b/man3/mq_open.3 @@ -255,6 +255,24 @@ T} Thread safety MT-Safe .TE .SH CONFORMING TO POSIX.1-2001. +.SH NOTES +.SS C library/kernel ABI differences +The +.BR mq_open () +library function is implemented on top of a system call of the same name. +The library function performs the check that the +.I name +starts with a slash (/), giving the +.B EINVAL +error if it does not. +The kernel system call expects +.I name +to contain no preceding slash, +so the C library function passes +.I name +without the preceding slash (i.e., +.IR name+1 ) +to the system call. .SH BUGS In kernels before 2.6.14, the process umask was not applied to the permissions specified in |
