lprm.c (31492) | lprm.c (39084) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 29 unchanged lines hidden (view full) --- 38 The Regents of the University of California. All rights reserved.\n"; 39#endif /* not lint */ 40 41#ifndef lint 42#if 0 43static char sccsid[] = "@(#)lprm.c 8.1 (Berkeley) 6/6/93"; 44#endif 45static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 29 unchanged lines hidden (view full) --- 38 The Regents of the University of California. All rights reserved.\n"; 39#endif /* not lint */ 40 41#ifndef lint 42#if 0 43static char sccsid[] = "@(#)lprm.c 8.1 (Berkeley) 6/6/93"; 44#endif 45static const char rcsid[] = |
46 "$Id: lprm.c,v 1.3 1997/09/24 06:48:17 charnier Exp $"; | 46 "$Id: lprm.c,v 1.4 1997/12/02 20:46:15 wollman Exp $"; |
47#endif /* not lint */ 48 49/* 50 * lprm - remove the current user's spool entry 51 * 52 * lprm [-] [[job #] [user] ...] 53 * 54 * Using information in the lock file, lprm will kill the --- 22 unchanged lines hidden (view full) --- 77int requ[MAXREQUESTS]; /* job number of spool entries */ 78int requests; /* # of spool requests */ 79char *user[MAXUSERS]; /* users to process */ 80int users; /* # of users in user array */ 81uid_t uid, euid; /* real and effective user id's */ 82 83static char luser[16]; /* buffer for person */ 84 | 47#endif /* not lint */ 48 49/* 50 * lprm - remove the current user's spool entry 51 * 52 * lprm [-] [[job #] [user] ...] 53 * 54 * Using information in the lock file, lprm will kill the --- 22 unchanged lines hidden (view full) --- 77int requ[MAXREQUESTS]; /* job number of spool entries */ 78int requests; /* # of spool requests */ 79char *user[MAXUSERS]; /* users to process */ 80int users; /* # of users in user array */ 81uid_t uid, euid; /* real and effective user id's */ 82 83static char luser[16]; /* buffer for person */ 84 |
85int main __P((int, char *[])); |
|
85static void usage __P((void)); 86 87int 88main(argc, argv) 89 int argc; 90 char *argv[]; 91{ 92 char *arg, *printer; --- 72 unchanged lines hidden --- | 86static void usage __P((void)); 87 88int 89main(argc, argv) 90 int argc; 91 char *argv[]; 92{ 93 char *arg, *printer; --- 72 unchanged lines hidden --- |