OpenBSD CVS

CVS log for src/usr.bin/nl/nl.c


[BACK] Up to [local] / src / usr.bin / nl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 4 23:50:49 2022 UTC (17 months, 2 weeks ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.  We can
handle this case with the "default" failure case with no loss of
legibility.  Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@.  With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2

ok naddy@ millert@ dlg@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Apr 21 01:08:46 2019 UTC (5 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)

pledge "stdio" after opening file and before doing operations
from Rafael Neves

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:08 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Change all tame callers to namechange to pledge(2).

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 7 07:00:01 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored)

tame "stdio rpath".  could go crazy and handle the non-filename case,
but i am feeling some fatigue.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 21 22:28:09 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.3: +1 -3 lines
Diff to previous 1.3 (colored)

Do not need sys/cdefs.h

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 20 01:25:23 2014 UTC (10 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.2: +5 -9 lines
Diff to previous 1.2 (colored)

Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr.

ok jsing@ krw@ millert@

Revision 1.2 / (download) - annotate - [select for diffs], Fri Nov 15 22:20:04 2013 UTC (10 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Include unistd.h as it is the standard location for getopt().

Revision 1.1 / (download) - annotate - [select for diffs], Sun Sep 8 18:59:07 2013 UTC (10 years, 8 months ago) by jca
Branch: MAIN

Import nl(1) from the NetBSD source tree, with local changes discussed
on tech@, among which `-' syntax for stdin, multibyte delimiter support
(based on FreeBSD) and various code simplifications.  Original diffs
from pascal@ and later Arto Jonsson (ajonsson at kapsi dot fi),
comments and work by others, especially millert@.
"That looks good to me." millert@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.