History log of /freebsd-9.3-release/libexec/comsat/comsat.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 222825 07-Jun-2011 jh

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

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


# 202208 13-Jan-2010 ed

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.


# 201379 02-Jan-2010 ed

Fix several warnings.

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


# 187366 17-Jan-2009 ed

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>


# 141918 14-Feb-2005 stefanf

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


# 99632 09-Jul-2002 johan

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


# 90148 03-Feb-2002 imp

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


# 82851 03-Sep-2001 ache

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.


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 37297 30-Jun-1998 bde

Fixed printf format errors.


# 31307 20-Nov-1997 charnier

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


# 29433 14-Sep-1997 ache

Allow backspace too


# 29432 14-Sep-1997 ache

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


# 22989 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

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.


# 18471 22-Sep-1996 wosch

add forgotten $Id$


# 18097 07-Sep-1996 peter

wrong C bracketing, *blush*...


# 18093 07-Sep-1996 peter

Another sgtty use bites the dust..


# 16105 04-Jun-1996 pst

Pass in both username and file to jkfprintf


# 3618 15-Oct-1994 ache

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


# 1593 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1592,
which included commits to RCS files with non-trunk default branches.


# 1592 27-May-1994 rgrimes

BSD 4.4 Lite Libexec Sources