]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
22 months agoImport linuxthreads/man/ git history from glibc
Alejandro Colomar [Tue, 3 Oct 2023 20:32:26 +0000 (22:32 +0200)] 
Import linuxthreads/man/ git history from glibc

I extracted the linuxthreads/man/ subdirectory from the glibc git
repository.  I also removed from that subdir the pages that we already
have in this project.  Then rebased on top of the Linux man-pages HEAD.
Below is the process.

$ git clone https://sourceware.org/git/glibc.git/
$ cd glibc/
$ git filter-repo --path linuxthreads/man/
$ git filter-repo --invert-paths \
--path linuxthreads/man/Makefile \
--path linuxthreads/man/pthread_atfork.man \
--path linuxthreads/man/pthread_attr_init.man \
--path linuxthreads/man/pthread_cancel.man \
--path linuxthreads/man/pthread_cleanup_push.man \
--path linuxthreads/man/pthread_create.man \
--path linuxthreads/man/pthread_detach.man \
--path linuxthreads/man/pthread_equal.man \
--path linuxthreads/man/pthread_exit.man \
--path linuxthreads/man/pthread_join.man \
--path linuxthreads/man/pthread_kill_other_threads_np.man \
--path linuxthreads/man/pthread_mutexattr_init.man \
--path linuxthreads/man/pthread_self.man \
--path linuxthreads/man/pthread_setschedparam.man \
--path linuxthreads/man/pthread_sigmask.man \
--path linuxthreads/man/sem_init.man \
--path linuxthreads/man/troffprepro
$ git tag | xargs git tag -d
$ git branch | xargs git branch -D
$ git remote add man file:///home/alx/src/linux/man-pages/man-pages/.bare.git
$ git fetch man
$ git rebase man/master

Subsequent commits will revert the commit that removed the pages, and
will move them to the appropriate directories.

Link: <https://lore.kernel.org/linux-man/93aba0c9-ad1d-d488-1471-be30b7a8bb0c@gmail.com/T/>
Acked-by: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: Debian GNU Libc Maintainers <debian-glibc@lists.debian.org>
Cc: glibc <libc-alpha@sourceware.org>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Reported-by: Arnav Rawat <rawat.arnav@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agolinuxthreads, linuxthreads_db: Directories removed (preserved in ports repository).
Roland McGrath [Sun, 3 Jul 2005 04:40:34 +0000 (04:40 +0000)] 
linuxthreads, linuxthreads_db: Directories removed (preserved in ports repository).

22 months ago(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
Ulrich Drepper [Wed, 22 Dec 2004 20:10:10 +0000 (20:10 +0000)] 
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.

22 months ago2.5-18.1
Jakub Jelinek [Thu, 12 Jul 2007 18:26:36 +0000 (18:26 +0000)] 
2.5-18.1

22 months agoUpdate.
Ulrich Drepper [Sun, 28 Jul 2002 19:04:09 +0000 (19:04 +0000)] 
Update.

2002-07-28  Ulrich Drepper  <drepper@redhat.com>

* po/fi.po: New file.

22 months agoUpdate.
Ulrich Drepper [Sat, 6 Apr 2002 01:45:15 +0000 (01:45 +0000)] 
Update.

2002-03-23  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/brk.c (__curbrk): Declare.
* sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
* sysdeps/generic/dl-sbrk.c: Likewise.
* sysdeps/unix/arm/dl-brk.S: New file.
* sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
* sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
* sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
* sysdeps/unix/bsd/vax/dl-brk.S: New file.
* sysdeps/unix/i386/dl-brk.S: New file.
* sysdeps/unix/mips/dl-brk.S: New file.
* sysdeps/unix/sparc/dl-brk.S: New file.
* sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
* sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
* sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
* sysdeps/unix/sysv/linux/i386/dl-brk.c: Remove.
* sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Remove.

2002-04-03  Andreas Schwab  <schwab@suse.de>

* Makefile (headers): Add gnu/lib-names.h here instead of
install-others.
($(inst_includedir)/gnu/lib-names.h): Remove explicit
installation rule.
(install-headers): Add dependency on install-headers-nosubdir.
* stdio-common/Makefile (headers): Add bits/stdio_lim.h here
instead of install-others.
($(inst_includedir)/bits/stdio_lim.h): Remove explicit
installation rule.

2002-04-05  Ulrich Drepper  <drepper@redhat.com>

* manual/users.tex (Enable/Disable Setuid): Fix typo in example.
Reported by Sam Roberts <sroberts@uniserve.com>.

2002-04-03  Jakub Jelinek  <jakub@redhat.com>

* elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
* sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
* sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.

2002-04-03  David Mosberger  <davidm@hpl.hp.com>

* sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
(RTLD_START): Ditto.
(__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
dependency violation.

22 months agoCorrect example.
Ulrich Drepper [Sun, 23 May 1999 09:27:35 +0000 (09:27 +0000)] 
Correct example.

22 months agoLinuxThreads library.
Ulrich Drepper [Wed, 11 Mar 1998 12:42:25 +0000 (12:42 +0000)] 
LinuxThreads library.

1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
* linuxthreads/manager.c: Enable resetting of the thread
scheduling policy to SCHED_OTHER when the parent thread
has a different one.
1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
_POSIX_ASYNCHRONOUS_IO.
* sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
mutexes.
* mutex.c: Implement new mutex types.
* internals.h: Include <signal.h>.
* libpthread.map: Add __erno_location and __h_errno_location.
* errno.c: Return pointer to variable actually in use.  This might
not be the one in the thread structure.
* internals.h (struct _pthread_descr_struct): Add new fields p_errnop
and p_h_errnop.
* manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
of manager thread structure.
(pthread_handle_create): Set p_errnop and p_h_errnop members for new
thread.
* pthread.c: Adapt initializer for thread structures.
(__pthread_initial_thread): Set p_errnop and p_h_errnop member.
(__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
current thread to global variables.
1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
* rwlock.c: New file.
* Makefile (libpthread-routines): Add rwlock.
* sysdeps/pthread/pthread.h: Define data structures and declare
functions.
* libpthread.map: Add new functions.
1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
* sysdeps/arm/pt-machine.h: New file; add ARM support.
* sysdeps/arm/Implies: likewise.
* README: Document it.
1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
* signals.c: Remove unneeded initializer for sigwaited, saving a
1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
* semaphore.c (sem_init): Set sem_spinlock only if available.
1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
* mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
* sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
* Makefile: Update from LinuxThreads 0.7.
* internals.h. Likewise.
* manager.c: Likewise.
* mutex.c: Likewise.
* pthread.c: Likewise.
* signals.c: Likewise.
* specific.c: Likewise.
* Examples/ex3.c: Likewise.
1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
* pthread.c (__pthread_reset_main_thread): Close pipe only if still
open.
1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>

* wrapsyscall.c: Add socket functions which are also cancelation
points.

1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>

* specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
New functions for fast thread specific data within libc.

* internals.h: Add new array p_libc_specific to struct
_pthread_descr_struct.

* sysdeps/pthread/bits/libc-lock.h: Declare new functions.

1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>

* semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.

1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>

* internals.h (struct _pthread_descr_struct): Add definitions for
two-level specific key handling.
* manager.c (pthread_handle_create): Initialize specific memory array.
* specific.c: Implement two-level key handling.
* weaks.c: Don't provide dummy key handling.
* sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
Add definition of __libc_key_t.
* sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
as 1024.
Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
PTHREAD_DESTRUCTOR_ITERATIONS.

* manager.c (pthread_handle_create): Compare mmap result with
MAP_FAILED.

* ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
* sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.

1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>

sysdeps/sparc -> sysdeps/sparc/sparc32
sysdeps/sparc64 -> sysdeps/sparc/sparc64

* internals.h: Change definition of THREAD_SELF to be an expression,
not a statement that did a return.
* sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
* sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
Follow Solaris and use a "system reserved" register (%g6) to hold
the thread descriptor.
* sysdeps/sparc/sparc64/pt-machine.h: Likewise.

1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>

* mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
* sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
* sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.

* semaphore.c: Include spinlock.h only when needed.

* specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
keys for entries not in use.

* weaks.c: Implement key handling functions for real.

1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>

Initial sparc64-linux support:
* linuxthreads/sysdeps/sparc64/Implies: New file.
* linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.

1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>

* semaphore.c: Include spinlock.h at correct place.
Patch by HJ Lu.

1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>

The Great Bit File Move:
* sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
* sysdeps/powerpc/semaphorebits.h: Likewise.
* sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
* sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
* sysdeps/pthread/libc-lock.h: -> bits/
* sysdeps/pthread/stdio-lock.h: Likewise.
* sysdeps/unix/sysv/linux/local_lim.h: Likewise.
* sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
* semaphore.h: Likewise.
* sysdeps/pthread/pthread.h: Likewise.

* lockfile.c: <foo.h> -> <bits/foo.h>.
* semaphore.h: Likewise.

* Makefile: (headers): foo.h -> bits/foo.h.
* sysdeps/pthread/Makefile: Likewise.

1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* semaphore.c (sem_init): Set sem_spinlock only if available.

* sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
asm constraints.

1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>

Update from LinuxThreads 0.6.

* attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
and __sched_get_priority_min instead of names without `__'.

* manager.c: Rewrite large parts to implement opaque pthread_t.

* cancel.c: Adapt for opaque pthread_t type.
* condvar.c: Likewise.
* errno.c: Likewise.
* join.c: Likewise.
* mutex.c: Likewise.
* pthread.c: Likewise.
* signals.c: Likewise.
* specific.c: Likewise.
* restart.h: Likewise.
* queue.h: Likewise.
* Examples/ex3.c: Likewise.
* Examples/ex4.c: Likewise.
* sysdeps/pthread/pthread.h: Likewise.

* pthread.c: Accumulate time for all threads in thread manager.

* semaphore.c: Implement fallback implementation for architectures
sometimes missing compare-exchange operations.

* cancel.c (pthread_cancel): Validate handle argument.
* join.c (pthread_join): Likewise.
(pthread_detach): Likewise.
* signals.c (pthread_kill): Likewise.

* spinlock.h (acquire): Use __sched_yield not sched_yield.

* queue.h (enqueue): Enqueue thread according to priority.

* internals.c (struct pthread_start_args): New struct for passing
args to cloning function.
(struct _pthread): Rename to _pthread_descr_struct and adapt for
opaque pthread_t.

* Examples/Makefile (clean): Pass -f option to rm.

* sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
and define TEST_FOR_COMPARE_AND_SWAP.
* sysdeps/i386/i486/pt-machine.h: Removed.

* sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
to 1024.

1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>

* restart.h (suspend): Clear p_signal before suspending.
(suspend_with_cancellation): Likewise.
Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.

* weaks.c: Make __pthread_key_create return 1.
* sysdeps/pthread/libc-lock.h: Define __libc_key_create,
__libc_getspecific, __libc_setspecific, and __libc_key_t.
* sysdeps/pthread/stdio-lock.h: Don't care for implementation not
using libio.

1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>

* sysdeps/sparc/pt-machine (RELEASE): Fix.

1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>

* sysdeps/powerpc/Implies: Added.
* sysdeps/powerpc/pt-machine.h: Added.
* sysdeps/powerpc/semaphorebits.h: Added.

1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>

* linuxtheads/pthread.c (__pthread_initial_thread): Correct
initializer.
(__pthread_manager_thread): Likewise.
Reported by Andreas Jaeger.

1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>

Since sigset_t no longer fits in a register, we can't pass in the
thread's initial mask so easily.  Take this opportunity to simplify
the clone implementation by only accepting a single void* argument.

* linuxthreads/manager.c (__pthread_manager): Put thread vitals
in the thread struct instead of as arguments through clone.
(pthread_start_thread): Look for them there.
* linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
* linuxthreads/pthread.c (pthread_initialize_manager): Revise
clone invocation.

22 months agoproc_sys.5, proc_sys_vm.5: Split /proc/sys/vm/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 13:07:20 +0000 (15:07 +0200)] 
proc_sys.5, proc_sys_vm.5: Split /proc/sys/vm/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_user.5: Split /proc/sys/user/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 13:04:32 +0000 (15:04 +0200)] 
proc_sys.5, proc_sys_user.5: Split /proc/sys/user/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_sunrpc.5: Split /proc/sys/proc/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 13:01:49 +0000 (15:01 +0200)] 
proc_sys.5, proc_sys_sunrpc.5: Split /proc/sys/proc/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_proc.5: Split /proc/sys/proc/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 12:52:25 +0000 (14:52 +0200)] 
proc_sys.5, proc_sys_proc.5: Split /proc/sys/proc/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_net.5: Split /proc/sys/net/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 12:46:20 +0000 (14:46 +0200)] 
proc_sys.5, proc_sys_net.5: Split /proc/sys/net/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_kernel.5: Split /proc/sys/kernel/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 12:42:46 +0000 (14:42 +0200)] 
proc_sys.5, proc_sys_kernel.5: Split /proc/sys/kernel/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_fs.5: Split /proc/sys/fs/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 12:38:59 +0000 (14:38 +0200)] 
proc_sys.5, proc_sys_fs.5: Split /proc/sys/fs/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_dev.5: Split /proc/sys/dev/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 12:31:34 +0000 (14:31 +0200)] 
proc_sys.5, proc_sys_dev.5: Split /proc/sys/dev/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_debug.5: Split /proc/sys/debug/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 12:29:15 +0000 (14:29 +0200)] 
proc_sys.5, proc_sys_debug.5: Split /proc/sys/debug/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoproc_sys.5, proc_sys_abi.5: Split /proc/sys/abi/ from proc_sys(5)
Alejandro Colomar [Sat, 30 Sep 2023 12:22:40 +0000 (14:22 +0200)] 
proc_sys.5, proc_sys_abi.5: Split /proc/sys/abi/ from proc_sys(5)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: sas_address contains the SAS address
Don Brace [Tue, 26 Sep 2023 19:12:02 +0000 (14:12 -0500)] 
smartpqi.4: sas_address contains the SAS address

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: wfix
Don Brace [Tue, 26 Sep 2023 19:12:02 +0000 (14:12 -0500)] 
smartpqi.4: wfix

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: SEE ALSO: Add sg(4) entry
Don Brace [Wed, 27 Sep 2023 15:45:47 +0000 (10:45 -0500)] 
smartpqi.4: SEE ALSO: Add sg(4) entry

The sg driver can interface with smartpqi.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: Add module parameter disable_managed_interrupts
Don Brace [Wed, 27 Sep 2023 15:45:46 +0000 (10:45 -0500)] 
smartpqi.4: Add module parameter disable_managed_interrupts

Add in a description for module parameter disable_managed_interrupts.

This module parameter allows users to disable automatic irq affinity
setting by turning off the PCI_IRQ_AFFINITY flag when requesting
interrupts.

When the flag PCI_IRQ_AFFINITY is set, users cannot change the interrupt
affinity through /proc/irq/<irq#>/*affinity*

Some customers would like to change interrupt affinity based on their
requirements.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoprintf.3: Fix reference to CAVEATS (previously NOTES)
Alejandro Colomar [Wed, 27 Sep 2023 12:33:19 +0000 (14:33 +0200)] 
printf.3: Fix reference to CAVEATS (previously NOTES)

Fixes: 4131356cd ("man*/, man-pages.7: VERSIONS, STANDARDS, HISTORY: Reorganize sections")
Reported-by: Дилян Палаузов <dilyan.palauzov@aegee.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: Update module parameter descriptions
Don Brace [Tue, 26 Sep 2023 19:11:57 +0000 (14:11 -0500)] 
smartpqi.4: Update module parameter descriptions

Minor changes to the descriptions of the following module parameters:
disable_device_id_wildcards
disable_heartbeat
disable_ctrl_shutdown
expose_ld_first
hide_vsep

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: Update copyright, email addresses, and URLs
Don Brace [Tue, 26 Sep 2023 19:11:56 +0000 (14:11 -0500)] 
smartpqi.4: Update copyright, email addresses, and URLs

Add Copyright entry for Microchip.
Change e-mail addresses from Microsemi to Microchip.
Change URL to Microchip.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agotmpfs.5: Extend with new noswap documentation
Luis Chamberlain [Wed, 20 Sep 2023 23:50:22 +0000 (16:50 -0700)] 
tmpfs.5: Extend with new noswap documentation

Linux commit 2c6efe9cf2d7 ("shmem: add support to ignore swap")
merged as of v6.4 added support to disable swap for tmpfs mounts.

This extends the man page to document that.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosystem_data_types.7: Clarify si_addr field.
Elliott Hughes [Tue, 19 Sep 2023 21:16:54 +0000 (14:16 -0700)] 
system_data_types.7: Clarify si_addr field.

This patch reuses the clearer text from sigaction.2 instead.

I've also filed https://www.austingroupbugs.net/view.php?id=1775
to improve POSIX's wording here to not be SIGILL-specific.

Signed-off-by: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: Describe missing UFFDIO_API feature flags
Axel Rasmussen [Tue, 19 Sep 2023 19:02:02 +0000 (12:02 -0700)] 
ioctl_userfaultfd.2: Describe missing UFFDIO_API feature flags

Several new features have been added to the kernel recently, and the man
page wasn't updated to describe these new features.  So, add in
descriptions of any missing features.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: ffix + wfix
Axel Rasmussen [Tue, 19 Sep 2023 19:02:00 +0000 (12:02 -0700)] 
ioctl_userfaultfd.2: ffix + wfix

-  Fix missing paragraph tag.  The lack of this tag yielded no blank
   line in the rendere dpage, which is inconsistent with style
   elsewhere.

-  The description of UFFDIO_WRITEPROTECT was a sentence fragment; the
   last half of the sentence was left out by mistake.  Add it in to fix
   the issue.

-  Move UFFDIO_WRITEPROTECT 'since' to its own line.  All other ioctls
   note the kernel version introduced on a separate line from the ioctl
   name.  Update UFFDIO_WRITEPROTECT to match the existing style.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agouserfaultfd.2: Comment on feature detection in the example program
Axel Rasmussen [Tue, 19 Sep 2023 19:01:59 +0000 (12:01 -0700)] 
userfaultfd.2: Comment on feature detection in the example program

The example program doesn't depend on any extra features, so it does not
make use of the two-step feature handshake process. This is fine, but it
might set a bad example for programs which *do* depend on specific
features (e.g. they may conclude they don't need to do anything to
enable / detect them).

No need to make the example program more complicated: let's just add a
comment indicating why we do it the way we do it in the example, and
describing briefly what a more complicated program would need to do
instead.

The comment is kept rather brief; a full description of this feature
will be included in ioctl_userfaultfd.2 instead.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agouserfaultfd.2: Reword to account for new fault resolution ioctls
Axel Rasmussen [Tue, 19 Sep 2023 19:01:58 +0000 (12:01 -0700)] 
userfaultfd.2: Reword to account for new fault resolution ioctls

Basically, reword the sentence to clarify that this isn't a complete
list.  I don't believe it's worth maintaining a fully complete list
here, instead ioctl_userfaultfd.2 is the place to do that. Let this just
be an example.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agouserfaultfd.2: Briefly mention two-step feature handshake process
Axel Rasmussen [Tue, 19 Sep 2023 19:01:57 +0000 (12:01 -0700)] 
userfaultfd.2: Briefly mention two-step feature handshake process

This process is critical for programs which depend on extra features, so
it's worth mentioning here.

Future commits will much more fully describe it in ioctl_userfaultfd.2.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agomove_pages.2: Relicense to Linux-man-pages-copyleft
Alejandro Colomar [Mon, 25 Sep 2023 23:04:17 +0000 (01:04 +0200)] 
move_pages.2: Relicense to Linux-man-pages-copyleft

Christoph Lameter gave me explicit permission to relicense it for
consistency with the rest of the project.

Michael repeatedly stated that he wanted to use Linux-man-pages-copyleft
to reduce the number of licenses we have in the project.

Cc: Christopher Lameter <cl@os.amperecomputing.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoman*/: Update references to sigevent(7 => 3type)
Alejandro Colomar [Wed, 13 Sep 2023 23:30:37 +0000 (01:30 +0200)] 
man*/: Update references to sigevent(7 => 3type)

Acked-by: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosigevent.3type, sigevent.7: Merge sigevent(7) into sigevent(3type)
Alejandro Colomar [Wed, 13 Sep 2023 23:30:04 +0000 (01:30 +0200)] 
sigevent.3type, sigevent.7: Merge sigevent(7) into sigevent(3type)

Keep the old page, sigevent(7), as a link page to the one in 3type.

Acked-by: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosigevent.3type, sigval.3type, system_data_types.7: Move sigval to sigevent.3type
Alejandro Colomar [Wed, 13 Sep 2023 22:55:06 +0000 (00:55 +0200)] 
sigevent.3type, sigval.3type, system_data_types.7: Move sigval to sigevent.3type

Acked-by: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosigevent.3type, system_data_types.7: Move sigevent to its own page
Alejandro Colomar [Wed, 13 Sep 2023 22:30:50 +0000 (00:30 +0200)] 
sigevent.3type, system_data_types.7: Move sigevent to its own page

Acked-by: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoioctl_tty.2: Document CAP_SYS_ADMIN requirement for TIOCSTI
Günther Noack [Wed, 13 Sep 2023 11:06:31 +0000 (13:06 +0200)] 
ioctl_tty.2: Document CAP_SYS_ADMIN requirement for TIOCSTI

Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Günther Noack <gnoack@google.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoioctl.2: Note "int request" form, HISTORYise a bit
наб [Wed, 13 Sep 2023 16:02:20 +0000 (18:02 +0200)] 
ioctl.2: Note "int request" form, HISTORYise a bit

Bit me in <https://github.com/thecoshman/http/issues/155>:
musl (and, thus, bionic) takes an int!

Kill the "POSIX says 'request' is int" comment;
prior to Issue 7, ioctl() is shaded STREAMS,
it's obsolescent in Issue 7,
and gone completely in Issue 8.
The POSIX interface has never been supported by Linux,
and the common ioctl() interface has never existed in POSIX or the SUS.

Note how the interface evolved in HISTORY. The NetBSD CVS has
  revision 1.1
  date: 1993-03-21 10:45:37 +0100;  author: cgd;  state: Exp;
  branches:  1.1.1;
  Initial revision
  ----------------------------
  revision 1.1.1.2
  date: 1995-02-27 11:49:43 +0100;  author: cgd;  state: Exp;  lines: +6
  -6;
  from Lite
  ----------------------------
  revision 1.1.1.1
  date: 1993-03-21 10:45:37 +0100;  author: cgd;  state: Exp;  lines: +0
  -0;
  initial import of 386bsd-0.1 sources
  ----------------------------
and it's char * in 1.1.1.1 and 1.1.1.2 but ... in 1.1, so hell knows.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Cc: Jakub Wilk <jwilk@jwilk.net>
[alx: ffix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agopopen.3: wfix
Tom Schwindl [Tue, 5 Sep 2023 21:47:46 +0000 (21:47 +0000)] 
popen.3: wfix

Signed-off-by: Tom Schwindl <schwindl@posteo.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agofmod.3: Add example section
Jan Engelhardt [Mon, 4 Sep 2023 18:53:49 +0000 (20:53 +0200)] 
fmod.3: Add example section

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
[alx: ffix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agofmod.3: Add note how to obtain modulus/LPR
Jan Engelhardt [Mon, 4 Sep 2023 18:53:48 +0000 (20:53 +0200)] 
fmod.3: Add note how to obtain modulus/LPR

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
[alx: ffix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoptrdiff_t.3type: tfix: Fix limits of ptrdiff_t
Tom Schwindl [Tue, 5 Sep 2023 14:28:48 +0000 (14:28 +0000)] 
ptrdiff_t.3type: tfix: Fix limits of ptrdiff_t

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoname_to_handle_at.2,fanotify_mark.2: Document the AT_HANDLE_FID flag
Amir Goldstein [Wed, 6 Sep 2023 07:42:51 +0000 (10:42 +0300)] 
name_to_handle_at.2,fanotify_mark.2: Document the AT_HANDLE_FID flag

A flag to indicate that the requested file_handle is not intended
to be used for open_by_handle_at(2) and may be needed to identify
filesystem objects reported in fanotify events.

Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Cc: Tom Schwindl <schwindl@posteo.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agommap.2: Fix missing text
Avinesh Kumar [Tue, 29 Aug 2023 15:29:59 +0000 (20:59 +0530)] 
mmap.2: Fix missing text

Fixes: 090fdddb43 ("memfd_create.2, mmap.2, shmget.2: Document the EPERM for huge page allocations")
Signed-off-by: Avinesh Kumar <akumar@suse.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoinode.7: tfix: Correct the field name for number of blocks
Avinesh Kumar [Tue, 29 Aug 2023 10:30:01 +0000 (16:00 +0530)] 
inode.7: tfix: Correct the field name for number of blocks

Fixes: b48c75727c64 ("inode.7: New page with information about inodes")
Signed-off-by: Avinesh Kumar <akumar@suse.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoinode.7: Remove duplicate field name
Avinesh Kumar [Tue, 29 Aug 2023 10:30:00 +0000 (16:00 +0530)] 
inode.7: Remove duplicate field name

Fixes: b48c75727c64 ("inode.7: New page with information about inodes")
Signed-off-by: Avinesh Kumar <akumar@suse.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoclang-tidy/config.yaml: Silence some warnings
Alejandro Colomar [Thu, 7 Sep 2023 00:39:54 +0000 (02:39 +0200)] 
clang-tidy/config.yaml: Silence some warnings

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoman5/: srcfix: '\" t comment
Alejandro Colomar [Thu, 7 Sep 2023 00:35:02 +0000 (02:35 +0200)] 
man5/: srcfix: '\" t comment

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agosplice.2: srcfix
Alejandro Colomar [Thu, 7 Sep 2023 00:26:24 +0000 (02:26 +0200)] 
splice.2: srcfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agopthread_setschedparam.3: EXAMPLES: Add missing [[noreturn]]
Alejandro Colomar [Wed, 6 Sep 2023 23:29:00 +0000 (01:29 +0200)] 
pthread_setschedparam.3: EXAMPLES: Add missing [[noreturn]]

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agogetutent.3: EXAMPLES: Fix use of time(3)
Alejandro Colomar [Wed, 6 Sep 2023 23:23:11 +0000 (01:23 +0200)] 
getutent.3: EXAMPLES: Fix use of time(3)

time(ptr) was wrong here, because struct utmp::ut_time is a int32_t, not
a time_t.  Also, the use of time(ptr) is obsolete, and time(NULL) is
always preferred.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agogetaddrinfo_a.3: EXAMPLES: Use a safer wrapper around *alloc*(3) functions
Alejandro Colomar [Wed, 6 Sep 2023 22:55:43 +0000 (00:55 +0200)] 
getaddrinfo_a.3: EXAMPLES: Use a safer wrapper around *alloc*(3) functions

These wrappers result in cleaner code, and prevent many mistakes that
can happen when using malloc(3), calloc(3), realloc(3), and functions of
that family.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoRevert "*.mk: DEFAULT_CPPFLAGS: -D_GNU_SOURCE"
Alejandro Colomar [Wed, 6 Sep 2023 21:57:34 +0000 (23:57 +0200)] 
Revert "*.mk: DEFAULT_CPPFLAGS: -D_GNU_SOURCE"

This reverts commit bb42ee0d7793cf0fe2d2ec36c99891227797902c.

Programs should specify _GNU_SOURCE if they need it.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: tfix
Alejandro Colomar [Wed, 6 Sep 2023 21:54:25 +0000 (23:54 +0200)] 
*.mk: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: Have the makefiles as dependencies of all files
Alejandro Colomar [Wed, 6 Sep 2023 11:38:03 +0000 (13:38 +0200)] 
*.mk: Have the makefiles as dependencies of all files

If any makefile is modified, all files should be remade.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoproc_self.5: Fix link page
Alejandro Colomar [Sun, 3 Sep 2023 10:49:53 +0000 (12:49 +0200)] 
proc_self.5: Fix link page

Fixes: 68553d3f22ff ("proc.5, proc_pid.5, proc_self.5: Split /proc/PID/ (and /proc/self/) from proc(5)")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: SHELL, .SHELLFLAGS: Fix the SHELL
Alejandro Colomar [Sun, 3 Sep 2023 00:31:08 +0000 (02:31 +0200)] 
*.mk: SHELL, .SHELLFLAGS: Fix the SHELL

-  Arguments to the shell need to go in .SHELLFLAGS.
-  env(1) needs -S to split arguments to it.
   Maybe it's not necessary in make(1), though; not sure.
-  The scripts are passed to the shell as arguments, not via stdin;
   thus, we need -c.

Cc: Paul Smith <psmith@gnu.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: dist-*: Use a function to define similar rules
Alejandro Colomar [Sat, 2 Sep 2023 21:35:05 +0000 (23:35 +0200)] 
*.mk: dist-*: Use a function to define similar rules

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: GZIPFLAGS: Add -n
Alejandro Colomar [Sat, 2 Sep 2023 20:45:36 +0000 (22:45 +0200)] 
*.mk: GZIPFLAGS: Add -n

It was being hardocded in a recipe, but we shouldn't do that.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agostrtol.3: EXAMPLES: Remove unused include
Alejandro Colomar [Thu, 31 Aug 2023 00:27:37 +0000 (02:27 +0200)] 
strtol.3: EXAMPLES: Remove unused include

Fixes: 93f369892aea ("strtol.3: EXAMPLES: Simplify errno checking")
Reported-by: iwyu(1) (`make lint-c-iwyu`)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: lint-c-iwyu: Fail iff iwyu(1) finds problems
Alejandro Colomar [Thu, 31 Aug 2023 00:23:46 +0000 (02:23 +0200)] 
*.mk: lint-c-iwyu: Fail iff iwyu(1) finds problems

That is, ignore any warnings from clang(1).  We have a different target
for that.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: DEFAULT_CPPFLAGS: -D_GNU_SOURCE
Alejandro Colomar [Thu, 31 Aug 2023 00:08:12 +0000 (02:08 +0200)] 
*.mk: DEFAULT_CPPFLAGS: -D_GNU_SOURCE

To get some definitions that are essential in our programs.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago_Generic.3: EXAMPLES: Silence indent warning
Alejandro Colomar [Thu, 31 Aug 2023 00:02:44 +0000 (02:02 +0200)] 
_Generic.3: EXAMPLES: Silence indent warning

cpplint(1) complained about the previous indentation of the comment.
Oh well.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoCPPLINT.cfg: Ignore warnings with false positives
Alejandro Colomar [Thu, 31 Aug 2023 00:01:49 +0000 (02:01 +0200)] 
CPPLINT.cfg: Ignore warnings with false positives

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agocheckpatch/config: Ignore warnings with false positives
Alejandro Colomar [Wed, 30 Aug 2023 23:54:32 +0000 (01:54 +0200)] 
checkpatch/config: Ignore warnings with false positives

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agopthread_setschedparam.3: EXAMPLES: Add const to function parameter
Alejandro Colomar [Wed, 30 Aug 2023 23:42:52 +0000 (01:42 +0200)] 
pthread_setschedparam.3: EXAMPLES: Add const to function parameter

Just because we can.

Reported-by: cppcheck(1) (`make lint-c-cppcheck`)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agopthread_getattr_np.3: EXAMPLES: Fix bug in comparison
Alejandro Colomar [Wed, 30 Aug 2023 23:37:13 +0000 (01:37 +0200)] 
pthread_getattr_np.3: EXAMPLES: Fix bug in comparison

size_t can't ever be `< 0`.  Instead, the intention was comparing to
`-1`, a sentinel value that was being converted to `SIZE_MAX`.
Comparing with `!= -1` we can keep the `-1` in the source code, which
will be more readable.

Reported-by: cppcheck(1) (`make lint-c-cppcheck`)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agogetaddrinfo_a.3: EXAMPLES: Handle *alloc(3) errors
Alejandro Colomar [Wed, 30 Aug 2023 22:48:29 +0000 (00:48 +0200)] 
getaddrinfo_a.3: EXAMPLES: Handle *alloc(3) errors

-  Use reallocf(3bsd) to avoid memory leaks with misuses of realloc(3).
-  err(3bsd) on allocation errors.

Reported-by: cppcheck(1) (`make lint-c-cppcheck`)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agocppcheck.suppress: knownConditionTrueFalse: Silence a warning with false positives
Alejandro Colomar [Wed, 30 Aug 2023 23:32:49 +0000 (01:32 +0200)] 
cppcheck.suppress: knownConditionTrueFalse: Silence a warning with false positives

Link: <https://lore.kernel.org/linux-man/e13c74fb-e17a-ba14-f1fc-9c75f05090db@kernel.org/T/#u>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agocppcheck.suppress: constParameterCallback: Ignore false positives in libc callbacks
Alejandro Colomar [Wed, 30 Aug 2023 22:32:41 +0000 (00:32 +0200)] 
cppcheck.suppress: constParameterCallback: Ignore false positives in libc callbacks

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agocppcheck.suppress: constParameter: Ignore false positives due to main() argv
Alejandro Colomar [Wed, 30 Aug 2023 22:29:24 +0000 (00:29 +0200)] 
cppcheck.suppress: constParameter: Ignore false positives due to main() argv

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agopthread_getattr_default_np.3: EXAMPLES: Fix conversion specifier for size_t
Alejandro Colomar [Wed, 30 Aug 2023 23:10:54 +0000 (01:10 +0200)] 
pthread_getattr_default_np.3: EXAMPLES: Fix conversion specifier for size_t

Reported-by: cppcheck(1) (`make lint-c-cppcheck`)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoman3/: EXAMPLES: Don't build programs that have UB on purpose
Alejandro Colomar [Wed, 30 Aug 2023 23:05:27 +0000 (01:05 +0200)] 
man3/: EXAMPLES: Don't build programs that have UB on purpose

It doesn't make sense linting and building these, as we know they'll
yell at us.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: Don't include the main Makefile
Alejandro Colomar [Wed, 30 Aug 2023 17:01:07 +0000 (19:01 +0200)] 
*.mk: Don't include the main Makefile

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoman.7: Replace page with `so` of groff_man(7)
G. Branden Robinson [Tue, 29 Aug 2023 11:20:41 +0000 (06:20 -0500)] 
man.7: Replace page with `so` of groff_man(7)

Suggested-by: Alejandro Colomar <alx@kernel.org>
Acked-by: Ingo Schwarze <schwarze@usta.de>
Signed-off-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: man*ext: Make the variables actually usable
Alejandro Colomar [Tue, 29 Aug 2023 10:50:50 +0000 (12:50 +0200)] 
*.mk: man*ext: Make the variables actually usable

There were several important bugs regarding these variables that made
them unusable:

-  intro(*) pages were completely ignoring them.
-  The rules for non-intro pages were also ignoring them.

The variables were only being effectively used for updating the .so
links to other pages, but not the page filenames themselves.

Behavior prior to this patch:

$ rm -rf /tmp/dest;
$ echo '.so man2type/open_how.2type' >man2type/foo.2type;
$ echo '.so man2type/open_how.2type' >man2type/intro.2type;
$ make install-man2type install-manintro \
DESTDIR=/tmp/dest/dir \
man2typedir=/mantoo \
man2typeext=.twotype \
Z=.gz \
LINK_PAGES=symlink;
INSTALL /tmp/dest/dir/mantoo/
INSTALL /tmp/dest/dir/mantoo/foo.2type.gz
INSTALL /tmp/dest/dir/mantoo/open_how.2type.gz
INSTALL /tmp/dest/dir/usr/local/share/man/man1/
INSTALL /tmp/dest/dir/usr/local/share/man/man1/intro.1.gz
INSTALL /tmp/dest/dir/usr/local/share/man/man2type/
INSTALL /tmp/dest/dir/usr/local/share/man/man2type/intro.2type.gz
INSTALL /tmp/dest/dir/usr/local/share/man/man2/
INSTALL /tmp/dest/dir/usr/local/share/man/man2/intro.2.gz
INSTALL /tmp/dest/dir/usr/local/share/man/man3/
[...]
$ readlink /tmp/dest/dir/mantoo/foo.2type.gz;
../mantoo/open_how.twotype.gz
$ readlink /tmp/dest/dir/usr/local/share/man/man2type/intro.2type.gz;
../mantoo/open_how.twotype.gz

Notice the dead symlinks above.

Behavior after this patch:

$ rm -rf /tmp/dest;
$ echo '.so man2type/open_how.2type' >man2type/foo.2type;
$ echo '.so man2type/open_how.2type' >man2type/intro.2type;
$ make install-man2type install-manintro \
DESTDIR=/tmp/dest/dir \
man2typedir=/mantoo \
man2typeext=.twotype \
Z=.gz \
LINK_PAGES=symlink;
INSTALL /tmp/dest/dir/mantoo/
INSTALL /tmp/dest/dir/mantoo/foo.twotype.gz
INSTALL /tmp/dest/dir/mantoo/open_how.twotype.gz
INSTALL /tmp/dest/dir/usr/local/share/man/man1/
INSTALL /tmp/dest/dir/usr/local/share/man/man1/intro.1.gz
INSTALL /tmp/dest/dir/usr/local/share/man/man2/
INSTALL /tmp/dest/dir/usr/local/share/man/man2/intro.2.gz
INSTALL /tmp/dest/dir/mantoo/intro.twotype.gz
INSTALL /tmp/dest/dir/usr/local/share/man/man3/
[...]
$ readlink /tmp/dest/dir/mantoo/foo.twotype.gz;
../mantoo/open_how.twotype.gz
$ readlink /tmp/dest/dir/mantoo/intro.twotype.gz;
../mantoo/open_how.twotype.gz

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: srcfix
Alejandro Colomar [Tue, 29 Aug 2023 10:44:29 +0000 (12:44 +0200)] 
*.mk: srcfix

Cosmetic changes in preparation for next commit.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: man*ext: Don't include $(Z) in $(man*ext)
Alejandro Colomar [Tue, 29 Aug 2023 10:40:23 +0000 (12:40 +0200)] 
*.mk: man*ext: Don't include $(Z) in $(man*ext)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: srcfix
Alejandro Colomar [Tue, 29 Aug 2023 09:11:09 +0000 (11:11 +0200)] 
*.mk: srcfix

For consistency, let's use $(MAN$(s)DIR).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agostrcpy.3, strncat.3, string_copying.7: tfix
Alejandro Colomar [Tue, 29 Aug 2023 08:37:38 +0000 (10:37 +0200)] 
strcpy.3, strncat.3, string_copying.7: tfix

Remove non-breaking space (0xC2A0) that accidentally landed in the
source of some string pages.  Replace by a normal space (0x20).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoscripts/sortman: Treat [_-] as a space
Alejandro Colomar [Mon, 28 Aug 2023 18:31:18 +0000 (20:31 +0200)] 
scripts/sortman: Treat [_-] as a space

This sorts 'cat-woman' next to 'cat', before 'catatonic'.

Suggested-by: Brian Inglis <Brian.Inglis@Shaw.ca>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: Use $(foreach ...) to reduce repetition
Alejandro Colomar [Mon, 28 Aug 2023 00:15:25 +0000 (02:15 +0200)] 
*.mk: Use $(foreach ...) to reduce repetition

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: gzip(1) doesn't need '-' to act as a filter
Alejandro Colomar [Mon, 28 Aug 2023 00:03:16 +0000 (02:03 +0200)] 
*.mk: gzip(1) doesn't need '-' to act as a filter

Remove the redundant special file name.  It would be better to specify
/dev/stdin, if we wanted to specify a file name.  But the command just
works as a filter without a filename, so there's no need for that at
all.  Remove this redundant code.

The other compressors are compatible with gzip(1) in that regard.  Do
the same.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: Pipe to install(1)
Alejandro Colomar [Sun, 27 Aug 2023 23:21:45 +0000 (01:21 +0200)] 
*.mk: Pipe to install(1)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: help-variables: Document $(man*ext)
Alejandro Colomar [Sun, 27 Aug 2023 22:55:18 +0000 (00:55 +0200)] 
*.mk: help-variables: Document $(man*ext)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: MANSECTIONS: Deduce values from existing mandirs
Alejandro Colomar [Sun, 27 Aug 2023 22:47:03 +0000 (00:47 +0200)] 
*.mk: MANSECTIONS: Deduce values from existing mandirs

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: MANSECTIONS: Rename variable
Alejandro Colomar [Sun, 27 Aug 2023 22:36:22 +0000 (00:36 +0200)] 
*.mk: MANSECTIONS: Rename variable

For consistency with other $(MAN*) variables, remove the underscore.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: nothing: Add dummy target
Alejandro Colomar [Sun, 27 Aug 2023 22:29:10 +0000 (00:29 +0200)] 
*.mk: nothing: Add dummy target

It's useful to make literally nothing while debugging or testing the
Makefile.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: Remove 'V' variable
Alejandro Colomar [Sun, 27 Aug 2023 22:07:40 +0000 (00:07 +0200)] 
*.mk: Remove 'V' variable

GNU Make (since version 4.4) provides the same functionality with
`--debug=print`.  Remove this custom variable, which is now redundant
with the new option.

-  Define .SILENT: unconditionally.

-  Define HIDE_ERR unconditionally, and let the user redefine it to an
   empty string.  Document this.

Cc: Paul Smith <psmith@gnu.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months ago*.mk: Use $(foreach ..., $(eval ...) to reduce repetition
Alejandro Colomar [Sun, 27 Aug 2023 13:05:26 +0000 (15:05 +0200)] 
*.mk: Use $(foreach ..., $(eval ...) to reduce repetition

Signed-off-by: Alejandro Colomar <alx@kernel.org>
23 months agoclose.2: Warn more clearly about the risks of close(2) and record locks
Tomáš Golembiovský [Tue, 22 Aug 2023 15:20:25 +0000 (17:20 +0200)] 
close.2: Warn more clearly about the risks of close(2) and record locks

The consequences of using close(2) together with advisory record locks
are quite serious.  Make the warning more explicit.

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoscripts/sortman: Sort 'cat' before 'catatonic'
Alejandro Colomar [Mon, 21 Aug 2023 21:55:18 +0000 (23:55 +0200)] 
scripts/sortman: Sort 'cat' before 'catatonic'

Reported-by: Deri James <deri@chuzzlewit.myzen.co.uk>
Cc: Brian Inglis <Brian.Inglis@Shaw.ca>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoproc*.5: Make sashimi
Alejandro Colomar [Thu, 17 Aug 2023 20:47:16 +0000 (22:47 +0200)] 
proc*.5: Make sashimi

[Merge tag 'proc-sashimi-v1' of <git://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git>]

proc(5) was a huge page, which was quite hard to maintain, extend, read,
and refer to.  Split the page into small pages for the different
directories and files within /proc.  Some pages are still too large
(e.g., proc_sys(5)), and will some day be split even more.

This split keeps the contents of the original page, without modifying
anything; not even the formatting.

The only thing that has been modified in this patches, is that
directories are consistently represented with a trailing slash.

For the file name of the pages, we've used the name of the interface
(e.g., /proc/pid/), removing the leading and trailing '/'s and then
translating the remaining ones as `tr / _` (e.g., proc_pid.5).  The
title of the pages (TH) is consistent with this.  The NAME of the pages,
however, is the actual path name of the interfaces.

The man page references have not been updated, as that was a more
complex and tedious work, so I expect that they'll be slowly updated as
we and users find out.

Link: <https://lore.kernel.org/linux-man/e3a5bc09-e835-9819-4aaa-12959495ac59@kernel.org/T/>
Acked-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Acked-by: Günther Noack <gnoack@google.com>
Acked-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Brian Inglis <Brian.Inglis@Shaw.ca>
Cc: Ingo Schwarze <schwarze@usta.de>
Cc: Colin Watson <cjwatson@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years ago*.mk: Allow any combination of common suffixes to manual pages
Alejandro Colomar [Wed, 16 Aug 2023 22:32:34 +0000 (00:32 +0200)] 
*.mk: Allow any combination of common suffixes to manual pages

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years ago*.mk: Tighten regex for finding manual pages
Alejandro Colomar [Wed, 16 Aug 2023 22:29:45 +0000 (00:29 +0200)] 
*.mk: Tighten regex for finding manual pages

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoINSTALL, README, RELEASE: Update references to GNUmakefile
Alejandro Colomar [Wed, 16 Aug 2023 22:16:25 +0000 (00:16 +0200)] 
INSTALL, README, RELEASE: Update references to GNUmakefile

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoGNUmakefile: tfix
Alejandro Colomar [Wed, 16 Aug 2023 22:09:08 +0000 (00:09 +0200)] 
GNUmakefile: tfix

Fixes: 6701269b7cd5 ("GNUmakefile: mv Makefile GNUmakefile")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoGNUmakefile: mv Makefile GNUmakefile
Alejandro Colomar [Wed, 16 Aug 2023 22:05:45 +0000 (00:05 +0200)] 
GNUmakefile: mv Makefile GNUmakefile

We require GNU Make.  Let's make it explicit by using the appropriate
GNU Make makefile name.  This will avoid users innocently running other
make(1) implementations and be confused by errors, as happened with Ingo
Schwarze long ago.

Cc: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoscripts/sortman: Tighten regex
Alejandro Colomar [Wed, 16 Aug 2023 21:39:58 +0000 (23:39 +0200)] 
scripts/sortman: Tighten regex

This avoids misinterpreting file names like .../binutils-2.17/...

Signed-off-by: Alejandro Colomar <alx@kernel.org>