summaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.pcnfsd/paths.h
diff options
context:
space:
mode:
authorEric Jackson <ericj@cvs.openbsd.org>2001-08-19 19:16:13 +0000
committerEric Jackson <ericj@cvs.openbsd.org>2001-08-19 19:16:13 +0000
commit38da0b74b703fb2b4d2d60fcc80f0f9fdddf709c (patch)
tree464c247a7d04118b121c559ee8fe614ddedf1bca /usr.sbin/rpc.pcnfsd/paths.h
parente74e0c407458e60632d7cd8932ba6aa0d3d0ffa4 (diff)
first pass at some cleanup here
- use standard functions,, dont roll our own (strdup, strcasecmp, etc) - style(9) - share common headers.. more readable. doesnt address some of the other problems (cacheing), yet
Diffstat (limited to 'usr.sbin/rpc.pcnfsd/paths.h')
-rw-r--r--usr.sbin/rpc.pcnfsd/paths.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/usr.sbin/rpc.pcnfsd/paths.h b/usr.sbin/rpc.pcnfsd/paths.h
index 9c589d3cf62..14336ad057b 100644
--- a/usr.sbin/rpc.pcnfsd/paths.h
+++ b/usr.sbin/rpc.pcnfsd/paths.h
@@ -1,13 +1,25 @@
+/* $OpenBSD: paths.h,v 1.2 2001/08/19 19:16:12 ericj Exp $ */
/* $NetBSD: paths.h,v 1.1 1995/08/14 19:50:09 gwr Exp $ */
-#ifndef SPOOLDIR
#define SPOOLDIR "/export/pcnfs"
-#endif
-
-#ifndef LPRDIR
#define LPRDIR "/usr/bin"
-#endif
-
-#ifndef LPCDIR
#define LPCDIR "/usr/sbin"
-#endif
+
+pr_list printers;
+pr_queue queue;
+
+/* pcnfsd_misc.c */
+void scramble __P((char *, char *));
+void wlogin __P((char *, struct svc_req *));
+struct passwd *get_password __P((char *));
+
+/* pcnfsd_print.c */
+void *grab __P((int));
+FILE *su_popen __P((char *, char *, int));
+int su_pclose __P((FILE *));
+int build_pr_list __P((void));
+pirstat build_pr_queue __P((printername, username, int, int *, int *));
+psrstat pr_start2 __P((char *, char *, char *, char *, char *, char **));
+pcrstat pr_cancel __P((char *, char *, char *));
+pirstat get_pr_status __P((printername, bool_t *, bool_t *, int *, bool_t *,
+ char *));