History log of /freebsd-current/usr.bin/soelim/soelim.c
Revision Date Author Comments
# 5e3934b1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 3ba0c990 19-Sep-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Revert capsicum support

In some corner case VFS lookup is not working and I do not have time to debug
it for now.


# 720ca500 18-Sep-2016 Enji Cooper <ngie@FreeBSD.org>

Fix typo introduced in r305949 with the stable/10 bootstrapping logic

The header is sys/capability.h, not sys/capabilities.h

X-MFC with: r305949
Pointyhat to: bapt
Reported by: allanjude, Jenkins
Sponsored by: Dell EMC Isilon


# e645c6ad 18-Sep-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Simplify the fix for bootstrap tools

building head is not supported from prior to stable/10 where sys/capsicum.h was
named sys/capabilities.h

Reported by: kib


# 8197e93d 18-Sep-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Fix building as bootstrap tools on pre-capsicum.h systems


# 160af931 18-Sep-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Better error checking

if getcwd fails: just ignore it and do not try to adding to the list of possible
path where to find the files.

if fdopen fails, warn and return NULL the rest of the code knows how to deal
with it

Reported by: oshogbo


# b2c71bce 18-Sep-2016 Baptiste Daroussin <bapt@FreeBSD.org>

style(9) fix

Reported by: oshogbo


# 224d9e3e 18-Sep-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Capsicum-ize soelim(1).

As a trick to be able to access all files passed in arguments (readonly) within
the sandbox we first open the root directory, then consider all files as
relative to this file descriptor.

This might be improved once casper add supports for filesystem.

MFC after: 1 month
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D7936


# a43d43d5 29-Jul-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Remove usage of _WITH_GETLINE from usr.bin


# b704d1f2 21-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

add an include on sys/types.h because we do explicitly use size_t
remove unused stdbool.h

Suggested by: schwarze at OpenBSD


# 46cc6349 21-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Use the POSIX PATH_MAX macro from limits.h instead of non standard MAXPATHLEN

Submitted by: schwarze at OpenBSD


# 0330f102 21-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

sort headers


# 2b30fb26 04-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Parse filename until first space then print the rest of the line after file
inclusion

This is the same behaviour of heirloom's soelim


# b4a0618c 01-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Improve compatibility groff's soelim
While here implement -C from GNU groff

Reported by: delphij


# 6f32f49c 01-May-2015 Xin LI <delphij@FreeBSD.org>

Correct - handling.

Reported by: pkg-fallout
X-MFC-with: r282318


# 363da138 01-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Replace groff's soelim by soeliminate(1) renamed soelim(1)


# 6713c83c 22-Jun-2003 Ruslan Ermilov <ru@FreeBSD.org>

We use modernized version of soelim(1) shipped with Groff.


# 961a3727 29-Oct-2002 Greg Lehey <grog@FreeBSD.org>

Output .lf directives.


# f4ac32de 04-Sep-2002 David Malone <dwmalone@FreeBSD.org>

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


# 3f330d7d 21-Mar-2002 Warner Losh <imp@FreeBSD.org>

remove __P


# 45af1a4c 03-Dec-2001 David Malone <dwmalone@FreeBSD.org>

Warns cleanups.


# 7a19d1bb 24-Jun-2001 Dima Dorfman <dd@FreeBSD.org>

Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).


# b7ffba17 10-Jul-2000 Kris Kennaway <kris@FreeBSD.org>

Don't call warn() with no format string.


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# d6c7156e 11-Aug-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3). Add prototype.


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources