]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
4 years agosystem_data_types.7: Add uintN_t family of types
Alejandro Colomar [Tue, 29 Sep 2020 10:30:29 +0000 (12:30 +0200)] 
system_data_types.7: Add uintN_t family of types

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoint8_t.3, int16_t.3, int32_t.3, int64_t.3, intN_t.3: New links to system_data_types(7)
Alejandro Colomar [Tue, 29 Sep 2020 10:30:28 +0000 (12:30 +0200)] 
int8_t.3, int16_t.3, int32_t.3, int64_t.3, intN_t.3: New links to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add intN_t family of types
Alejandro Colomar [Tue, 29 Sep 2020 10:30:27 +0000 (12:30 +0200)] 
system_data_types.7: Add intN_t family of types

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouintmax_t.3: New link to system_data_types(7)
Alejandro Colomar [Tue, 29 Sep 2020 10:30:26 +0000 (12:30 +0200)] 
uintmax_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add 'uintmax_t'
Alejandro Colomar [Tue, 29 Sep 2020 10:30:25 +0000 (12:30 +0200)] 
system_data_types.7: Add 'uintmax_t'

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agointmax_t.3: New link to system_data_types(7)
Alejandro Colomar [Tue, 29 Sep 2020 10:30:24 +0000 (12:30 +0200)] 
intmax_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add 'intmax_t'
Alejandro Colomar [Tue, 29 Sep 2020 10:30:23 +0000 (12:30 +0200)] 
system_data_types.7: Add 'intmax_t'

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostatx.2: Minor edits to Ira Weiny's
Michael Kerrisk [Tue, 29 Sep 2020 08:25:02 +0000 (10:25 +0200)] 
statx.2: Minor edits to Ira Weiny's

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostatx.2: Add STATX_ATTR_DAX
Ira Weiny [Tue, 5 May 2020 00:20:16 +0000 (17:20 -0700)] 
statx.2: Add STATX_ATTR_DAX

Linux 5.8 adds STATX_ATTR_DAX support.

https://lore.kernel.org/lkml/20200428002142.404144-4-ira.weiny@intel.com/
https://lore.kernel.org/lkml/20200504161352.GA13783@magnolia/

Add the text to the statx man page.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fslabel.2: ffix
Michael Kerrisk [Mon, 28 Sep 2020 10:40:13 +0000 (12:40 +0200)] 
ioctl_fslabel.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: ffix
Alejandro Colomar [Sun, 27 Sep 2020 21:13:43 +0000 (23:13 +0200)] 
system_data_types.7: ffix

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agova_list.3: New link to system_data_types(7)
Alejandro Colomar [Sat, 26 Sep 2020 17:08:15 +0000 (19:08 +0200)] 
va_list.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add va_list
Alejandro Colomar [Sat, 26 Sep 2020 17:08:14 +0000 (19:08 +0200)] 
system_data_types.7: Add va_list

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp.2: ffix
Michael Kerrisk [Sat, 26 Sep 2020 13:49:32 +0000 (15:49 +0200)] 
seccomp.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agortld-audit.7: srcfix: semantic newlines
Michael Kerrisk [Fri, 25 Sep 2020 10:48:52 +0000 (12:48 +0200)] 
rtld-audit.7: srcfix: semantic newlines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agortld-audit.7: Clarify la_version handshake
Florian Weimer [Fri, 25 Sep 2020 08:48:37 +0000 (10:48 +0200)] 
rtld-audit.7: Clarify la_version handshake

Returning its argument without further checks is almost always
wrong for la_version.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Minor tweaks to Alejandro Colomar's float_t/double_t patches
Michael Kerrisk [Fri, 25 Sep 2020 11:58:47 +0000 (13:58 +0200)] 
system_data_types.7: Minor tweaks to Alejandro Colomar's float_t/double_t patches

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: srcfix
Alejandro Colomar [Fri, 25 Sep 2020 11:28:23 +0000 (13:28 +0200)] 
system_data_types.7: srcfix

The contents of each type are a logical block that is indented as
a block.  They are not separate paragraphs that happen to be
indented separately, but a set of continuous paragraphs, all at
the same level, indented as a block from the list entry--the name
of the type--.  Therefore, it makes more sense to use block
indentation, represented by .RS/.RE, rather than indenting each
paragraph separately.  That way it's also easier to further indent
a separate paragraph inside a block, which happens for example in
the case of float_t & double_t.  It's simply much easier now to
use .IP specifically in those cases where you want to indent just
a single paragraph.

Also added an ending separator comment line just after the last
type.

[mtk: minor edits to commit message]

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodouble_t.3: New link to system_data_types(7)
Alejandro Colomar [Fri, 25 Sep 2020 07:31:38 +0000 (09:31 +0200)] 
double_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add double_t
Alejandro Colomar [Fri, 25 Sep 2020 11:22:18 +0000 (13:22 +0200)] 
system_data_types.7: Add double_t

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofloat_t.3: New link to system_data_types(7)
Alejandro Colomar [Fri, 25 Sep 2020 07:31:36 +0000 (09:31 +0200)] 
float_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add float_t
Alejandro Colomar [Fri, 25 Sep 2020 11:19:23 +0000 (13:19 +0200)] 
system_data_types.7: Add float_t

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: srcfix
Alejandro Colomar [Fri, 25 Sep 2020 08:03:30 +0000 (10:03 +0200)] 
system_data_types.7: srcfix

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp.2: Use ARRAY_SIZE() macro instead of raw sizeof division
Alejandro Colomar [Fri, 25 Sep 2020 07:31:40 +0000 (09:31 +0200)] 
seccomp.2: Use ARRAY_SIZE() macro instead of raw sizeof division

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp.2: Remove unneeded cast
Alejandro Colomar [Fri, 25 Sep 2020 07:31:39 +0000 (09:31 +0200)] 
seccomp.2: Remove unneeded cast

From the email discussion:

> Hi Alex,
>
> On 9/25/20 9:31 AM, Alejandro Colomar wrote:
>> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
>> ---
>>   man2/seccomp.2 | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/man2/seccomp.2 b/man2/seccomp.2
>> index 58033da1c..d6b856c32 100644
>> --- a/man2/seccomp.2
>> +++ b/man2/seccomp.2
>> @@ -1101,7 +1101,7 @@ install_filter(int syscall_nr, int t_arch, int f_errno)
>>       };
>>
>>       struct sock_fprog prog = {
>> -        .len = (unsigned short) (sizeof(filter) / sizeof(filter[0])),
>> +        .len = sizeof(filter) / sizeof(filter[0]),
>>           .filter = filter,
>>       };
>
> I have a small doubt about this change. With the change,
> there are no compilation warnings.
>
> But, if we change the code to something slightly different:
>
> [[
>      size_t x = (sizeof(filter) / sizeof(filter[0]));
>      struct sock_fprog prog = {
>          .len = x,
>          .filter = filter,
>      };
> ]]
>
> The "cc -Wconversion" gives us the following warning:
>
>      warning: conversion from ‘size_t’ {aka ‘long unsigned int’}
>      to ‘short unsigned int’ may change value
>
> Presumably we don't get a warning for an assignment of the form
>
>      .len = (sizeof(filter) / sizeof(filter[0]))
>
> because the compiler is smart enough to work out that the
> value of the constant expression is within the range of
> "unsigned short".
>
> Your thoughts?

Hi Michael,

I'd say that the cast doesn't fix any problems at all.  It silences a
valid warning, and I'd use a pragma for that (to be more explicit about
the intention of silencing a warning) if I do want -Wconversion enabled
(which usually I don't want, because it's too noisy) and I'm sure that
this won't overflow.  I'd limit the use casts to only when I *really*
need to.

I guess that if you enable -O3, the warning will vanish again because
the compiler will optimize away 'x' (but I didn't test).

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agolconv.3: New link to system_data_types(7)
Alejandro Colomar [Fri, 25 Sep 2020 07:31:34 +0000 (09:31 +0200)] 
lconv.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add lconv
Alejandro Colomar [Fri, 25 Sep 2020 07:31:33 +0000 (09:31 +0200)] 
system_data_types.7: Add lconv

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetgrent_r.3: Declare variables with different types in different lines
Alejandro Colomar [Fri, 25 Sep 2020 07:31:41 +0000 (09:31 +0200)] 
getgrent_r.3: Declare variables with different types in different lines

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: ffix
Alejandro Colomar [Fri, 25 Sep 2020 07:31:32 +0000 (09:31 +0200)] 
system_data_types.7: ffix

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agolldiv_t.3: New link to system_data_types(7)
Alejandro Colomar [Thu, 24 Sep 2020 10:13:09 +0000 (12:13 +0200)] 
lldiv_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add lldiv_t
Alejandro Colomar [Thu, 24 Sep 2020 10:13:08 +0000 (12:13 +0200)] 
system_data_types.7: Add lldiv_t

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoldiv_t.3: New link to system_data_types(7)
Alejandro Colomar [Thu, 24 Sep 2020 10:13:07 +0000 (12:13 +0200)] 
ldiv_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add ldiv_t
Alejandro Colomar [Thu, 24 Sep 2020 10:13:06 +0000 (12:13 +0200)] 
system_data_types.7: Add ldiv_t

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodiv_t.3: New link to system_data_types(7)
Alejandro Colomar [Thu, 24 Sep 2020 10:13:05 +0000 (12:13 +0200)] 
div_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add div_t
Alejandro Colomar [Thu, 24 Sep 2020 10:13:04 +0000 (12:13 +0200)] 
system_data_types.7: Add div_t

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoimaxdiv_t.3: New link to system_data_types(7)
Alejandro Colomar [Thu, 24 Sep 2020 09:58:55 +0000 (11:58 +0200)] 
imaxdiv_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add imaxdiv_t
Alejandro Colomar [Thu, 24 Sep 2020 09:58:54 +0000 (11:58 +0200)] 
system_data_types.7: Add imaxdiv_t

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrfromd.3: tfix
Michael Kerrisk [Thu, 24 Sep 2020 08:02:00 +0000 (10:02 +0200)] 
strfromd.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocore.5: srcfix
Michael Kerrisk [Thu, 24 Sep 2020 08:00:16 +0000 (10:00 +0200)] 
core.5: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocore.5: ffix
Michael Kerrisk [Thu, 24 Sep 2020 07:59:57 +0000 (09:59 +0200)] 
core.5: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoldd.1: Minor tweak to 'ldd' output example
Michael Kerrisk [Thu, 24 Sep 2020 07:57:27 +0000 (09:57 +0200)] 
ldd.1: Minor tweak to 'ldd' output example

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoptrace.2: ffix
Michael Kerrisk [Thu, 24 Sep 2020 07:47:55 +0000 (09:47 +0200)] 
ptrace.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopldd.1, bpf.2, clone.2, dup.2, ioctl_fat.2, nfsservctl.2, open_by_handle_at.2, perf_e...
Michael Kerrisk [Thu, 24 Sep 2020 07:32:31 +0000 (09:32 +0200)] 
pldd.1, bpf.2, clone.2, dup.2, ioctl_fat.2, nfsservctl.2, open_by_handle_at.2, perf_event_open.2, pivot_root.2, request_key.2, sched_setaffinity.2, seccomp.2, select.2, statx.2, dl_iterate_phdr.3, dlinfo.3, dlopen.3, insque.3, newlocale.3, printf.3, pthread_setname_np.3, rpc.3, stdarg.3, strfmon.3, veth.4, proc.5, slabinfo.5, cgroup_namespaces.7, cgroups.7, cpuset.7, fanotify.7, inotify.7, mount_namespaces.7, sock_diag.7, user_namespaces.7, ld.so.8: Use \(aq instead of ' inside monospace fonts

Use \(aq to get an unslanted single quote inside monospace code
blocks. Using a simple ' results in a slanted quote inside PDFs.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopen.2: ffix
Michael Kerrisk [Thu, 24 Sep 2020 07:02:29 +0000 (09:02 +0200)] 
open.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_ns.2, stat.2: Fix signedness of printf specifiers
Alejandro Colomar [Wed, 23 Sep 2020 14:54:26 +0000 (16:54 +0200)] 
ioctl_ns.2, stat.2: Fix signedness of printf specifiers

These variables are either of an unsigned integer type per POSIX;
or of an integer type per POSIX, that Linux defines as an unsigned integer type.

Print them with 'uintmax_t' instead of 'intmax_t' to avoid
big positive numbers being printed as negative numbers.

Bug report:
From: Konstantin Bukin @ 2020-09-13 15:04 UTC
  To: mtk.manpages; +Cc: Konstantin Bukin, linux-man

inode numbers are expected to be positive. Casting them to a signed type
may result in printing negative values. E.g. running example program on
the following file:

$ ls -li test.txt
9280843260537405888 -r--r--r-- 1 kbukin hardware 300 Jul 21 06:36 test.txt

results in the following output:

$ ./example test.txt
ID of containing device:  [0,480]
File type:                regular file
I-node number:            -9165900813172145728
Mode:                     100444 (octal)
Link count:               1
Ownership:                UID=2743   GID=30
Preferred I/O block size: 32768 bytes
File size:                300 bytes
Blocks allocated:         8
Last status change:       Tue Jul 21 06:36:50 2020
Last file access:         Sat Sep 12 14:13:38 2020
Last file modification:   Tue Jul 21 06:36:50 2020

Such erroneous reporting happens for inode values greater than maximum
value which can be stored in signed long. Casting does not seem to be
necessary here. Printing inode as unsigned long fixes the issue.

Reported-by: Konstantin Bukin <kbukin@gmail.com>
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofexcept_t.3: New link to system_data_types(7)
Alejandro Colomar [Wed, 23 Sep 2020 13:17:07 +0000 (15:17 +0200)] 
fexcept_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add 'fexcept_t'
Alejandro Colomar [Wed, 23 Sep 2020 13:17:06 +0000 (15:17 +0200)] 
system_data_types.7: Add 'fexcept_t'

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Reword description of fenv_t to avoid simply quoting POSIX text
Michael Kerrisk [Wed, 23 Sep 2020 08:38:45 +0000 (10:38 +0200)] 
system_data_types.7: Reword description of fenv_t to avoid simply quoting POSIX text

The existing text comes straight from POSIX. In copyright terms,
this is at least a gray area, and in any case, simply reproducing
the text of the standard has limited value, since people can
consult the standard directly.  So, rewrite the text, to simply
quote the description from fenv(3).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: ffix
Alejandro Colomar [Tue, 22 Sep 2020 08:58:14 +0000 (10:58 +0200)] 
system_data_types.7: ffix

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoid_t.3: New link to system_data_types(7)
Michael Kerrisk [Tue, 22 Sep 2020 08:39:33 +0000 (10:39 +0200)] 
id_t.3: New link to system_data_types(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add 'id_t'
Michael Kerrisk [Tue, 22 Sep 2020 08:38:42 +0000 (10:38 +0200)] 
system_data_types.7: Add 'id_t'

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add self to copyright notice
Michael Kerrisk [Tue, 22 Sep 2020 08:29:04 +0000 (10:29 +0200)] 
system_data_types.7: Add self to copyright notice

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogid_t.3: New link to system_data_types(7)
Michael Kerrisk [Tue, 22 Sep 2020 08:29:39 +0000 (10:29 +0200)] 
gid_t.3: New link to system_data_types(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add 'gid_t'
Michael Kerrisk [Tue, 22 Sep 2020 08:28:08 +0000 (10:28 +0200)] 
system_data_types.7: Add 'gid_t'

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouid_t.3: New link to system_data_types(7)
Michael Kerrisk [Tue, 22 Sep 2020 08:23:14 +0000 (10:23 +0200)] 
uid_t.3: New link to system_data_types(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add 'uid_t'
Michael Kerrisk [Tue, 22 Sep 2020 08:22:35 +0000 (10:22 +0200)] 
system_data_types.7: Add 'uid_t'

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agokcmp.2: tfix
Michael Kerrisk [Tue, 22 Sep 2020 08:08:14 +0000 (10:08 +0200)] 
kcmp.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocredentials.7: SEE ALSO: add system_data_types(7)
Michael Kerrisk [Tue, 22 Sep 2020 08:03:07 +0000 (10:03 +0200)] 
credentials.7: SEE ALSO: add system_data_types(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: tfix
Michael Kerrisk [Tue, 22 Sep 2020 07:59:57 +0000 (09:59 +0200)] 
system_data_types.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add further POSIX details for size_t, ssize_t, and suseconds_t
Michael Kerrisk [Tue, 22 Sep 2020 07:56:03 +0000 (09:56 +0200)] 
system_data_types.7: Add further POSIX details for size_t, ssize_t, and suseconds_t

The implementation shall support one or more programming
environments where these types are no wider than 'long'.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopid_t.3: New link to system_data_types(7)
Michael Kerrisk [Tue, 22 Sep 2020 07:52:08 +0000 (09:52 +0200)] 
pid_t.3: New link to system_data_types(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Document pid_t
Michael Kerrisk [Tue, 22 Sep 2020 07:51:41 +0000 (09:51 +0200)] 
system_data_types.7: Document pid_t

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosigset_t.3: New link to system_data_types.7
Michael Kerrisk [Tue, 22 Sep 2020 07:31:14 +0000 (09:31 +0200)] 
sigset_t.3: New link to system_data_types.7

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add description of sigset_t
Michael Kerrisk [Tue, 22 Sep 2020 07:30:31 +0000 (09:30 +0200)] 
system_data_types.7: Add description of sigset_t

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add brief description of regmatch_t
Michael Kerrisk [Tue, 22 Sep 2020 07:18:41 +0000 (09:18 +0200)] 
system_data_types.7: Add brief description of regmatch_t

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofenv_t.3: New link to new documented type in system_data_types(7)
Alejandro Colomar [Mon, 21 Sep 2020 15:25:17 +0000 (17:25 +0200)] 
fenv_t.3: New link to new documented type in system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Document fenv_t
Alejandro Colomar [Mon, 21 Sep 2020 15:25:16 +0000 (17:25 +0200)] 
system_data_types.7: Document fenv_t

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: wfix
Alejandro Colomar [Mon, 21 Sep 2020 14:47:15 +0000 (16:47 +0200)] 
system_data_types.7: wfix

A limit can be defined by other than POSIX

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Minor tweaks to Alejandro Colomar's patch
Michael Kerrisk [Mon, 21 Sep 2020 14:08:18 +0000 (16:08 +0200)] 
system_data_types.7: Minor tweaks to Alejandro Colomar's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Describe use of printf()/scanf() modifiers for integer data...
Alejandro Colomar [Mon, 21 Sep 2020 13:32:57 +0000 (15:32 +0200)] 
system_data_types.7: Describe use of printf()/scanf() modifiers for integer data types

Add note about length modifiers and conversions to [u]intmax_t,
and add a corresponding example.

Reported-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Minor tweaks to Alejandro Colomar's patch
Michael Kerrisk [Sun, 20 Sep 2020 20:14:51 +0000 (22:14 +0200)] 
system_data_types.7: Minor tweaks to Alejandro Colomar's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Specify the length modifiers for the variables that have them
Alejandro Colomar [Sun, 20 Sep 2020 18:14:08 +0000 (20:14 +0200)] 
system_data_types.7: Specify the length modifiers for the variables that have them

Reported-by: Florian Weimer <fweimer@redhat.com>
Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Reviewed-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosiginfo_t.3: New link to new documented type in system_data_types(7)
Alejandro Colomar [Sun, 20 Sep 2020 18:05:52 +0000 (20:05 +0200)] 
siginfo_t.3: New link to new documented type in system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Defer to sigaction(2) for further information on siginfo_t
Michael Kerrisk [Sun, 20 Sep 2020 20:07:11 +0000 (22:07 +0200)] 
system_data_types.7: Defer to sigaction(2) for further information on siginfo_t

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: ffix
Michael Kerrisk [Sun, 20 Sep 2020 20:05:10 +0000 (22:05 +0200)] 
system_data_types.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Document siginfo_t
Alejandro Colomar [Sun, 20 Sep 2020 18:05:51 +0000 (20:05 +0200)] 
system_data_types.7: Document siginfo_t

Note: There are a few members of this structure that are
not required by POSIX (XSI extensions, and such).

I simply chose to not document them at all.

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosyscalls.2: Move system calls from discontinued ports out of main syscall list
Michael Kerrisk [Sun, 20 Sep 2020 12:17:54 +0000 (14:17 +0200)] 
syscalls.2: Move system calls from discontinued ports out of main syscall list

Various ports that had their own indigenous system calls have
been discontinued. Remove those system calls (none of which had
manual pages!) to a separate part of the page, to avoid
cluttering the main list of system calls.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetcwd.2, mq_notify.2, mq_open.2, mq_timedreceive.2, mq_timedsend.2, mq_unlink.2...
Michael Kerrisk [Sun, 20 Sep 2020 11:37:40 +0000 (13:37 +0200)] 
getcwd.2, mq_notify.2, mq_open.2, mq_timedreceive.2, mq_timedsend.2, mq_unlink.2: Reinstate links to section 3 pages that document system calls

Some of the links removed in commit 247c654385128fd0748 should
have been kept, because in some cases there are real system
calls whose wrapper functions are documented in Section 3.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosyscalls.2: Remove duplicate entry for swapcontext(2)
Michael Kerrisk [Sun, 20 Sep 2020 11:21:46 +0000 (13:21 +0200)] 
syscalls.2: Remove duplicate entry for swapcontext(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoip.7: Minor wording fixes
Michael Kerrisk [Sat, 19 Sep 2020 08:26:21 +0000 (10:26 +0200)] 
ip.7: Minor wording fixes

Mainly cleaning up usages of "only".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoip.7: Minor edits to Stephen Smalley's patch
Michael Kerrisk [Sat, 19 Sep 2020 08:22:55 +0000 (10:22 +0200)] 
ip.7: Minor edits to Stephen Smalley's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoip.7: Document IP_PASSSEC for UDP sockets
Stephen Smalley [Thu, 17 Sep 2020 17:31:43 +0000 (13:31 -0400)] 
ip.7: Document IP_PASSSEC for UDP sockets

Document the IP_PASSSEC socket option and SCM_SECURITY
ancillary/control message type for UDP sockets.

IP_PASSSEC for UDP sockets was introduced in Linux 2.6.17 [1].

Example NetLabel and IPSEC configurations and usage of this
option can be found in the SELinux Notebook [2] and SELinux
testsuite [3].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2c7946a7bf45ae86736ab3b43d0085e43947945c

[2] https://github.com/SELinuxProject/selinux-notebook

[3] https://github.com/SELinuxProject/selinux-testsuite

Reviewed-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoip.7, unix.7: Minor edits to Stephen Smalley's patches
Michael Kerrisk [Thu, 17 Sep 2020 07:42:11 +0000 (09:42 +0200)] 
ip.7, unix.7: Minor edits to Stephen Smalley's patches

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agounix.7: srcfix: rewrap source lines in Stephen Smalley's patch
Michael Kerrisk [Thu, 17 Sep 2020 07:36:05 +0000 (09:36 +0200)] 
unix.7: srcfix: rewrap source lines in Stephen Smalley's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoip.7: srcfix: rewrap source lines in Stephen Smalley's patch
Michael Kerrisk [Thu, 17 Sep 2020 07:33:46 +0000 (09:33 +0200)] 
ip.7: srcfix: rewrap source lines in Stephen Smalley's patch

(No content changes.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosocket.7,ip.7: Document SO_PEERSEC for AF_INET sockets
Stephen Smalley [Tue, 15 Sep 2020 16:39:59 +0000 (12:39 -0400)] 
socket.7,ip.7: Document SO_PEERSEC for AF_INET sockets

Augment the description of SO_PEERSEC to cover AF_INET sockets in
addition to the prior description for AF_UNIX.

SO_PEERSEC for TCP sockets was introduced in Linux 2.6.17 [1], and
SO_PEERSEC for SCTP sockets was introduced in Linux 4.17 [2].

This does not cover usage of SCM_SECURITY for UDP sockets, which
was also introduced in the same commit for 2.6.17.

Examples of the necessary labeled IPSEC and NetLabel
configurations to enable use of SO_PEERSEC for TCP and SCTP
sockets can be found in the SELinux Notebook [3] and the
selinux-testsuite [4].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2c7946a7bf45ae86736ab3b43d0085e43947945c

[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d452930fd3b9031e59abfeddb2fa383f1403d61a

[3] https://github.com/SELinuxProject/selinux-notebook

[4] https://github.com/SELinuxProject/selinux-testsuite

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosocket.7, unix.7: Add initial description for SO_PEERSEC
Stephen Smalley [Mon, 14 Sep 2020 18:07:00 +0000 (14:07 -0400)] 
socket.7, unix.7: Add initial description for SO_PEERSEC

SO_PEERSEC was introduced for AF_UNIX stream sockets connected via
connect(2) in Linux 2.6.2 [1] and later augmented to support
AF_UNIX stream and datagram sockets created via socketpair(2) in
Linux 4.18 [2].  Document SO_PEERSEC in the socket.7 and unix.7
man pages following the example of the existing SO_PEERCRED
descriptions.  SO_PEERSEC is also supported on AF_INET sockets
when using labeled IPSEC or NetLabel but defer adding a
description of that support to a separate patch.

The module-independent description of the security context
returned by SO_PEERSEC is from Simon McVittie.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=da6e57a2e6bd7939f610d957afacaf6a131e75ed

[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b811db2cb2aabc910e53d34ebb95a15997c33e7

Reviewed-by: Serge Hallyn <serge@hallyn.com>
Cowritten-by: Simon McVittie <smcv@collabora.com>
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosigevent.7: ffix
Michael Kerrisk [Sat, 19 Sep 2020 08:07:26 +0000 (10:07 +0200)] 
sigevent.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosigevent.7: Note that 'sigev_notify_thread_id' is Linux-specific
Michael Kerrisk [Sat, 19 Sep 2020 08:02:51 +0000 (10:02 +0200)] 
sigevent.7: Note that 'sigev_notify_thread_id' is Linux-specific

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: ffix
Michael Kerrisk [Sat, 19 Sep 2020 07:59:36 +0000 (09:59 +0200)] 
system_data_types.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Minor tweaks
Michael Kerrisk [Fri, 18 Sep 2020 22:16:50 +0000 (00:16 +0200)] 
system_data_types.7: Minor tweaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoaiocb.3: New link to new documented type in system_data_types(7)
Alejandro Colomar [Fri, 18 Sep 2020 17:04:41 +0000 (19:04 +0200)] 
aiocb.3: New link to new documented type in system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Defer to aio(7) for further information about 'struct aiocb'
Michael Kerrisk [Fri, 18 Sep 2020 21:26:29 +0000 (23:26 +0200)] 
system_data_types.7: Defer to aio(7) for further information about 'struct aiocb'

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Document aiocb
Alejandro Colomar [Fri, 18 Sep 2020 17:04:40 +0000 (19:04 +0200)] 
system_data_types.7: Document aiocb

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: srcfix: cosmetic: Visually separate types
Alejandro Colomar [Fri, 18 Sep 2020 17:04:39 +0000 (19:04 +0200)] 
system_data_types.7: srcfix: cosmetic: Visually separate types

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add reference to sigevent(7)
Michael Kerrisk [Fri, 18 Sep 2020 21:08:28 +0000 (23:08 +0200)] 
system_data_types.7: Add reference to sigevent(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Document sigevent
Alejandro Colomar [Fri, 18 Sep 2020 17:04:37 +0000 (19:04 +0200)] 
system_data_types.7: Document sigevent

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: ffix
Alejandro Colomar [Fri, 18 Sep 2020 17:04:35 +0000 (19:04 +0200)] 
system_data_types.7: ffix

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoregmatch_t.3: New link for new documented type in system_data_types(7)
Alejandro Colomar [Fri, 18 Sep 2020 13:29:44 +0000 (15:29 +0200)] 
regmatch_t.3: New link for new documented type in system_data_types(7)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Document regmatch_t
Alejandro Colomar [Fri, 18 Sep 2020 13:29:43 +0000 (15:29 +0200)] 
system_data_types.7: Document regmatch_t

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>