1 /* $OpenBSD: funcs.h,v 1.28 2015/11/14 13:09:14 millert Exp $ */ 2 3 /* 4 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") 5 * Copyright (c) 1997,2000 by Internet Software Consortium, Inc. 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 17 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /* Notes: 21 * This file has to be included by cron.h after data structure defs. 22 * We should reorg this into sections by module. 23 */ 24 25 void load_database(cron_db **), 26 job_add(entry *, user *), 27 do_command(entry *, user *), 28 free_user(user *), 29 env_free(char **), 30 unget_char(int, FILE *), 31 free_entry(entry *), 32 skip_comments(FILE *), 33 poke_daemon(unsigned char), 34 atrun(at_db *, double, time_t); 35 36 int job_runqueue(void), 37 get_char(FILE *), 38 get_string(char *, int, FILE *, char *), 39 load_env(char *, FILE *), 40 cron_pclose(FILE *, pid_t), 41 allowed(const char *, const char *, const char *), 42 safe_p(const char *, const char *), 43 scan_atjobs(at_db **, struct timespec *); 44 45 char *env_get(char *, char **), 46 *first_word(char *, char *), 47 **env_init(void), 48 **env_copy(char **), 49 **env_set(char **, char *); 50 51 user *load_user(int, struct passwd *, const char *), 52 *find_user(cron_db *, const char *); 53 54 entry *load_entry(FILE *, 55 void (*)(const char *), struct passwd *, char **); 56 57 FILE *cron_popen(char *, char *, struct passwd *, pid_t *); 58