History log of /freebsd-14.2/usr.bin/seq/seq.c (Results 1 – 17 of 17)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# 1d386b48 16-Aug-2023 Warner Losh <[email protected]>

Remove $FreeBSD$: one-line .c pattern

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


# 8f8da1bc 25-Jun-2023 Ed Maste <[email protected]>

seq: style(9) cleanup

This is in part for diff reduction with OpenBSD.

Sponsored by: The FreeBSD Foundation


# 5dae8905 19-Jun-2023 Ed Maste <[email protected]>

seq: combine asprintf return value checks

Error handling is identical for all of these failure cases.

Sponsored by: The FreeBSD Foundation


# e54db9a9 19-Jun-2023 Ed Maste <[email protected]>

seq: fix check for rounding error/truncation

Based on OpenBSD 30f0fd29ba6c:
> We need to compare the printable version of the last value displayed,
> not the floating point representation. Otherwis

seq: fix check for rounding error/truncation

Based on OpenBSD 30f0fd29ba6c:
> We need to compare the printable version of the last value displayed,
> not the floating point representation. Otherwise, we may print the
> last value twice.

PR: 271964
Reported by: Daniel Kolesa
Reviewed by: yuripv
Obtained from: OpenBSD
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40601

show more ...


# b61a5730 10-May-2023 Warner Losh <[email protected]>

spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD

The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch
up to that fact and revert to their recommended match of BS

spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD

The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix

show more ...


Revision tags: release/13.2.0, release/12.4.0
# 6da5e5d6 30-Sep-2022 Mariusz Zaborski <[email protected]>

seq: fix style nits

MFC after: 2 weeks


# 94c4f663 30-Sep-2022 Mariusz Zaborski <[email protected]>

seq: fix potential NULL ptr reference

asprintf(3) allocates memory, and there isn't any guarantee of success.

MFC after: 2 weeks
Obtained from: OpenBSD


Revision tags: release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0
# 905fdc3f 07-Mar-2019 Conrad Meyer <[email protected]>

seq(1): Require user-provided format strings to contain a conversion

This matches GNU seq, for example.

For users that are looking for similar functionality, 'jot -b foo N' will
print 'foo' N times

seq(1): Require user-provided format strings to contain a conversion

This matches GNU seq, for example.

For users that are looking for similar functionality, 'jot -b foo N' will
print 'foo' N times. See jot(1).

PR: 236347
Reported by: <y AT maya.st>
Sponsored by: Dell EMC Isilon

show more ...


Revision tags: release/12.0.0, release/11.2.0
# ad4e78b5 02-May-2018 Kyle Evans <[email protected]>

seq(1): Move long_opts up with globals


# a3f2c2fe 30-Apr-2018 Kyle Evans <[email protected]>

seq(1): Provide some long options

These match GNU seq(1) names where applicable for compatibility purposes.

MFC after: 1 month


# 3049d4cc 27-Feb-2018 Conrad Meyer <[email protected]>

seq(1): Consistently include 'last' for non-integers

The source of error is a rounded increment being too large and thus the loop
steps slightly past 'last'. Perform a final comparison using the fo

seq(1): Consistently include 'last' for non-integers

The source of error is a rounded increment being too large and thus the loop
steps slightly past 'last'. Perform a final comparison using the formatted
string values (truncated precision) to determine if we still need to print
the 'last' value.

PR: 217149
Submitted by: Fernando Apesteguía <fernando.apesteguia AT gmail.com>,
Yuri Pankov <yuripv AT icloud.com> (earlier version)
Reported by: Martijn Dekker <mcdutchie AT hotmail.com>
Sponsored by: Dell EMC Isilon

show more ...


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <[email protected]>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.

show more ...


Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0
# bf855dd3 18-Dec-2014 Xin LI <[email protected]>

Sync with NetBSD, mainly address NetBSD bug #43355:

Fix valid_format() to be more careful about allowing only valid
printf formats.

Obtained from: NetBSD
MFC after: 2 weeks


Revision tags: release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0
# cfbd8d46 06-Nov-2011 Ed Schouten <[email protected]>

Add missing static keywords to seq(1)


Revision tags: release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0
# b1ce21c6 09-Nov-2010 Rebecca Cran <[email protected]>

Fix typos.

PR: bin/148894
Submitted by: olgeni


Revision tags: release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0
# 0a167a9b 20-Feb-2010 Xin LI <[email protected]>

Treat numbers after [Ee] a positive number rather than an invalid
one.


# 208987a5 19-Feb-2010 Xin LI <[email protected]>

Add seq(1), a small utility to generate sequence number.

Obtained from: NetBSD
MFC after: 3 months