Deleted Added
full compact
rmjob.c (66415) rmjob.c (68342)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)rmjob.c 8.2 (Berkeley) 4/28/95";
37#endif
38static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)rmjob.c 8.2 (Berkeley) 4/28/95";
37#endif
38static const char rcsid[] =
39 "$FreeBSD: head/usr.sbin/lpr/common_source/rmjob.c 66415 2000-09-27 19:23:15Z wollman $";
39 "$FreeBSD: head/usr.sbin/lpr/common_source/rmjob.c 68342 2000-11-05 03:21:57Z gad $";
40#endif /* not lint */
41
42#include <sys/param.h>
43#include <sys/uio.h>
44
45#include <ctype.h>
46#include <dirent.h>
47#include <errno.h>

--- 16 unchanged lines hidden (view full) ---

64 */
65
66/*
67 * Stuff for handling lprm specifications
68 */
69static char root[] = "root";
70static int all = 0; /* eliminate all files (root only) */
71static int cur_daemon; /* daemon's pid */
40#endif /* not lint */
41
42#include <sys/param.h>
43#include <sys/uio.h>
44
45#include <ctype.h>
46#include <dirent.h>
47#include <errno.h>

--- 16 unchanged lines hidden (view full) ---

64 */
65
66/*
67 * Stuff for handling lprm specifications
68 */
69static char root[] = "root";
70static int all = 0; /* eliminate all files (root only) */
71static int cur_daemon; /* daemon's pid */
72static char current[40]; /* active control file name */
72static char current[7+MAXHOSTNAMELEN]; /* active control file name */
73
74extern uid_t uid, euid; /* real and effective user id's */
75
76static void alarmhandler __P((int));
77static void do_unlink __P((char *));
78
79void
80rmjob(printer)

--- 317 unchanged lines hidden ---
73
74extern uid_t uid, euid; /* real and effective user id's */
75
76static void alarmhandler __P((int));
77static void do_unlink __P((char *));
78
79void
80rmjob(printer)

--- 317 unchanged lines hidden ---