]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
man: Prune unneeded <sys/types.h> include in setproctitle(3)
authorGuilherme Janczak <guilherme.janczak@yandex.com>
Wed, 7 Dec 2022 04:06:37 +0000 (04:06 +0000)
committerGuillem Jover <guillem@hadrons.org>
Tue, 13 Dec 2022 02:49:29 +0000 (03:49 +0100)
FreeBSD first declared the function in unistd.h in 2000:
https://cgit.freebsd.org/src/commit/include/unistd.h?id=9feac5c21886
No other #include line was needed to use the function, but the man page
unnecessarily instructed users to include sys/types.h until 2022-11-29:
https://cgit.freebsd.org/src/commit/?id=5b6f0a5012e9bc37dcb32b57b41e2443a46da620

libbsd first declared the function in unistd.h in 2010 with commit
3fed78e5b08f78256e533788b4bcd6502b0949d7 and inherited the bug from
FreeBSD's man page.

No need to do anything for backwards compat.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
man/setproctitle.3bsd

index 1a790881b6801c011b73a6be3326ed009fc7471d..4a6609fd11e03a6b43b6ef0ea8b546170fbf99e4 100644 (file)
@@ -20,7 +20,7 @@
 .\" $FreeBSD$
 .\"
 .\" The following requests are required for all man pages.
-.Dd December 16, 1995
+.Dd December 7, 2022
 .Dt setproctitle 3bsd
 .Os
 .Sh NAME
@@ -31,7 +31,6 @@
 .ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
-.In sys/types.h
 .In unistd.h
 (See
 .Xr libbsd 7