2 * $Id: funcs.h,v 1.1 1998/08/14 00:31:24 vixie Exp $
6 * Copyright (c) 1997 by Internet Software Consortium
8 * Permission to use, copy, modify, and distribute this software for any
9 * purpose with or without fee is hereby granted, provided that the above
10 * copyright notice and this permission notice appear in all copies.
12 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
13 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
14 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
15 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
18 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
23 * This file has to be included by cron.h after data structure defs.
24 * We should reorg this into sections by module.
27 void set_cron_uid(void),
29 load_database(cron_db *),
32 job_add(entry *, user *),
33 do_command(entry *, user *),
34 link_user(cron_db *, user *),
35 unlink_user(cron_db *, user *),
38 unget_char(int, FILE *),
40 skip_comments(FILE *),
41 log_it(const char *, int, const char *, const char *),
44 int job_runqueue(void),
45 set_debug_flags(char *),
47 get_string(char *, int, FILE *, char *),
50 load_env(char *, FILE *),
52 strcmp_until(const char *, const char *, int),
56 char *env_get(char *, char **),
58 *mkprints(unsigned char *, unsigned int),
59 *first_word(char *, char *),
62 **env_set(char **, char *);
64 user *load_user(int, struct passwd *, const char *),
65 *find_user(cron_db *, const char *);
67 entry *load_entry(FILE *, void (*)(const char *),
68 struct passwd *, char **);
70 FILE *cron_popen(char *, char *, entry *, PID_T *);