76 #include <netinet/tcp.h>
77 #include <deflt.h>
78 #include <rpcsvc/daemon_utils.h>
79 #include <rpcsvc/nlm_prot.h>
80 #include <libintl.h>
81 #include <libscf.h>
82 #include <libshare.h>
83 #include "nfs_tbind.h"
84 #include "thrpool.h"
85 #include "smfcfg.h"
86
87 /* Option defaults. See nfssys.h */
88 struct lm_svc_args lmargs = {
89 .version = LM_SVC_CUR_VERS,
90 /* fd, n_fmly, n_proto, n_rdev (below) */
91 .debug = 0,
92 .timout = 5 * 60,
93 .grace = 90,
94 .retransmittimeout = 5
95 };
96 int max_servers = 20;
97
98
99 #define RET_OK 0 /* return code for no error */
100 #define RET_ERR 33 /* return code for error(s) */
101
102 static int nlmsvc(int fd, struct netbuf addrmask,
103 struct netconfig *nconf);
104 static int nlmsvcpool(int max_servers);
105 static void usage(void);
106
107 extern int _nfssys(int, void *);
108 static void sigterm_handler(void);
109 static void shutdown_lockd(void);
110
111 extern int daemonize_init(void);
112 extern void daemonize_fini(int fd);
113
114 static char *MyName;
115
116 /*
|
76 #include <netinet/tcp.h>
77 #include <deflt.h>
78 #include <rpcsvc/daemon_utils.h>
79 #include <rpcsvc/nlm_prot.h>
80 #include <libintl.h>
81 #include <libscf.h>
82 #include <libshare.h>
83 #include "nfs_tbind.h"
84 #include "thrpool.h"
85 #include "smfcfg.h"
86
87 /* Option defaults. See nfssys.h */
88 struct lm_svc_args lmargs = {
89 .version = LM_SVC_CUR_VERS,
90 /* fd, n_fmly, n_proto, n_rdev (below) */
91 .debug = 0,
92 .timout = 5 * 60,
93 .grace = 90,
94 .retransmittimeout = 5
95 };
96 int max_servers = 256;
97
98
99 #define RET_OK 0 /* return code for no error */
100 #define RET_ERR 33 /* return code for error(s) */
101
102 static int nlmsvc(int fd, struct netbuf addrmask,
103 struct netconfig *nconf);
104 static int nlmsvcpool(int max_servers);
105 static void usage(void);
106
107 extern int _nfssys(int, void *);
108 static void sigterm_handler(void);
109 static void shutdown_lockd(void);
110
111 extern int daemonize_init(void);
112 extern void daemonize_fini(int fd);
113
114 static char *MyName;
115
116 /*
|