aboutsummaryrefslogtreecommitdiff
path: root/libexec/comsat/comsat.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-9/+0
| | | | | | | | | | | 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
* libexec: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
| | | | | | | | 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
* Purge more stray embedded $FreeBSD$ stringsJohn Baldwin2023-09-251-2/+0
| | | | | | | These do not use __FBSDID but instead use bare char arrays. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326025
* Remove the 3rd clause ("advertising clause") of the BSD license asChristian Brueffer2014-02-171-5/+1
| | | | | | | | | | permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp MFC after: 1 week Notes: svn path=/head/; revision=262136
* Make comsat(8) approximately 15% smaller.Ed Schouten2011-12-101-10/+10
| | | | | | | | This program only consists of a single C file, so simply mark everything except main() static. Notes: svn path=/head/; revision=228397
* Remove a gratuitous newline. This should be a non-functional change.Jaakko Heinonen2011-06-071-1/+1
| | | | | | | | | PR: bin/153667 Submitted by: Craig Leres MFC after: 1 week Notes: svn path=/head/; revision=222825
* Port comsat to utmpx.Ed Schouten2010-01-131-64/+21
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=202208
* Fix several warnings.Ed Schouten2010-01-021-10/+10
| | | | | | | | | - Add __unused keywords. - Don't shadow a global variable called cr. - Make the global cr variable const. Notes: svn path=/head/; revision=201379
* Fix handling of pts(4) device names in comsat(8). Also catch fork() errors.Ed Schouten2009-01-171-6/+17
| | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=187366
* Fix most cases where the address of an int is passed to a function expecting aStefan Farfeleder2005-02-141-1/+1
| | | | | | | socklen_t * argument. Notes: svn path=/head/; revision=141918
* Add ability to only beep when mail arrives.Johan Karlsson2002-07-091-6/+20
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=99632
* o Eliminate __PWarner Losh2002-02-031-31/+18
| | | | | | | | | o Use new-style function definitions o remove some !__STDC__ code o eliminate register Notes: svn path=/head/; revision=90148
* File positions are off_t nowdays, not long, so:Andrey A. Chernov2001-09-031-4/+4
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=82851
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Fixed printf format errors.Bruce Evans1998-06-301-3/+5
| | | | Notes: svn path=/head/; revision=37297
* Use err(3). exit(-1) -> exit(1).Philippe Charnier1997-11-201-11/+11
| | | | Notes: svn path=/head/; revision=31307
* Allow backspace tooAndrey A. Chernov1997-09-151-2/+2
| | | | Notes: svn path=/head/; revision=29433
* disable upper controls and enable all otherAndrey A. Chernov1997-09-151-11/+15
| | | | | | | 8bit codes due to lack of locale knowledge in daemon Notes: svn path=/head/; revision=29432
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22989
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* add forgotten $Id$Wolfram Schneider1996-09-221-0/+2
| | | | Notes: svn path=/head/; revision=18471
* wrong C bracketing, *blush*...Peter Wemm1996-09-071-1/+1
| | | | Notes: svn path=/head/; revision=18097
* Another sgtty use bites the dust..Peter Wemm1996-09-071-5/+4
| | | | Notes: svn path=/head/; revision=18093
* Pass in both username and file to jkfprintfPaul Traina1996-06-041-6/+7
| | | | Notes: svn path=/head/; revision=16105
* Extend message format to user@offset[:file]Andrey A. Chernov1994-10-151-9/+36
| | | | | | | Obtained from: FreeBSD 1.x Notes: svn path=/head/; revision=3618
* BSD 4.4 Lite Libexec SourcesRodney W. Grimes1994-05-271-0/+284
Notes: svn path=/vendor/CSRG/dist/; revision=1592