]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
7 days agogrepc: Improve regexes
Alejandro Colomar [Tue, 24 May 2022 20:56:00 +0000 (22:56 +0200)] 
grepc: Improve regexes

- Use the same ammount of spaces for the closing brace as for the
  opening brace.
- Fix position of attributes.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: bugfix
Alejandro Colomar [Sat, 21 May 2022 23:27:14 +0000 (01:27 +0200)] 
grepc: bugfix

SC2068: Double quote array expansions to avoid re-splitting elements.

Reported-by: shellcheck(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: srcfix
Alejandro Colomar [Sat, 21 May 2022 23:25:46 +0000 (01:25 +0200)] 
grepc: srcfix

SC2124: Use $* instead of $@ to concatenate.

Reported-by: shellcheck(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: srcfix
Alejandro Colomar [Sat, 21 May 2022 23:21:22 +0000 (01:21 +0200)] 
grepc: srcfix

SC2004: $/${} is unnecessary on arithmetic variables.

Reported-by: shellcheck(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: Add -i flag as in grep(1)
Alejandro Colomar [Sat, 21 May 2022 22:51:30 +0000 (00:51 +0200)] 
grepc, grepc.1: Add -i flag as in grep(1)

Also, add some symmetry between ${iflag} and ${lflag}.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: Remove -tu from the defaults
Alejandro Colomar [Sat, 21 May 2022 22:29:44 +0000 (00:29 +0200)] 
grepc, grepc.1: Remove -tu from the defaults

Normally, one either wants to see a declaration/definition, or its
uses, but not both at the same time.  Also, there are usually many
more use sites than than definitions, and therefore definitions
are shadowed between all the noise.  Restrict the default to
declarations and definitions, which in my experience seems to be
the most common use case.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: -tu: Allow searching special characters
Alejandro Colomar [Fri, 20 May 2022 02:00:04 +0000 (04:00 +0200)] 
grepc, grepc.1: -tu: Allow searching special characters

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Fix grepc_type_typedef_underlying_struct_union_enum
Alejandro Colomar [Fri, 20 May 2022 01:47:38 +0000 (03:47 +0200)] 
grepc: Fix grepc_type_typedef_underlying_struct_union_enum

When it calls grepc_type_struct_union_enum(), it needs to use a
different file list, since it's searching for an identifier
different from the one passed in the command line.

Also, while at it, improve the quoting of the pattern passed to
pcregrep(1).

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: -tt: Find typedefs to function pointers
Alejandro Colomar [Tue, 17 May 2022 08:59:52 +0000 (10:59 +0200)] 
grepc: -tt: Find typedefs to function pointers

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: tfix
Alejandro Colomar [Mon, 16 May 2022 22:38:10 +0000 (00:38 +0200)] 
grepc: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: srcfix
Alejandro Colomar [Mon, 16 May 2022 14:18:31 +0000 (16:18 +0200)] 
grepc: srcfix

Sort alphabetically the optstring.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Allow a pattern to start with '-'
Alejandro Colomar [Sat, 14 May 2022 23:53:26 +0000 (01:53 +0200)] 
grepc: Allow a pattern to start with '-'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: -t...: Allow more granularity
Alejandro Colomar [Sat, 14 May 2022 23:40:56 +0000 (01:40 +0200)] 
grepc, grepc.1: -t...: Allow more granularity

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc.1: wfix
Alejandro Colomar [Sat, 14 May 2022 23:28:28 +0000 (01:28 +0200)] 
grepc.1: wfix

7 days agogrepc, grepc.1: wfix
Alejandro Colomar [Sat, 14 May 2022 23:24:46 +0000 (01:24 +0200)] 
grepc, grepc.1: wfix

Rename functions to have different starting letters.  Also rename
the macro functions to more closely match ISO C nomenclature.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: -tu: Search also within enum and type definitions
Alejandro Colomar [Sat, 14 May 2022 23:20:39 +0000 (01:20 +0200)] 
grepc, grepc.1: -tu: Search also within enum and type definitions

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_enum_constant: Fix edge cases
Alejandro Colomar [Sat, 14 May 2022 22:52:03 +0000 (00:52 +0200)] 
grepc: grepc_enum_constant: Fix edge cases

Most importantly, typedef enum.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: Add -l flag as in grep(1)
Alejandro Colomar [Sat, 14 May 2022 16:22:47 +0000 (18:22 +0200)] 
grepc, grepc.1: Add -l flag as in grep(1)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_use_macro: tfix
Alejandro Colomar [Fri, 13 May 2022 15:33:58 +0000 (17:33 +0200)] 
grepc: grepc_use_macro: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc.1: ffix
Alejandro Colomar [Fri, 13 May 2022 15:20:03 +0000 (17:20 +0200)] 
grepc.1: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: Add -tu to search for uses
Alejandro Colomar [Fri, 13 May 2022 15:17:45 +0000 (17:17 +0200)] 
grepc, grepc.1: Add -tu to search for uses

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_macro_*: Remove a few false positives
Alejandro Colomar [Fri, 13 May 2022 15:12:47 +0000 (17:12 +0200)] 
grepc: grepc_macro_*: Remove a few false positives

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: srcfix
Alejandro Colomar [Fri, 13 May 2022 15:12:06 +0000 (17:12 +0200)] 
grepc: srcfix

Use alphabetic order.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: Add -k option for a more compact output
Alejandro Colomar [Thu, 12 May 2022 13:15:28 +0000 (15:15 +0200)] 
grepc, grepc.1: Add -k option for a more compact output

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: Add -t option to restrict the search to a type of code.
Alejandro Colomar [Thu, 12 May 2022 12:10:53 +0000 (14:10 +0200)] 
grepc, grepc.1: Add -t option to restrict the search to a type of code.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: srcfix
Alejandro Colomar [Thu, 12 May 2022 11:47:38 +0000 (13:47 +0200)] 
grepc: srcfix

Improve grouping so that adding flags for running the different
functions is simple.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: Don't print leading blank lines.
Alejandro Colomar [Wed, 11 May 2022 19:36:45 +0000 (21:36 +0200)] 
grepc, grepc.1: Don't print leading blank lines.

Also, update the manual page EXAMPLES regarding blank lines.

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc.1: SYNOPSIS: ffix
Alejandro Colomar [Wed, 11 May 2022 19:24:11 +0000 (21:24 +0200)] 
grepc.1: SYNOPSIS: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: Add optional FILE trailing arguments
Alejandro Colomar [Wed, 11 May 2022 18:46:01 +0000 (20:46 +0200)] 
grepc, grepc.1: Add optional FILE trailing arguments

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: -g: Add option to restrict search to files tracked by git
Alejandro Colomar [Wed, 11 May 2022 17:51:46 +0000 (19:51 +0200)] 
grepc, grepc.1: -g: Add option to restrict search to files tracked by git

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: -x: Add option to edit file extension
Alejandro Colomar [Wed, 11 May 2022 17:51:46 +0000 (19:51 +0200)] 
grepc, grepc.1: -x: Add option to edit file extension

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc, grepc.1: -h: Add option to print the usage message.
Alejandro Colomar [Wed, 11 May 2022 17:51:46 +0000 (19:51 +0200)] 
grepc, grepc.1: -h: Add option to print the usage message.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Usage: ffix
Alejandro Colomar [Wed, 11 May 2022 16:53:30 +0000 (18:53 +0200)] 
grepc: Usage: ffix

Using caps instead of <> will be nicer when we add options and
optional arguments for the files/directories:

  Usage: grepc [OPTION]... IDENTIFIER [FILE]...

vs

  Usage: grepc [<option>]... IDENTIFIER [<file>]...

Also, it's what pcregrep(1) and GNU grep(1) use, so it's good to
use the same syntax here.

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc.1: wfix
Alejandro Colomar [Tue, 10 May 2022 21:34:58 +0000 (23:34 +0200)] 
grepc.1: wfix

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Simplify escaping \
Alejandro Colomar [Tue, 10 May 2022 17:35:15 +0000 (19:35 +0200)] 
grepc: Simplify escaping \

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Use -r option to read(1)
Alejandro Colomar [Tue, 10 May 2022 17:33:15 +0000 (19:33 +0200)] 
grepc: Use -r option to read(1)

Let's fall on the safe side.

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Make it portable to sh(1)
Alejandro Colomar [Tue, 10 May 2022 17:24:26 +0000 (19:24 +0200)] 
grepc: Make it portable to sh(1)

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Use a portable shebang
Alejandro Colomar [Tue, 10 May 2022 17:17:51 +0000 (19:17 +0200)] 
grepc: Use a portable shebang

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Remove spurious blank lines
Alejandro Colomar [Tue, 10 May 2022 17:09:40 +0000 (19:09 +0200)] 
grepc: Remove spurious blank lines

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Remove blank line between header and code
Alejandro Colomar [Tue, 10 May 2022 16:48:01 +0000 (18:48 +0200)] 
grepc: Remove blank line between header and code

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_linux_syscall_def: Improve readability of regex
Alejandro Colomar [Tue, 10 May 2022 16:46:46 +0000 (18:46 +0200)] 
grepc: grepc_linux_syscall_def: Improve readability of regex

This improves the readability of the regex, and also the
robustness, at the cost of just a few ms.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_find_files: Get a reduced list of files once
Alejandro Colomar [Tue, 10 May 2022 16:44:58 +0000 (18:44 +0200)] 
grepc: grepc_find_files: Get a reduced list of files once

Instead of running find and grep -l for every function, store the
result in a temporary file for reuse in all functions.

This is a considerable speedup, between 3x and 10x in some tests
within the Linux kernel source code.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Fix some corner cases
Alejandro Colomar [Mon, 9 May 2022 22:59:06 +0000 (00:59 +0200)] 
grepc: Fix some corner cases

Those two spaces are for handling some insane GNU style.  Those
are always spaces, so let's use '  ' instead of '\s\s' to make
sure we don't match two tabs, or things like that.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc.1: ffix
Alejandro Colomar [Mon, 9 May 2022 20:18:08 +0000 (22:18 +0200)] 
grepc.1: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc.1: Add break points in URI
Alejandro Colomar [Mon, 9 May 2022 16:08:41 +0000 (18:08 +0200)] 
grepc.1: Add break points in URI

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc.1: EXAMPLES: Add example with nxt_sprintf
Alejandro Colomar [Mon, 9 May 2022 15:45:44 +0000 (17:45 +0200)] 
grepc.1: EXAMPLES: Add example with nxt_sprintf

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc.1: Add manual page
Alejandro Colomar [Mon, 9 May 2022 15:19:07 +0000 (17:19 +0200)] 
grepc.1: Add manual page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Use '' when possible
Alejandro Colomar [Mon, 9 May 2022 14:54:09 +0000 (16:54 +0200)] 
grepc: Use '' when possible

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Fix some corner cases
Alejandro Colomar [Mon, 9 May 2022 14:04:54 +0000 (16:04 +0200)] 
grepc: Fix some corner cases

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type_*: Fix some typedef corner cases
Alejandro Colomar [Mon, 9 May 2022 13:21:06 +0000 (15:21 +0200)] 
grepc: grepc_type_*: Fix some typedef corner cases

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_macro_simple: Fix regex for empty macro
Alejandro Colomar [Mon, 9 May 2022 12:58:37 +0000 (14:58 +0200)] 
grepc: grepc_macro_simple: Fix regex for empty macro

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Optimize
Alejandro Colomar [Mon, 9 May 2022 12:35:57 +0000 (14:35 +0200)] 
grepc: Optimize

Use 2 grep(1) filters instead of 1, to be able to filter better
before the multiline pcregrep(1) filter, which is considerably
slower.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_enum_constant, grepc_type_typedef_simple: Remove a few false positives
Alejandro Colomar [Mon, 9 May 2022 11:51:52 +0000 (13:51 +0200)] 
grepc: grepc_enum_constant, grepc_type_typedef_simple: Remove a few false positives

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_linux*, grepc_syscall*: Rename functions to clearly refer to linux
Alejandro Colomar [Mon, 9 May 2022 11:43:30 +0000 (13:43 +0200)] 
grepc: grepc_linux*, grepc_syscall*: Rename functions to clearly refer to linux

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type_struct_union_enum: Don't duplicate output
Alejandro Colomar [Mon, 9 May 2022 11:38:43 +0000 (13:38 +0200)] 
grepc: grepc_type_struct_union_enum: Don't duplicate output

In definitions of the form

typedef struct foo {...} foo;

grepc_type_typedef_struct_union_enum() is already finding it.
Remove the duplicate here.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_glibc_math: Support glibc math functions
Alejandro Colomar [Mon, 9 May 2022 11:20:54 +0000 (13:20 +0200)] 
grepc: grepc_glibc_math: Support glibc math functions

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_helper: Add helper function to remove repeated code
Alejandro Colomar [Sun, 8 May 2022 22:59:27 +0000 (00:59 +0200)] 
grepc: grepc_helper: Add helper function to remove repeated code

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_func_decl: Optimize
Alejandro Colomar [Sun, 8 May 2022 22:46:56 +0000 (00:46 +0200)] 
grepc: grepc_func_decl: Optimize

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_enum_constant: Fix pattern
Alejandro Colomar [Sun, 8 May 2022 22:46:43 +0000 (00:46 +0200)] 
grepc: grepc_enum_constant: Fix pattern

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type_struct_union_enum: Optimize
Alejandro Colomar [Sun, 8 May 2022 22:44:11 +0000 (00:44 +0200)] 
grepc: grepc_type_struct_union_enum: Optimize

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type_struct_union_enum: Allow attributes before struct|union|enum keyword
Alejandro Colomar [Sun, 8 May 2022 22:42:38 +0000 (00:42 +0200)] 
grepc: grepc_type_struct_union_enum: Allow attributes before struct|union|enum keyword

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type_typedef_underlying_struct_union_enum: Don't duplicate output
Alejandro Colomar [Sun, 8 May 2022 22:37:18 +0000 (00:37 +0200)] 
grepc: grepc_type_typedef_underlying_struct_union_enum: Don't duplicate output

In typedefs of the form 'typedef struct foo foo;', don't print the
structure twice.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Allow tabs
Alejandro Colomar [Sun, 8 May 2022 22:10:49 +0000 (00:10 +0200)] 
grepc: Allow tabs

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type*: Simplify finding typedefs
Alejandro Colomar [Sun, 8 May 2022 22:09:03 +0000 (00:09 +0200)] 
grepc: grepc_type*: Simplify finding typedefs

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Consistently use Perl regex
Alejandro Colomar [Sun, 8 May 2022 21:52:23 +0000 (23:52 +0200)] 
grepc: Consistently use Perl regex

If we use different regex types within the program, then users
can't use regex patterns in the identifier due to
incompatibilities.  Let's use Perl regex everywhere we can, so
that users can consistently use Perl regex patterns in the
identifier.  Example:

$ grepc (vf|as)printf;

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_enum_constant: Find enumeration constant definitions
Alejandro Colomar [Sun, 8 May 2022 20:04:55 +0000 (22:04 +0200)] 
grepc: grepc_enum_constant: Find enumeration constant definitions

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_syscall_decl: Optimize
Alejandro Colomar [Sun, 8 May 2022 11:35:19 +0000 (13:35 +0200)] 
grepc: grepc_syscall_decl: Optimize

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grep_macro_*: Allow tabs
Alejandro Colomar [Sun, 8 May 2022 11:33:16 +0000 (13:33 +0200)] 
grepc: grep_macro_*: Allow tabs

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_func_def: Find kernel function definitions
Alejandro Colomar [Sun, 8 May 2022 11:15:41 +0000 (13:15 +0200)] 
grepc: grepc_func_def: Find kernel function definitions

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_syscall: Find kernel syscalls (both declaration and definition)
Alejandro Colomar [Fri, 6 May 2022 14:56:43 +0000 (16:56 +0200)] 
grepc: grepc_syscall: Find kernel syscalls (both declaration and definition)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_func_def: Increase robustness of regex
Alejandro Colomar [Fri, 6 May 2022 21:16:42 +0000 (23:16 +0200)] 
grepc: grepc_func_def: Increase robustness of regex

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type_struct_union_enum: Increase robustness of regex
Alejandro Colomar [Fri, 6 May 2022 08:31:52 +0000 (10:31 +0200)] 
grepc: grepc_type_struct_union_enum: Increase robustness of regex

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type_typedef_underlying_struct_union_enum: Fix corner cases
Alejandro Colomar [Fri, 6 May 2022 00:12:13 +0000 (02:12 +0200)] 
grepc: grepc_type_typedef_underlying_struct_union_enum: Fix corner cases

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: Fix parsing of arguments
Alejandro Colomar [Fri, 6 May 2022 00:10:21 +0000 (02:10 +0200)] 
grepc: Fix parsing of arguments

Allow one single argument only.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grepc_type_struct_union_enum: Support glibc
Alejandro Colomar [Thu, 5 May 2022 23:38:50 +0000 (01:38 +0200)] 
grepc: grepc_type_struct_union_enum: Support glibc

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agogrepc: grep_func_decl: Support glibc
Alejandro Colomar [Thu, 5 May 2022 23:32:57 +0000 (01:32 +0200)] 
grepc: grep_func_decl: Support glibc

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agobin/grepc: Add program
Alejandro Colomar [Thu, 5 May 2022 15:44:03 +0000 (17:44 +0200)] 
bin/grepc: Add program

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
7 days agoSPONSORS: Two sponsors didn't renew this year
Alejandro Colomar [Wed, 29 Oct 2025 13:29:17 +0000 (14:29 +0100)] 
SPONSORS: Two sponsors didn't renew this year

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoStart of man-pages-NEXT: Move Changes to Changes.old
Alejandro Colomar [Wed, 29 Oct 2025 13:26:25 +0000 (14:26 +0100)] 
Start of man-pages-NEXT: Move Changes to Changes.old

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agolsm: Released 6.16
Alejandro Colomar [Wed, 29 Oct 2025 13:04:18 +0000 (14:04 +0100)] 
lsm: Released 6.16

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoChanges: Ready for 6.16 man-pages-6.16
Alejandro Colomar [Wed, 29 Oct 2025 12:48:48 +0000 (13:48 +0100)] 
Changes: Ready for 6.16

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoRELEASE: Sort tags using sort(1) -V
Alejandro Colomar [Wed, 29 Oct 2025 12:52:52 +0000 (13:52 +0100)] 
RELEASE: Sort tags using sort(1) -V

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoChanges[.old]: Move Changes to Changes.old
Alejandro Colomar [Wed, 29 Oct 2025 11:47:20 +0000 (12:47 +0100)] 
Changes[.old]: Move Changes to Changes.old

I forgot to do it right after releasing man-pages-6.15.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man7/bpf-helpers.7: Refresh page from Linux v6.17
Alejandro Colomar [Wed, 29 Oct 2025 11:35:36 +0000 (12:35 +0100)] 
man/man7/bpf-helpers.7: Refresh page from Linux v6.17

Scripted change:

$ ~/src/linux/linux/v6.17/scripts/bpf_doc.py \
| rst2man \
>man7/bpf-helpers.7;

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/: Update some APIs for POSIX.1-2024 posix24
Alejandro Colomar [Wed, 29 Oct 2025 11:27:06 +0000 (12:27 +0100)] 
man/: Update some APIs for POSIX.1-2024

This work is incomplete, but waiting until all pages have been updated
would unnecessarily delay publishing these changes, which are already
useful.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man3/ftime.3: SYNOPSIS: Declare ftime with [[deprecated]]
Collin Funk [Thu, 19 Jun 2025 04:22:10 +0000 (21:22 -0700)] 
man/man3/ftime.3: SYNOPSIS: Declare ftime with [[deprecated]]

This function was marked as legacy in POSIX.1-2001 and has been removed
from many systems, including glibc.

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Message-ID: <5924c3b09d8e373be6ac1b5ca663b8ad7d106d93.1750306917.git.collin.funk1@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man2/gettimeofday.2: Declare functions with [[deprecated]]
Collin Funk [Thu, 19 Jun 2025 22:43:49 +0000 (15:43 -0700)] 
man/man2/gettimeofday.2: Declare functions with [[deprecated]]

As documented in the STANDARDS section, gettimeofday(2) was deprecated
in POSIX.1-2008 and removed in POSIX.1-2024.  Mark it and
settimeofday(2) with [[deprecated]], and mention clock_settime(2) as a
modern and standardized alternative to settimeofday(2).

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Message-ID: <2d37d5a9251af3c1d25cf8e73e3585a9955d5772.1750373011.git.collin.funk1@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man3/ptsname.3: VERSIONS: Document ptsname_r(3) incompatibility on FreeBSD
Collin Funk [Fri, 13 Jun 2025 05:28:50 +0000 (22:28 -0700)] 
man/man3/ptsname.3: VERSIONS: Document ptsname_r(3) incompatibility on FreeBSD

The FreeBSD implementation of ptsname_r(2) returns -1 on error and sets
errno, instead of just returning the errno.  Document this issue for
programs written with portability in mind.

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Message-ID: <37f138bc5c5e6604f0a0afcc531694387d2cc424.1749792527.git.collin.funk1@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man3*/: STANDARDS: Update APIs for POSIX.1-2024
Alejandro Colomar [Sun, 18 May 2025 09:43:40 +0000 (11:43 +0200)] 
man/man3*/: STANDARDS: Update APIs for POSIX.1-2024

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man3type/time_t.3type: STANDARDS, HISTORY: POSIX.1-2008 removed useconds_t
Alejandro Colomar [Sun, 21 Sep 2025 17:36:29 +0000 (19:36 +0200)] 
man/man3type/time_t.3type: STANDARDS, HISTORY: POSIX.1-2008 removed useconds_t

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man3type/time_t.3type: STANDARDS, HISTORY: Update time_t for POSIX.1-2024
Alejandro Colomar [Sun, 21 Sep 2025 17:22:31 +0000 (19:22 +0200)] 
man/man3type/time_t.3type: STANDARDS, HISTORY: Update time_t for POSIX.1-2024

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man3/getenv.3: Mention secure_getenv() was standardized in POSIX-1.2024
Collin Funk [Sat, 17 May 2025 22:10:41 +0000 (15:10 -0700)] 
man/man3/getenv.3: Mention secure_getenv() was standardized in POSIX-1.2024

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Message-ID: <2d55b75480ae862a622ac46e7e6c7628f6efc45d.1747519811.git.collin.funk1@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man7/signal.7: Mention SIGWINCH was standardized in POSIX-1.2024
Collin Funk [Sat, 17 May 2025 22:10:40 +0000 (15:10 -0700)] 
man/man7/signal.7: Mention SIGWINCH was standardized in POSIX-1.2024

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Message-ID: <bae6bc16f9ab6bd3e5c30dc8e11bd83566b06a6f.1747519811.git.collin.funk1@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man3/ptsname.3: Mention ptsname_r() was standardized in POSIX-1.2024
Collin Funk [Sat, 17 May 2025 20:53:04 +0000 (13:53 -0700)] 
man/man3/ptsname.3: Mention ptsname_r() was standardized in POSIX-1.2024

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Message-ID: <883d4a9b8cfb757a080710cf0133be5d0e12adce.1747515178.git.collin.funk1@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man2/: STANDARDS: Update system calls for POSIX.1-2024
Alejandro Colomar [Mon, 14 Apr 2025 20:16:10 +0000 (22:16 +0200)] 
man/man2/: STANDARDS: Update system calls for POSIX.1-2024

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man2/open.2: Simplify STANDARDS, and move part of it to HISTORY
Alejandro Colomar [Sat, 17 May 2025 15:43:45 +0000 (17:43 +0200)] 
man/man2/open.2: Simplify STANDARDS, and move part of it to HISTORY

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/: Update fork(2) for POSIX.1-2024, and add references to _Fork(3)
Alejandro Colomar [Sat, 17 May 2025 12:10:49 +0000 (14:10 +0200)] 
man/: Update fork(2) for POSIX.1-2024, and add references to _Fork(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man3/_Fork.3: Document _Fork()
Alejandro Colomar [Sat, 17 May 2025 12:09:14 +0000 (14:09 +0200)] 
man/man3/_Fork.3: Document _Fork()

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man7/pathname.7: VERSIONS: Linux doesn't disallow new-line characters
Alejandro Colomar [Sat, 17 May 2025 05:56:17 +0000 (07:56 +0200)] 
man/man7/pathname.7: VERSIONS: Linux doesn't disallow new-line characters

POSIX.1-2024 encourages implementations to disallow new-line characters,
but Linux doesn't follow that.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 days agoman/man2/close.2: CAVEATS: Document divergence from POSIX.1-2024
Alejandro Colomar [Fri, 16 May 2025 12:35:16 +0000 (14:35 +0200)] 
man/man2/close.2: CAVEATS: Document divergence from POSIX.1-2024

POSIX.1-2024 now mandates a behavior different from what Linux (and many
other implementations) does.  It requires that we report EINPROGRESS for
what now is EINTR.

There are no plans to conform to POSIX.1-2024 within the Linux kernel,
so document this divergence.  Keep POSIX.1-2008 as the standard to
which we conform in STANDARDS.

Link: <https://sourceware.org/bugzilla/show_bug.cgi?id=14627>
Link: <https://pubs.opengroup.org/onlinepubs/9799919799/functions/close.html>
Cc: Jan Kara <jack@suse.cz>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Rich Felker <dalias@libc.org>
Cc: <linux-fsdevel@vger.kernel.org>
Cc: <linux-api@vger.kernel.org>
Cc: <libc-alpha@sourceware.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>