diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-02-18 19:48:37 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-02-18 19:48:37 +0000 |
commit | 9d12880bde356edc1caf95ce9c16eda5cd362a71 (patch) | |
tree | 76105126f0a9e8669fcf6a00b6332268446f91d1 /usr.sbin/cron/funcs.h | |
parent | 401b427202f6878b62792414313a54831b405451 (diff) |
Update to ISC cron 4.0b1 + our patches. This is now under a BSD license.
I also fixed the signal handlers while I was at it.
Diffstat (limited to 'usr.sbin/cron/funcs.h')
-rw-r--r-- | usr.sbin/cron/funcs.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/usr.sbin/cron/funcs.h b/usr.sbin/cron/funcs.h new file mode 100644 index 00000000000..4e2e0289b89 --- /dev/null +++ b/usr.sbin/cron/funcs.h @@ -0,0 +1,70 @@ +/* $OpenBSD: funcs.h,v 1.1 2001/02/18 19:48:35 millert Exp $ */ + +/* + * Copyright (c) 1997,2000 by Internet Software Consortium, Inc. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS + * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE + * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + */ + +/* Notes: + * This file has to be included by cron.h after data structure defs. + * We should reorg this into sections by module. + */ + +void set_cron_uid(void), + set_cron_cwd(void), + load_database(cron_db *), + open_logfile(void), + sigpipe_func(void), + job_add(entry *, user *), + do_command(entry *, user *), + link_user(cron_db *, user *), + unlink_user(cron_db *, user *), + free_user(user *), + env_free(char **), + unget_char(int, FILE *), + free_entry(entry *), + acquire_daemonlock(int), + skip_comments(FILE *), + log_it(const char *, int, const char *, const char *), + log_close(void); + +int job_runqueue(void), + set_debug_flags(char *), + get_char(FILE *), + get_string(char *, int, FILE *, char *), + swap_uids(void), + swap_uids_back __P((void)), + load_env(char *, FILE *), + cron_pclose(FILE *), + glue_strings(char *, int, char *, char *, int), + strcmp_until(const char *, const char *, int), + allowed(char *), + strdtb(char *); + +char *env_get(char *, char **), + *arpadate(time_t *), + *mkprints(unsigned char *, unsigned int), + *first_word(char *, char *), + **env_init(void), + **env_copy(char **), + **env_set(char **, char *); + +user *load_user(int, struct passwd *, const char *), + *find_user(cron_db *, const char *); + +entry *load_entry(FILE *, void (*)(), + struct passwd *, char **); + +FILE *cron_popen(char *, char *, entry *); |