1 /*        $NetBSD: extern.h,v 1.5 2023/08/01 07:04:17 mrg Exp $       */
2 
3 extern    int                 interrupted;
4 extern    pr_list             printers;
5 extern    pr_queue  queue;
6 extern    char                sp_name[1024];
7 
8 void                add_printer_alias(char *, char *, char *);
9 void                add_cache_entry(struct passwd *);
10 int                 build_pr_list(void);
11 pirstat             build_pr_queue(printername, username, int, int *, int *);
12 int                 check_cache(char *, char *, int *, int *);
13 void                free_mapreq_results(mapreq_res);
14 void            fillin_extra_groups(char *, u_int, int *, gid_t[EXTRAGIDLEN]);
15 #ifdef USE_YP
16 char             *find_entry(const char *, const char *);
17 #endif
18 void                free_pr_list_item(pr_list);
19 void                free_pr_queue_item(pr_queue);
20 struct passwd  *get_password(char *);
21 pirstat             get_pr_status(printername, bool_t *, bool_t *, int *,
22                         bool_t *, char *, size_t);
23 void             *grab(int);
24 pcrstat             pr_cancel(char *, char *, char *);
25 pirstat             pr_init(char *, char *, char **);
26 psrstat             pr_start(void);
27 psrstat             pr_start2(char *, char *, char *, char *, char *,
28                         char **);
29 void                run_ps630(char *, char *);
30 void      scramble(char *, char *);
31 int                 strembedded(const char *, const char *);
32 FILE             *su_popen(char *, char *, int);
33 int                 su_pclose(FILE *);
34 #ifdef WTMP
35 void                wlogin(char *, struct svc_req *);
36 #endif
37