History log of /netbsd/usr.sbin/lpr/lpc/cmds.c (Results 1 – 25 of 25)
Revision Date Author Comments
# 032681b7 16-Dec-2016 mrg <mrg@NetBSD.org>

scandir/alphasort take "const struct dirent **" not "const void *" in
modern unix. since we claim to be 'IEEE Std 1003.1-2008', make it so.


# 4a1b3429 31-Aug-2011 plunky <plunky@NetBSD.org>

NULL does not need a cast


# 3aa76316 04-Jan-2011 wiz <wiz@NetBSD.org>

Fix fd leak in error cases. Found by cppcheck.


# 7027866a 13-Jul-2009 roy <roy@NetBSD.org>

Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.


# f5a433a7 18-Jan-2009 lukem <lukem@NetBSD.org>

fix -Wsign-compare issues


# 9c194566 21-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.


# db1dbe6c 21-Mar-2006 christos <christos@NetBSD.org>

Coverity CID 1225: Don't close negative fd. While here fix fd leak.


# 04723c3f 28-Nov-2005 christos <christos@NetBSD.org>

- WARNS = 4
- factor out commonly used code.
- constify
- use warn/warnx instead of printf


# 75ba9fc7 30-Oct-2004 dsl <dsl@NetBSD.org>

Add (unsigned char) cast to ctype functions
Some of this code could usefully be converted to use strtoul() and/or
some small helper functions.


# 326b2259 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.


# 85da8822 17-May-2003 itojun <itojun@NetBSD.org>

use strlcpy/strlcat.
[fix off-by-one in displayq.c]


# 895dc72a 14-Jul-2002 wiz <wiz@NetBSD.org>

Unifdef __STDC__. Remove __P(). ANSIfy.


# dd28a6c6 16-Apr-2000 mrg <mrg@NetBSD.org>

make scandir(3)'s 3rd argument take a function that takes a *const*
struct dirent *, rather than non-const. this makes scandir(3) the
same as the scandir implementations in libiberty and glibc, and

make scandir(3)'s 3rd argument take a function that takes a *const*
struct dirent *, rather than non-const. this makes scandir(3) the
same as the scandir implementations in libiberty and glibc, and the
select function has no need to modify the dirent.

show more ...


# fe7ed7ce 05-Oct-1997 mrg <mrg@NetBSD.org>

- WARNS?=1
- be safe with unlinking files (from freebsd)
- remove register
- clean up $NetBSD$'s.
- use inet_ntoa() in one place (from openbsd)
- nul terminate after a bunch of strncpy()'s
- #ifdef _

- WARNS?=1
- be safe with unlinking files (from freebsd)
- remove register
- clean up $NetBSD$'s.
- use inet_ntoa() in one place (from openbsd)
- nul terminate after a bunch of strncpy()'s
- #ifdef __STDC__ rather than #if (from freebsd)
- be safe with a bunch of string operations (from freebsd)
- use warn()/err() over home grown versions (some from freebsd)
- rename warn() to nodaemon() to remove conflict with above
- check errno from failed kill(2) against ESRCH (from freebsd)
- use getopt() rather than home grown versions (from freebsd)
- clean up a bunch of man pages (some from freebsd)
- check for hostname spoof (from freebsd)
- use POSIX wait() interfaces
- use sysconf(_SC_OPEN_MAX) in preference to NOFILE (from freebsd)
- deal with fork() failure
- index/rindex -> strchr/strrchr (some from freebsd)
- add B57600 and B115200 speeds (from freebsd)
- some KNF
- be safe with files passed in over the network (some from freebsd)
- check return value of malloc(), calloc() and strdup()

show more ...


# e6a91a09 05-Oct-1997 mrg <mrg@NetBSD.org>

merge 4.4 lite2


# b38a221a 10-Jul-1997 mikel <mikel@NetBSD.org>

oops


# 0b0a21a5 10-Jul-1997 mikel <mikel@NetBSD.org>

clarify assignments used as conditionals (gcc -Wall)


# 077acf50 09-Dec-1996 mrg <mrg@NetBSD.org>

remove unsafe calls to strcpy(), strcat(), and sprintf(). some KNF.


# 8c4481f8 14-Jan-1996 hpeyerl <hpeyerl@NetBSD.org>

More descriptive message for printer status. Addresses PR #509.


# b965d4ff 15-Nov-1995 pk <pk@NetBSD.org>

Add RCSIDs


# 8e41ca80 03-Oct-1995 hpeyerl <hpeyerl@NetBSD.org>

-- convert sgtty to termios. From: Scott Bartram <scottb@iis.net>
-- Use seteuid() to only give lpr, lprm, lpq and lpc root when they
need it from matthew green <mrg@mame.mu.oz.au>


# f881d1d4 18-May-1994 cgd <cgd@NetBSD.org>

clean up that import. no rcsids yet.


# 3ccb8240 08-Dec-1993 jtc <jtc@NetBSD.org>

Upgraded to use <dirent.h>.


# e9d867ef 01-Aug-1993 mycroft <mycroft@NetBSD.org>

Add RCS identifiers.


# 61f28255 21-Mar-1993 cgd <cgd@NetBSD.org>

initial import of 386bsd-0.1 sources