History log of /freebsd-current/libexec/comsat/comsat.c
Revision Date Author Comments
# 0b8224d1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

Remove copyright strings ifdef'd out

We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).

Sponsored by: Netflix


# 43581d7b 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

libexec: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# eba230af 25-Sep-2023 John Baldwin <jhb@FreeBSD.org>

Purge more stray embedded $FreeBSD$ strings

These do not use __FBSDID but instead use bare char arrays.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D41957


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

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.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# 5efaea4c 17-Feb-2014 Christian Brueffer <brueffer@FreeBSD.org>

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.

Reviewed by: imp
MFC after: 1 week


# 4df6844b 10-Dec-2011 Ed Schouten <ed@FreeBSD.org>

Make comsat(8) approximately 15% smaller.

This program only consists of a single C file, so simply mark everything
except main() static.


# 189075e9 07-Jun-2011 Jaakko Heinonen <jh@FreeBSD.org>

Remove a gratuitous newline. This should be a non-functional change.

PR: bin/153667
Submitted by: Craig Leres
MFC after: 1 week


# 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.


# 960aa5e0 13-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Port comsat to utmpx.

It seems comsat stats the utmpx database each 15 seconds to see whether
it has been changed. I am changing this behaviour to look at the utmpx
database upon processing. I don't want to allow direct interference with
the database files. I also wonder whether this optimization has any
measurable performance benefit nowadays.


# 3e08d559 02-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Fix several warnings.

- Add __unused keywords.
- Don't shadow a global variable called cr.
- Make the global cr variable const.


# 4cb085f3 17-Jan-2009 Ed Schouten <ed@FreeBSD.org>

Fix handling of pts(4) device names in comsat(8). Also catch fork() errors.

Pseudo-terminals allocated with posix_openpt(2) will have more slashes
in their path names than comsat(8) allows, so allow slashes when the
character device name starts with "pts/".

This patch is loosely based on NetBSD's changes, revision 1.33. Because
it also included the changes to fork(), I imported them here as well.
Maybe we could import even more fixes from the other BSD's?

Original commit message from the NetBSD folks:

PR/30170: Markus W Kilbinger: src/libexec/comsat complains
about: '/' in "/dev/pts/1"

Reported by: Robert Huff <roberthuff rcn com>


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

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


# 78e3eed0 14-Feb-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

Fix most cases where the address of an int is passed to a function expecting a
socklen_t * argument.


# 7da9dccb 08-Jul-2002 Johan Karlsson <johan@FreeBSD.org>

Add ability to only beep when mail arrives.

comsat:
only send two bell charecters if S_IXGRP is set and S_IXUSR is not.

biff:
add new option 'b' to set S_IXGRP.

PR: 10931
Submitted by: Andrew J. Korty <ajk@purdue.edu>
Approved by: sheldonh (mentor)
MFC after: 1 month


# e4bc453c 03-Feb-2002 Warner Losh <imp@FreeBSD.org>

o Eliminate __P
o Use new-style function definitions
o remove some !__STDC__ code
o eliminate register


# 1012cb60 02-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

File positions are off_t nowdays, not long, so:
atoi -> strtoll
fseek -> fseeko

NOTE: that fseek not works for >long offsets per POSIX:

[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.

Fix minor cast too.


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

$Id$ -> $FreeBSD$


# 1a463b86 30-Jun-1998 Bruce Evans <bde@FreeBSD.org>

Fixed printf format errors.


# 55033a6f 20-Nov-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3). exit(-1) -> exit(1).


# fe38e2f8 14-Sep-1997 Andrey A. Chernov <ache@FreeBSD.org>

Allow backspace too


# 4541df7b 14-Sep-1997 Andrey A. Chernov <ache@FreeBSD.org>

disable upper controls and enable all other
8bit codes due to lack of locale knowledge in daemon


# 9e522f7a 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 148531ef 22-Sep-1996 Wolfram Schneider <wosch@FreeBSD.org>

add forgotten $Id$


# 163d0a5f 06-Sep-1996 Peter Wemm <peter@FreeBSD.org>

wrong C bracketing, *blush*...


# 2a295922 06-Sep-1996 Peter Wemm <peter@FreeBSD.org>

Another sgtty use bites the dust..


# 6cde4348 04-Jun-1996 Paul Traina <pst@FreeBSD.org>

Pass in both username and file to jkfprintf


# 87fe4a3a 15-Oct-1994 Andrey A. Chernov <ache@FreeBSD.org>

Extend message format to user@offset[:file]
Obtained from: FreeBSD 1.x


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

BSD 4.4 Lite Libexec Sources