History log of /freebsd-current/usr.bin/m4/gnum4.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

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


# fdb905e2 09-Sep-2019 Baptiste Daroussin <bapt@FreeBSD.org>

m4: import patch from OpenBSD

Use waitpid()/EINTR idiom for the specific pid, rather than generic wait()

Patch by: deraadt@

Obtained from: OpenBSD


# c560b67c 09-Sep-2019 Baptiste Daroussin <bapt@FreeBSD.org>

Import from OpenBSD: -E flag

Add -E flag (make warnings fatal), following the behavior of GNU m4 1.4.9+

Help and direction millert@ espie@ anton@ deraadt@

ok espie@

Obtained from: OpenBSD


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

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.


# 1b56693f 18-Apr-2016 Marcelo Araujo <araujo@FreeBSD.org>

Use NULL instead of 0 for pointers.

fopen(3) will return NULL in case it cannot open the STREAM.

MFC after: 2 weeks.


# 31129d4f 18-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Synchronize with OpenBSD

Obtained from: OpenBSD


# 88497f0c 27-Jul-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Sync with OpenBSD
This brings:
- check for integer overflows in custom allocs
- fix potential integer overflows in memory allocation
- annotate regexp error messages with source string
- better error handling in mkstemp/unlink/fdopen logic


# eccad222 20-Oct-2012 Ed Schouten <ed@FreeBSD.org>

More -Wmissing-variable-declarations fixes.

In addition to adding missing `static' keywords:
- bin/dd: Pull in `extern.h' to guarantee consistency with source file.
- libexec/rpc.rusersd: Move shared globals into an extern.h.
- libexec/talkd: Move `debug' and `hostname' into extern.h.
- usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree.
- usr.bin/m4: Move `end_result' into extern.h.
- usr.sbin/services_mkdb: Move shared globals into an extern.h.


# a841e1eb 28-Nov-2011 Baptiste Daroussin <bapt@FreeBSD.org>

Synchronize with laster version of m4 from OpenBSD and NetBSD
This bring better compatibility with gnum4

Reviewed by: cognet
Approved by: cognet
Obtained from: OpenBSD, NetBSD


# df6dd693 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Mark global functions and/or variables in m4(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.


# 6bccea7c 21-Feb-2011 Rebecca Cran <brucec@FreeBSD.org>

Fix typos - remove duplicate "the".

PR: bin/154928
Submitted by: Eitan Adler <lists at eitanadler.com>
MFC after: 3 days


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 8bcd62f2 20-Sep-2007 Kevin Lo <kevlo@FreeBSD.org>

Use NULL instead of 0 for the return value of fopen().

Approved by: re (kensmith)


# ec18ee18 18-May-2004 Stefan Farfeleder <stefanf@FreeBSD.org>

Don't depend on NULL's expansion being a pointer, cast it before it is passed
to variadic functions.

Approved by: das (mentor)


# 2c4acd2f 14-Jul-2002 Juli Mallett <jmallett@FreeBSD.org>

Kill extraneous whitespace.


# d1fea89c 13-Jul-2002 Juli Mallett <jmallett@FreeBSD.org>

Functions declared as <type> <identifier>(<nil>) should be declared as
<type> <identifier>(<void-type>) in ANSI C.


# bd2bfb58 01-May-2002 Juli Mallett <jmallett@FreeBSD.org>

Merge local changes again, against ANSIfied m4(1).


# 4d9bfb4d 01-May-2002 Juli Mallett <jmallett@FreeBSD.org>

Import OpenBSD m4(1) as of April 26. Mostly ANSIfication changes.


# 82130df4 20-Apr-2002 Juli Mallett <jmallett@FreeBSD.org>

Use %zu to print a size_t, not %u and definitely not %d.

Remove WARNS?=2, as GCC will usually throw a fit right now, and I'm not going
to mix WARNS and NO_WERROR.

Submitted by: fenner


# 815bee2f 20-Apr-2002 Juli Mallett <jmallett@FreeBSD.org>

Print a size_t as %u not %d.

Pointed out by: mike, des's tinderbox


# ccc5b4e6 19-Apr-2002 Juli Mallett <jmallett@FreeBSD.org>

Crank WARNS.

Cast sizeof() to (int), as it's being compared against an int, not a size_t.
If i is changed to a size_t, it means the logic must be slightly changed later
in the flow, where --i is checked to be >= 0. I am not sure I want to make a
logic change to account for clearing up a warning, when an aesthetic one will
keep from modifying the logic.

Other harmless casts, that I think I've made in the right directions.

Make gpbc() an inline function, rather than an obfuscated macro, make its
scratch space local, rather than global. The previous macro used a dirty
hack (logical AND in place of a conditional) which would lead GCC to throw
a fit (rightly so) as the logical check, as well as the incrementation of
a variable, were not used for anything.

const'ify a few places where gcc3 yells. xstrdup() some global consts in
places where we xstrdup() when not using consts, but tried to assign them
to non-consts before.

Don't use execv(2) if we don't have the kind of arguments it wants.

Reviewed by: asmodai obrien tjr
Submitted by: tjr (a gcc3 build log)


# 56ca2b35 19-Apr-2002 Juli Mallett <jmallett@FreeBSD.org>

Add __FBSDID, this file was unmodified so it was missed in the initial sweep.


# e3d86717 16-Feb-2002 Juli Mallett <jmallett@FreeBSD.org>

Import OpenBSD m4 as of today.