#
b652778e |
| 11-Jul-2012 |
Peter Grehan <grehan@FreeBSD.org> |
IFC @ r238370
|
#
2d5e7d2e |
| 30-May-2012 |
Will Andrews <will@FreeBSD.org> |
IFC @ r236291. Diff reductions to the enclosure driver made in r235911.
|
#
31ccd489 |
| 28-May-2012 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Merge head r233826 through r236168.
|
#
0bb2aabf |
| 19-May-2012 |
Gleb Kurtsou <gleb@FreeBSD.org> |
Hide DIR definition by making it an opaque struct typedef.
Introduce dirfd() libc exported symbol replacing macro with same name, preserve _dirfd() macro for internal use.
Replace dirp->dd_fd with
Hide DIR definition by making it an opaque struct typedef.
Introduce dirfd() libc exported symbol replacing macro with same name, preserve _dirfd() macro for internal use.
Replace dirp->dd_fd with dirfd() call. Avoid using dirfd as variable name to prevent shadowing global symbol.
Sponsored by: Google Summer Of Code 2011
show more ...
|
Revision tags: release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0 |
|
#
c547dbe8 |
| 31-Dec-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Fix so all parts of lpd, lpc, lpq, and lprm will use the same algorithm for calculating the job number for a job based on the control-file name. We might receive cf-files named by other implementatio
Fix so all parts of lpd, lpc, lpq, and lprm will use the same algorithm for calculating the job number for a job based on the control-file name. We might receive cf-files named by other implementations of lpr, where the job number shown by lpq would not match the job number that other commands expected for the same name.
This also uses a newer algorithm for determining a job number, to avoid problems caused when a control-file is named using an IP address, instead of the hostname.
This also moved the declaration if isowner() from lp.h to rmjob.c. When I went to change the parameters, I noticed that rmjob.c was the only source file which uses it.
MFC after: 2 weeks
show more ...
|
Revision tags: release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0 |
|
#
b7fd8699 |
| 14-Jul-2003 |
Garance A Drosehn <gad@FreeBSD.org> |
Get the 'sccsid' lines even closer to correct style(9) form. The '#ifdef lint/#endif' around the lines should not have been removed. Also add blank lines where one (per file) was missing.
Reviewed
Get the 'sccsid' lines even closer to correct style(9) form. The '#ifdef lint/#endif' around the lines should not have been removed. Also add blank lines where one (per file) was missing.
Reviewed by: First part noticed by bde, blank lines noticed by me MFC after: 15 days
show more ...
|
#
1f589b47 |
| 14-Jul-2003 |
Garance A Drosehn <gad@FreeBSD.org> |
Take advantage of the common_source/lp.cdefs.h file to change lpr source to use __FBSDID() for setting rcsids. Also fix the format of 'sccsid' lines to consistently match style(9) guidelines.
Revie
Take advantage of the common_source/lp.cdefs.h file to change lpr source to use __FBSDID() for setting rcsids. Also fix the format of 'sccsid' lines to consistently match style(9) guidelines.
Reviewed by: discussed with bde and obrien MFC after: 15 days
show more ...
|
Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1 |
|
#
722915cd |
| 12-Jul-2002 |
Garance A Drosehn <gad@FreeBSD.org> |
Fix set_qstate() so it correctly checks for any error from chmod(). Note that set_qstate() is only called from several 'lpc' commands.
MFC after: 3 days
|
#
4c2a3991 |
| 12-Jul-2002 |
Garance A Drosehn <gad@FreeBSD.org> |
Add a SQS_QCHANGED option to set_qstate(). This will soon be used by 'lpc'.
Reviewed by: freebsd-print@bostonradio.org MFC after: 3 days
|
#
bae8d45c |
| 12-Jul-2002 |
Garance A Drosehn <gad@FreeBSD.org> |
Add two variables to struct jobqueue, and change the way that getq() calculates how much space to get for that struct, so it will get the right amount when new variables are added.
MFC after: 3 days
|
Revision tags: release/4.6.0_cvs |
|
#
5e55dc17 |
| 13-Jun-2002 |
Garance A Drosehn <gad@FreeBSD.org> |
Bah humbug. Fix another typo on the same comment line. It also had an option-space instead of a space...
MFC after: 10 days
|
#
a32355e4 |
| 13-Jun-2002 |
Garance A Drosehn <gad@FreeBSD.org> |
Fix a typo in a comment from the previous commit. I had a bullet-character instead of an asterisk.
Noticed by: keramida MFC after: 10 days
|
#
e8e715fa |
| 13-Jun-2002 |
Garance A Drosehn <gad@FreeBSD.org> |
Almost complete rewrite of the lpc commands 'abort', 'enable', 'disable', 'restart', 'start', 'stop' and 'up'. These are commands which mainly just alter the access bits on the lock-file of a queue,
Almost complete rewrite of the lpc commands 'abort', 'enable', 'disable', 'restart', 'start', 'stop' and 'up'. These are commands which mainly just alter the access bits on the lock-file of a queue, and they all now use a central routine to do that. This reduces the amount of code that is run as the priv userid, and eliminates a number of cases where error messages were written while that priv uid was in effect.
As far as users are concerned, there should be no noticable difference in the new versions. In case there *is*, the previous implementations are still there as 'xabort', 'xenable', etc, so they are available for instant fallback. If no one reports a problem after a few weeks, then a later update will remove those x-commands.
Reviewed by: freebsd-audit and freebsd-print@bostonradio.org MFC after: 10 days
show more ...
|
#
16d8455d |
| 28-May-2002 |
Alfred Perlstein <alfred@FreeBSD.org> |
Assume __STDC__, remove non-__STDC__ code.
|
#
ac7d1b15 |
| 22-Apr-2002 |
Garance A Drosehn <gad@FreeBSD.org> |
Add 'const' to some casts to fix two warnings that are printed by the new gcc (on sparc64).
MFC after: 4 days
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
011b9c79 |
| 23-Jul-2001 |
Garance A Drosehn <gad@FreeBSD.org> |
Fix a few more minor compile-time warnings, mainly by using size_t where appropriate, and using '("%lu", (unsigned long)asizeval)' when printing something of type size_t.
MFC after: 1 week
|
#
a4ccd1df |
| 15-Jul-2001 |
Garance A Drosehn <gad@FreeBSD.org> |
Replace three subtly-wrong calls to strncpy with calls to strlcpy, and use (size_t) in a few places to avoid compile-time warnings on alpha.
MFC after: 1 week
|
#
cc3fd56f |
| 15-Jun-2001 |
Garance A Drosehn <gad@FreeBSD.org> |
Rename a few global variables which hold hostname-related values to be more sensible/understandable. 'from'->'from_host' 'host'->'local_host' 'fromb'->'frombuf' 'fromhost'->'origin_host' and a lo
Rename a few global variables which hold hostname-related values to be more sensible/understandable. 'from'->'from_host' 'host'->'local_host' 'fromb'->'frombuf' 'fromhost'->'origin_host' and a local-variable named 'host'->'hostbuf'. This fixes some compile-time warnings about local variables shadowing global variables.
Other than renaming variables, the only actual code changes are to call strlcpy() instead of strncpy() when setting those (renamed) variables, and that 'from_ip' is now a strdup()-created buffer instead of being a static buffer compiled in as 1025 bytes.
Reviewed by: freebsd-print@bostonradio.org (an earlier version) MFC after: 1 week
show more ...
|
#
31058a75 |
| 15-Jun-2001 |
Garance A Drosehn <gad@FreeBSD.org> |
Rename global variable 'name' to 'progname', thus fixing a number of warnings which come up for various routines that have a parameter which is also called 'name'.
Reviewed by: freebsd-print@bostonr
Rename global variable 'name' to 'progname', thus fixing a number of warnings which come up for various routines that have a parameter which is also called 'name'.
Reviewed by: freebsd-print@bostonradio.org MFC after: 1 week
show more ...
|
#
ba7a1ad7 |
| 12-Jun-2001 |
Garance A Drosehn <gad@FreeBSD.org> |
Fix about 90-100 warnings one gets when trying to compile lpr&friends with BDECFLAGS on, mainly by adding 'const' to parameters in a number of routine declarations. While I'm at it, ANSI-fy all of t
Fix about 90-100 warnings one gets when trying to compile lpr&friends with BDECFLAGS on, mainly by adding 'const' to parameters in a number of routine declarations. While I'm at it, ANSI-fy all of the routine declarations. The resulting object code is exactly the same after this update as before it, with the exception of one unavoidable change to lpd.o on freebsd/alpha.
Also added $FreeBSD$ line to lpc/extern.h lpc/lpc.h lptest/lptest.c
Reviewed by: /sbin/md5, and no feedback from freebsd-audit
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
c83a68e0 |
| 06-Apr-2001 |
Garance A Drosehn <gad@FreeBSD.org> |
Make sure the euid is restored in an obscure error situation.
Submitted by: J Wunsch <j@ida.interface-business.de> in freebsd-audit
|
Revision tags: release/4.2.0 |
|
#
a4f87098 |
| 15-Nov-2000 |
Garance A Drosehn <gad@FreeBSD.org> |
Reset the seteuid in a few obscure error situations.
|
#
b770f354 |
| 15-Nov-2000 |
Garance A Drosehn <gad@FreeBSD.org> |
Just some style-related improvements.
|
#
30b4b758 |
| 06-Nov-2000 |
Garance A Drosehn <gad@FreeBSD.org> |
Cosmetic change of a structure name. Turn 'struct queue { q_time, q_name }' (loosely-speaking) into 'struct jobqueue { job_time, job_cfname }'
Reviewed by: GAWollman
|
#
6522ebec |
| 02-Nov-2000 |
Garance A Drosehn <gad@FreeBSD.org> |
Implement new printcap options of sr= (aka stat.recv) and sr= (aka stat.send) in lpd. Stat.recv is useful on a printserver, as something of a network performance-monitoring tool. Stat.send is a min
Implement new printcap options of sr= (aka stat.recv) and sr= (aka stat.send) in lpd. Stat.recv is useful on a printserver, as something of a network performance-monitoring tool. Stat.send is a minimal accounting record of sorts for jobs going to tcp/ip based printers.
Reviewed by: freebsd-print@bostonradio.org
show more ...
|