atrun.c (90148) | atrun.c (131990) |
---|---|
1/* 2 * atrun.c - run jobs queued by at; run with root privileges. 3 * Copyright (C) 1993, 1994 Thomas Koenig 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 --- 11 unchanged lines hidden (view full) --- 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#ifndef lint 27static const char rcsid[] = | 1/* 2 * atrun.c - run jobs queued by at; run with root privileges. 3 * Copyright (C) 1993, 1994 Thomas Koenig 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 --- 11 unchanged lines hidden (view full) --- 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#ifndef lint 27static const char rcsid[] = |
28 "$FreeBSD: head/libexec/atrun/atrun.c 90148 2002-02-03 15:53:02Z imp $"; | 28 "$FreeBSD: head/libexec/atrun/atrun.c 131990 2004-07-11 17:37:33Z stefanf $"; |
29#endif /* not lint */ 30 31/* System Headers */ 32 33#include <sys/fcntl.h> 34#include <sys/types.h> 35#include <sys/stat.h> 36#include <sys/wait.h> --- 41 unchanged lines hidden (view full) --- 78#endif 79 80#ifndef LOADAVG_MX 81#define LOADAVG_MX 1.5 82#endif 83 84/* File scope variables */ 85 | 29#endif /* not lint */ 30 31/* System Headers */ 32 33#include <sys/fcntl.h> 34#include <sys/types.h> 35#include <sys/stat.h> 36#include <sys/wait.h> --- 41 unchanged lines hidden (view full) --- 78#endif 79 80#ifndef LOADAVG_MX 81#define LOADAVG_MX 1.5 82#endif 83 84/* File scope variables */ 85 |
86static debug = 0; | 86static int debug = 0; |
87 88void perr(const char *a); 89static void usage(void); 90 91/* Local functions */ 92static int 93write_string(int fd, const char* a) 94{ --- 408 unchanged lines hidden --- | 87 88void perr(const char *a); 89static void usage(void); 90 91/* Local functions */ 92static int 93write_string(int fd, const char* a) 94{ --- 408 unchanged lines hidden --- |