]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/cron/cron/funcs.h
zfs: merge openzfs/zfs@797f55ef1
[FreeBSD/FreeBSD.git] / usr.sbin / cron / cron / funcs.h
1 /*
2  * $Id: funcs.h,v 1.1 1998/08/14 00:31:24 vixie Exp $
3  */
4
5 /*
6  * Copyright (c) 1997 by Internet Software Consortium
7  *
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.
11  *
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
19  * SOFTWARE.
20  */
21
22 /* Notes:
23  *      This file has to be included by cron.h after data structure defs.
24  *      We should reorg this into sections by module.
25  */
26
27 void            set_cron_uid(void),
28                 set_cron_cwd(void),
29                 load_database(cron_db *),
30                 open_logfile(void),
31                 sigpipe_func(void),
32                 job_add(entry *, user *),
33                 do_command(entry *, user *),
34                 link_user(cron_db *, user *),
35                 unlink_user(cron_db *, user *),
36                 free_user(user *),
37                 env_free(char **),
38                 unget_char(int, FILE *),
39                 free_entry(entry *),
40                 skip_comments(FILE *),
41                 log_it(const char *, int, const char *, const char *),
42                 log_close(void);
43
44 int             job_runqueue(void),
45                 set_debug_flags(char *),
46                 get_char(FILE *),
47                 get_string(char *, int, FILE *, char *),
48                 swap_uids(void),
49                 swap_uids_back(void),
50                 load_env(char *, FILE *),
51                 cron_pclose(FILE *),
52                 strcmp_until(const char *, const char *, int),
53                 allowed(char *),
54                 strdtb(char *);
55
56 char            *env_get(char *, char **),
57                 *arpadate(time_t *),
58                 *mkprints(unsigned char *, unsigned int),
59                 *first_word(char *, char *),
60                 **env_init(void),
61                 **env_copy(char **),
62                 **env_set(char **, char *);
63
64 user            *load_user(int, struct passwd *, const char *),
65                 *find_user(cron_db *, const char *);
66
67 entry           *load_entry(FILE *, void (*)(const char *),
68                                  struct passwd *, char **);
69
70 FILE            *cron_popen(char *, char *, entry *, PID_T *);