proto.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. #ifndef _PROTO_H_
  2. #define _PROTO_H_
  3. /* This file is automatically generated with "make proto". DO NOT EDIT */
  4. /* The following definitions come from lib/charcnv.c */
  5. char *unix2dos_format(char *str,BOOL overwrite);
  6. char *dos2unix_format(char *str, BOOL overwrite);
  7. void interpret_character_set(const char *str);
  8. /* The following definitions come from lib/charset.c */
  9. void charset_initialise(void);
  10. void codepage_initialise(int client_codepage);
  11. void add_char_string(const char *s);
  12. /* The following definitions come from lib/debug.c */
  13. void setup_logging( const char *pname, BOOL interactive );
  14. void dbgflush( void );
  15. BOOL dbghdr( int level, const char *file, const char *func, int line );
  16. /* The following definitions come from lib/interface.c */
  17. void load_interfaces(void);
  18. void iface_set_default(char *ip,char *bcast,char *nmask);
  19. BOOL ismyip(struct in_addr ip);
  20. BOOL is_local_net(struct in_addr from);
  21. int iface_count(void);
  22. BOOL we_are_multihomed(void);
  23. struct interface *get_interface(int n);
  24. struct in_addr *iface_n_ip(int n);
  25. unsigned iface_hash(void);
  26. struct in_addr *iface_bcast(struct in_addr ip);
  27. struct in_addr *iface_ip(struct in_addr ip);
  28. /* The following definitions come from lib/kanji.c */
  29. void interpret_coding_system(const char *str);
  30. BOOL is_multibyte_codepage(void);
  31. void initialize_multibyte_vectors( int client_codepage);
  32. /* The following definitions come from lib/md4.c */
  33. void mdfour(unsigned char *out, unsigned char *in, int n);
  34. /* The following definitions come from lib/netmask.c */
  35. int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask);
  36. /* The following definitions come from lib/slprintf.c */
  37. int vslprintf(char *str, int n, const char *format, va_list ap);
  38. /* The following definitions come from lib/system.c */
  39. int sys_select(int maxfd, fd_set *fds,struct timeval *tval);
  40. int sys_stat(const char *fname,SMB_STRUCT_STAT *sbuf);
  41. int sys_lstat(const char *fname,SMB_STRUCT_STAT *sbuf);
  42. int sys_fseek(FILE *fp, SMB_OFF_T offset, int whence);
  43. SMB_OFF_T sys_ftell(FILE *fp);
  44. int sys_open(const char *path, int oflag, mode_t mode);
  45. FILE *sys_fopen(const char *path, const char *type);
  46. SMB_STRUCT_DIRENT *sys_readdir(DIR *dirp);
  47. char *sys_getwd(char *s);
  48. int sys_chown(const char *fname,uid_t uid,gid_t gid);
  49. struct hostent *sys_gethostbyname(const char *name);
  50. long sys_random(void);
  51. void sys_srandom(unsigned int seed);
  52. /* The following definitions come from lib/time.c */
  53. void GetTimeOfDay(struct timeval *tval);
  54. void TimeInit(void);
  55. int TimeDiff(time_t t);
  56. struct tm *LocalTime(time_t *t);
  57. time_t nt_time_to_unix(NTTIME *nt);
  58. time_t interpret_long_date(char *p);
  59. void unix_to_nt_time(NTTIME *nt, time_t t);
  60. void put_long_date(char *p,time_t t);
  61. BOOL null_mtime(time_t mtime);
  62. void put_dos_date(char *buf,int offset,time_t unixdate);
  63. void put_dos_date2(char *buf,int offset,time_t unixdate);
  64. void put_dos_date3(char *buf,int offset,time_t unixdate);
  65. time_t make_unix_date(void *date_ptr);
  66. time_t make_unix_date2(void *date_ptr);
  67. time_t make_unix_date3(void *date_ptr);
  68. char *http_timestring(time_t t);
  69. char *timestring(void );
  70. time_t get_create_time(SMB_STRUCT_STAT *st,BOOL fake_dirs);
  71. /* The following definitions come from lib/username.c */
  72. const char *get_home_dir(char *user);
  73. BOOL map_username(const char *user);
  74. struct passwd *Get_Pwnam(const char *user);
  75. BOOL user_in_list(const char *user,char *list);
  76. /* The following definitions come from lib/util.c */
  77. const char *tmpdir(void);
  78. BOOL in_group(gid_t group, gid_t current_gid, int ngroups, gid_t *groups);
  79. char *Atoic(char *p, int *n, char *c);
  80. char *get_numlist(char *p, uint32 **num, int *count);
  81. void putip(void *dest,void *src);
  82. char *dns_to_netbios_name(char *dns_name);
  83. int name_mangle( char *In, char *Out, char name_type );
  84. BOOL file_exist(char *fname,SMB_STRUCT_STAT *sbuf);
  85. time_t file_modtime(char *fname);
  86. BOOL directory_exist(char *dname,SMB_STRUCT_STAT *st);
  87. SMB_OFF_T file_size(char *file_name);
  88. char *attrib_string(uint16 mode);
  89. void unix_format(char *fname);
  90. void dos_format(char *fname);
  91. void show_msg(char *buf);
  92. int smb_len(char *buf);
  93. void _smb_setlen(char *buf,int len);
  94. void smb_setlen(char *buf,int len);
  95. int set_message(char *buf,int num_words,int num_bytes,BOOL zero);
  96. int smb_buflen(char *buf);
  97. char *smb_buf(char *buf);
  98. int smb_offset(char *p,char *buf);
  99. void dos_clean_name(char *s);
  100. void unix_clean_name(char *s);
  101. BOOL reduce_name(char *s,char *dir,BOOL widelinks);
  102. void expand_mask(char *Mask,BOOL doext);
  103. void make_dir_struct(char *buf,char *mask,char *fname,SMB_OFF_T size,int mode,time_t date);
  104. void close_low_fds(void);
  105. int set_blocking(int fd, BOOL set);
  106. int TvalDiff(struct timeval *tvalold,struct timeval *tvalnew);
  107. SMB_OFF_T transfer_file(int infd,int outfd,SMB_OFF_T n,char *header,int headlen,int align);
  108. int name_extract(char *buf,int ofs,char *name);
  109. int name_len(char *s1);
  110. void msleep(int t);
  111. BOOL do_match(char *str, char *regexp, int case_sig);
  112. BOOL mask_match(char *str, char *regexp, int case_sig,BOOL trans2);
  113. int set_filelen(int fd, SMB_OFF_T len);
  114. void *Realloc(void *p,size_t size);
  115. BOOL get_myname(char *my_name,struct in_addr *ip);
  116. BOOL ip_equal(struct in_addr ip1,struct in_addr ip2);
  117. int interpret_protocol(char *str,int def);
  118. uint32 interpret_addr(const char *str);
  119. struct in_addr *interpret_addr2(const char *str);
  120. BOOL zero_ip(struct in_addr ip);
  121. BOOL matchname(char *remotehost,struct in_addr addr);
  122. void standard_sub_basic(char *str);
  123. void standard_sub(connection_struct *conn,char *str);
  124. BOOL same_net(struct in_addr ip1,struct in_addr ip2,struct in_addr mask);
  125. struct hostent *Get_Hostbyname(const char *name);
  126. char *uidtoname(uid_t uid);
  127. char *gidtoname(gid_t gid);
  128. uid_t nametouid(const char *name);
  129. void smb_panic(const char *why);
  130. char *readdirname(DIR *p);
  131. BOOL is_in_path(char *name, name_compare_entry *namelist);
  132. void set_namearray(name_compare_entry **ppname_array, char *namelist);
  133. void free_namearray(name_compare_entry *name_array);
  134. BOOL fcntl_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
  135. BOOL is_myname(char *s);
  136. void set_remote_arch(enum remote_arch_types type);
  137. enum remote_arch_types get_remote_arch(void);
  138. char *align2(char *q, char *base);
  139. void out_ascii(FILE *f, unsigned char *buf,int len);
  140. void out_data(FILE *f,char *buf1,int len, int per_line);
  141. void print_asc(int level, unsigned char *buf,int len);
  142. void dump_data(int level,char *buf1,int len);
  143. char *tab_depth(int depth);
  144. int str_checksum(const char *s);
  145. void zero_free(void *p, size_t size);
  146. int set_maxfiles(int requested_max);
  147. /* The following definitions come from lib/util_file.c */
  148. BOOL do_file_lock(int fd, int waitsecs, int type);
  149. BOOL file_lock(int fd, int type, int secs, int *plock_depth);
  150. BOOL file_unlock(int fd, int *plock_depth);
  151. void *startfilepwent(char *pfile, char *s_readbuf, int bufsize,
  152. int *file_lock_depth, BOOL update);
  153. void endfilepwent(void *vp, int *file_lock_depth);
  154. SMB_BIG_UINT getfilepwpos(void *vp);
  155. BOOL setfilepwpos(void *vp, SMB_BIG_UINT tok);
  156. int getfileline(void *vp, char *linebuf, int linebuf_size);
  157. char *fgets_slash(char *s2,int maxlen,FILE *f);
  158. /* The following definitions come from lib/util_sock.c */
  159. BOOL is_a_socket(int fd);
  160. void set_socket_options(int fd, char *options);
  161. void close_sockets(void );
  162. ssize_t write_socket(int fd,char *buf,size_t len);
  163. ssize_t read_udp_socket(int fd,char *buf,size_t len);
  164. ssize_t read_with_timeout(int fd,char *buf,size_t mincnt,size_t maxcnt,unsigned int time_out);
  165. BOOL send_keepalive(int client);
  166. ssize_t read_data(int fd,char *buffer,size_t N);
  167. ssize_t write_data(int fd,char *buffer,size_t N);
  168. ssize_t read_smb_length(int fd,char *inbuf,unsigned int timeout);
  169. BOOL receive_smb(int fd,char *buffer, unsigned int timeout);
  170. BOOL client_receive_smb(int fd,char *buffer, unsigned int timeout);
  171. BOOL send_null_session_msg(int fd);
  172. BOOL send_smb(int fd,char *buffer);
  173. BOOL send_one_packet(char *buf,int len,struct in_addr ip,int port,int type);
  174. int open_socket_in(int type, int port, int dlevel,uint32 socket_addr, BOOL rebind);
  175. int open_socket_out(int type, struct in_addr *addr, int port ,int timeout);
  176. char *client_name(int fd);
  177. char *client_addr(int fd);
  178. /* The following definitions come from lib/util_str.c */
  179. void set_first_token(char *ptr);
  180. BOOL next_token(char **ptr,char *buff, const char *sep, size_t bufsize);
  181. char **toktocliplist(int *ctok, char *sep);
  182. int StrCaseCmp(const char *s, const char *t);
  183. int StrnCaseCmp(const char *s, const char *t, size_t n);
  184. BOOL strequal(const char *s1, const char *s2);
  185. BOOL strnequal(const char *s1,const char *s2,size_t n);
  186. BOOL strcsequal(const char *s1,const char *s2);
  187. void strlower(char *s);
  188. void strupper(char *s);
  189. void strnorm(char *s);
  190. BOOL strisnormal(char *s);
  191. void string_replace(char *s,char oldc,char newc);
  192. char *skip_string(char *buf,size_t n);
  193. size_t str_charnum(const char *s);
  194. BOOL trim_string(char *s,const char *front,const char *back);
  195. BOOL strhasupper(const char *s);
  196. BOOL strhaslower(const char *s);
  197. size_t count_chars(const char *s,char c);
  198. char *safe_strcpy(char *dest,const char *src, size_t maxlength);
  199. char *safe_strcat(char *dest, const char *src, size_t maxlength);
  200. char *StrCpy(char *dest,const char *src);
  201. char *StrnCpy(char *dest,const char *src,size_t n);
  202. char *strncpyn(char *dest, const char *src,size_t n, char c);
  203. size_t strhex_to_str(char *p, size_t len, const char *strhex);
  204. BOOL in_list(char *s,char *list,BOOL casesensitive);
  205. BOOL string_init(char **dest,const char *src);
  206. void string_free(char **s);
  207. BOOL string_set(char **dest,const char *src);
  208. void string_sub(char *s,const char *pattern,const char *insert);
  209. void all_string_sub(char *s,const char *pattern,const char *insert);
  210. void split_at_last_component(char *path, char *front, char sep, char *back);
  211. /* The following definitions come from libsmb/clientgen.c */
  212. int cli_set_port(struct cli_state *cli, int port);
  213. char *cli_errstr(struct cli_state *cli);
  214. BOOL cli_api_pipe(struct cli_state *cli, char *pipe_name, int pipe_name_len,
  215. uint16 *setup, uint32 setup_count, uint32 max_setup_count,
  216. char *params, uint32 param_count, uint32 max_param_count,
  217. char *data, uint32 data_count, uint32 max_data_count,
  218. char **rparam, uint32 *rparam_count,
  219. char **rdata, uint32 *rdata_count);
  220. BOOL cli_api(struct cli_state *cli,
  221. char *param, int prcnt, int mprcnt,
  222. char *data, int drcnt, int mdrcnt,
  223. char **rparam, int *rprcnt,
  224. char **rdata, int *rdrcnt);
  225. BOOL cli_NetWkstaUserLogon(struct cli_state *cli,char *user, char *workstation);
  226. int cli_RNetShareEnum(struct cli_state *cli, void (*fn)(const char *, uint32, const char *, void *), void * state);
  227. BOOL cli_NetServerEnum(struct cli_state *cli, char *workgroup, uint32 stype,
  228. void (*fn)(const char *, uint32, const char *, void *), void *state);
  229. BOOL cli_session_setup(struct cli_state *cli,
  230. char *user,
  231. char *pass, int passlen,
  232. char *ntpass, int ntpasslen,
  233. char *workgroup);
  234. BOOL cli_ulogoff(struct cli_state *cli);
  235. BOOL cli_send_tconX(struct cli_state *cli,
  236. const char *share, const char *dev, const char *pass, int passlen);
  237. BOOL cli_tdis(struct cli_state *cli);
  238. BOOL cli_rename(struct cli_state *cli, char *fname_src, char *fname_dst);
  239. BOOL cli_unlink(struct cli_state *cli, char *fname);
  240. BOOL cli_mkdir(struct cli_state *cli, char *dname);
  241. BOOL cli_rmdir(struct cli_state *cli, char *dname);
  242. int cli_nt_create(struct cli_state *cli, char *fname);
  243. int cli_open(struct cli_state *cli, char *fname, int flags, int share_mode);
  244. BOOL cli_close(struct cli_state *cli, int fnum);
  245. BOOL cli_lock(struct cli_state *cli, int fnum, uint32 offset, uint32 len, int timeout);
  246. BOOL cli_unlock(struct cli_state *cli, int fnum, uint32 offset, uint32 len, int timeout);
  247. size_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size);
  248. ssize_t cli_write(struct cli_state *cli,
  249. int fnum, uint16 write_mode,
  250. const char *buf, off_t offset, size_t size);
  251. ssize_t cli_smbwrite(struct cli_state *cli,
  252. int fnum, const char *buf, off_t offset, size_t size);
  253. BOOL cli_getattrE(struct cli_state *cli, int fd,
  254. uint16 *attr, size_t *size,
  255. time_t *c_time, time_t *a_time, time_t *m_time);
  256. BOOL cli_getatr(struct cli_state *cli, char *fname,
  257. uint16 *attr, size_t *size, time_t *t);
  258. BOOL cli_setatr(struct cli_state *cli, char *fname, uint16 attr, time_t t);
  259. BOOL cli_qpathinfo(struct cli_state *cli, const char *fname,
  260. time_t *c_time, time_t *a_time, time_t *m_time,
  261. size_t *size, uint16 *mode);
  262. BOOL cli_qpathinfo2(struct cli_state *cli, const char *fname,
  263. time_t *c_time, time_t *a_time, time_t *m_time,
  264. time_t *w_time, size_t *size, uint16 *mode,
  265. SMB_INO_T *ino);
  266. BOOL cli_qfileinfo(struct cli_state *cli, int fnum,
  267. uint16 *mode, size_t *size,
  268. time_t *c_time, time_t *a_time, time_t *m_time,
  269. time_t *w_time, SMB_INO_T *ino);
  270. int cli_list(struct cli_state *cli,const char *Mask,uint16 attribute,
  271. void (*fn)(file_info *, const char *, void *), void *state);
  272. BOOL cli_negprot(struct cli_state *cli);
  273. BOOL cli_session_request(struct cli_state *cli,
  274. struct nmb_name *calling, struct nmb_name *called);
  275. BOOL cli_connect(struct cli_state *cli, const char *host, struct in_addr *ip);
  276. struct cli_state *cli_initialise(struct cli_state *cli);
  277. void cli_shutdown(struct cli_state *cli);
  278. int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num, uint32 *nt_rpc_error);
  279. void cli_sockopt(struct cli_state *cli, char *options);
  280. uint16 cli_setpid(struct cli_state *cli, uint16 pid);
  281. BOOL cli_reestablish_connection(struct cli_state *cli);
  282. BOOL cli_establish_connection(struct cli_state *cli,
  283. char *dest_host, struct in_addr *dest_ip,
  284. struct nmb_name *calling, struct nmb_name *called,
  285. char *service, char *service_type,
  286. BOOL do_shutdown, BOOL do_tcon);
  287. BOOL cli_chkpath(struct cli_state *cli, char *path);
  288. BOOL cli_message_start(struct cli_state *cli, char *host, char *username,
  289. int *grp);
  290. BOOL cli_message_text(struct cli_state *cli, char *msg, int len, int grp);
  291. BOOL cli_message_end(struct cli_state *cli, int grp);
  292. BOOL cli_dskattr(struct cli_state *cli, int *bsize, int *total, int *avail);
  293. /* The following definitions come from libsmb/namequery.c */
  294. struct in_addr *name_query(int fd,const char *name,int name_type, BOOL bcast,BOOL recurse,
  295. struct in_addr to_ip, int *count, void (*fn)(struct packet_struct *));
  296. FILE *startlmhosts(const char *fname);
  297. BOOL getlmhostsent( FILE *fp, pstring name, int *name_type, struct in_addr *ipaddr);
  298. void endlmhosts(FILE *fp);
  299. BOOL resolve_name(const char *name, struct in_addr *return_ip, int name_type);
  300. BOOL find_master_ip(char *group, struct in_addr *master_ip);
  301. /* The following definitions come from libsmb/nmblib.c */
  302. void debug_nmb_packet(struct packet_struct *p);
  303. char *nmb_namestr(struct nmb_name *n);
  304. struct packet_struct *copy_packet(struct packet_struct *packet);
  305. void free_packet(struct packet_struct *packet);
  306. struct packet_struct *read_packet(int fd,enum packet_type packet_type);
  307. void make_nmb_name( struct nmb_name *n, const char *name, int type );
  308. BOOL nmb_name_equal(struct nmb_name *n1, struct nmb_name *n2);
  309. BOOL send_packet(struct packet_struct *p);
  310. struct packet_struct *receive_packet(int fd,enum packet_type type,int t);
  311. void sort_query_replies(char *data, int n, struct in_addr ip);
  312. /* The following definitions come from libsmb/nterr.c */
  313. const char *get_nt_error_msg(uint32 nt_code);
  314. /* The following definitions come from libsmb/pwd_cache.c */
  315. void pwd_init(struct pwd_info *pwd);
  316. void pwd_obfuscate_key(struct pwd_info *pwd, uint32 int_key, char *str_key);
  317. void pwd_read(struct pwd_info *pwd, char *passwd_report, BOOL do_encrypt);
  318. void pwd_set_nullpwd(struct pwd_info *pwd);
  319. void pwd_set_cleartext(struct pwd_info *pwd, char *clr);
  320. void pwd_get_cleartext(struct pwd_info *pwd, char *clr);
  321. void pwd_set_lm_nt_16(struct pwd_info *pwd, uchar lm_pwd[16], uchar nt_pwd[16]);
  322. void pwd_get_lm_nt_16(struct pwd_info *pwd, uchar lm_pwd[16], uchar nt_pwd[16]);
  323. void pwd_make_lm_nt_16(struct pwd_info *pwd, char *clr);
  324. void pwd_make_lm_nt_owf(struct pwd_info *pwd, uchar cryptkey[8]);
  325. void pwd_get_lm_nt_owf(struct pwd_info *pwd, uchar lm_owf[24], uchar nt_owf[24]);
  326. /* The following definitions come from libsmb/smbdes.c */
  327. void E_P16(unsigned char *p14,unsigned char *p16);
  328. void E_P24(unsigned char *p21, unsigned char *c8, unsigned char *p24);
  329. void D_P16(unsigned char *p14, unsigned char *in, unsigned char *out);
  330. void E_old_pw_hash( unsigned char *p14, unsigned char *in, unsigned char *out);
  331. void cred_hash1(unsigned char *out,unsigned char *in,unsigned char *key);
  332. void cred_hash2(unsigned char *out,unsigned char *in,unsigned char *key);
  333. void cred_hash3(unsigned char *out,unsigned char *in,unsigned char *key, int forw);
  334. void SamOEMhash( unsigned char *data, unsigned char *key, int val);
  335. /* The following definitions come from libsmb/smbencrypt.c */
  336. void SMBencrypt(uchar *passwd, uchar *c8, uchar *p24);
  337. void E_md4hash(uchar *passwd, uchar *p16);
  338. void nt_lm_owf_gen(char *pwd, uchar nt_p16[16], uchar p16[16]);
  339. void SMBOWFencrypt(uchar passwd[16], uchar *c8, uchar p24[24]);
  340. void NTLMSSPOWFencrypt(uchar passwd[8], uchar *ntlmchalresp, uchar p24[24]);
  341. void SMBNTencrypt(uchar *passwd, uchar *c8, uchar *p24);
  342. /* The following definitions come from libsmb/smberr.c */
  343. char *smb_errstr(char *inbuf);
  344. /* The following definitions come from param/loadparm.c */
  345. char *lp_logfile(void);
  346. char *lp_configfile(void);
  347. char *lp_smb_passwd_file(void);
  348. char *lp_serverstring(void);
  349. char *lp_printcapname(void);
  350. char *lp_lockdir(void);
  351. char *lp_rootdir(void);
  352. char *lp_defaultservice(void);
  353. char *lp_msg_command(void);
  354. char *lp_hosts_equiv(void);
  355. char *lp_auto_services(void);
  356. char *lp_passwd_program(void);
  357. char *lp_passwd_chat(void);
  358. char *lp_passwordserver(void);
  359. char *lp_name_resolve_order(void);
  360. char *lp_workgroup(void);
  361. char *lp_username_map(void);
  362. char *lp_groupname_map(void);
  363. char *lp_logon_script(void);
  364. char *lp_logon_path(void);
  365. char *lp_logon_drive(void);
  366. char *lp_logon_home(void);
  367. char *lp_remote_announce(void);
  368. char *lp_remote_browse_sync(void);
  369. char *lp_wins_server(void);
  370. char *lp_interfaces(void);
  371. char *lp_socket_address(void);
  372. char *lp_nis_home_map_name(void);
  373. char *lp_netbios_aliases(void);
  374. char *lp_driverfile(void);
  375. char *lp_panic_action(void);
  376. char *lp_adduser_script(void);
  377. char *lp_deluser_script(void);
  378. char *lp_domain_groups(void);
  379. char *lp_domain_admin_group(void);
  380. char *lp_domain_guest_group(void);
  381. char *lp_domain_admin_users(void);
  382. char *lp_domain_guest_users(void);
  383. char *lp_ldap_server(void);
  384. char *lp_ldap_suffix(void);
  385. char *lp_ldap_filter(void);
  386. char *lp_ldap_root(void);
  387. char *lp_ldap_rootpasswd(void);
  388. int lp_ssl_version(void);
  389. char *lp_ssl_hosts(void);
  390. char *lp_ssl_hosts_resign(void);
  391. char *lp_ssl_cacertdir(void);
  392. char *lp_ssl_cacertfile(void);
  393. char *lp_ssl_cert(void);
  394. char *lp_ssl_privkey(void);
  395. char *lp_ssl_client_cert(void);
  396. char *lp_ssl_client_privkey(void);
  397. char *lp_ssl_ciphers(void);
  398. BOOL lp_ssl_enabled(void);
  399. BOOL lp_ssl_reqClientCert(void);
  400. BOOL lp_ssl_reqServerCert(void);
  401. BOOL lp_ssl_compatibility(void);
  402. BOOL lp_dns_proxy(void);
  403. BOOL lp_wins_support(void);
  404. BOOL lp_we_are_a_wins_server(void);
  405. BOOL lp_wins_proxy(void);
  406. BOOL lp_local_master(void);
  407. BOOL lp_domain_master(void);
  408. BOOL lp_domain_logons(void);
  409. BOOL lp_preferred_master(void);
  410. BOOL lp_load_printers(void);
  411. BOOL lp_use_rhosts(void);
  412. BOOL lp_readprediction(void);
  413. BOOL lp_readbmpx(void);
  414. BOOL lp_readraw(void);
  415. BOOL lp_writeraw(void);
  416. BOOL lp_null_passwords(void);
  417. BOOL lp_strip_dot(void);
  418. BOOL lp_encrypted_passwords(void);
  419. BOOL lp_update_encrypted(void);
  420. BOOL lp_syslog_only(void);
  421. BOOL lp_timestamp_logs(void);
  422. BOOL lp_browse_list(void);
  423. BOOL lp_unix_realname(void);
  424. BOOL lp_nis_home_map(void);
  425. BOOL lp_bind_interfaces_only(void);
  426. BOOL lp_unix_password_sync(void);
  427. BOOL lp_passwd_chat_debug(void);
  428. BOOL lp_ole_locking_compat(void);
  429. BOOL lp_nt_smb_support(void);
  430. BOOL lp_nt_pipe_support(void);
  431. BOOL lp_nt_acl_support(void);
  432. BOOL lp_stat_cache(void);
  433. BOOL lp_allow_trusted_domains(void);
  434. BOOL lp_restrict_anonymous(void);
  435. int lp_os_level(void);
  436. int lp_max_ttl(void);
  437. int lp_max_wins_ttl(void);
  438. int lp_min_wins_ttl(void);
  439. int lp_max_open_files(void);
  440. int lp_maxxmit(void);
  441. int lp_maxmux(void);
  442. int lp_passwordlevel(void);
  443. int lp_usernamelevel(void);
  444. int lp_readsize(void);
  445. int lp_shmem_size(void);
  446. int lp_deadtime(void);
  447. int lp_maxprotocol(void);
  448. int lp_security(void);
  449. int lp_maxdisksize(void);
  450. int lp_lpqcachetime(void);
  451. int lp_syslog(void);
  452. int lp_client_code_page(void);
  453. int lp_lm_announce(void);
  454. int lp_lm_interval(void);
  455. int lp_machine_password_timeout(void);
  456. int lp_change_notify_timeout(void);
  457. int lp_stat_cache_size(void);
  458. int lp_map_to_guest(void);
  459. int lp_min_passwd_length(void);
  460. int lp_oplock_break_wait_time(void);
  461. int lp_ldap_port(void);
  462. char *lp_preexec(int );
  463. char *lp_postexec(int );
  464. char *lp_rootpreexec(int );
  465. char *lp_rootpostexec(int );
  466. char *lp_servicename(int );
  467. char *lp_pathname(int );
  468. char *lp_dontdescend(int );
  469. char *lp_username(int );
  470. char *lp_guestaccount(int );
  471. char *lp_invalid_users(int );
  472. char *lp_valid_users(int );
  473. char *lp_admin_users(int );
  474. char *lp_printcommand(int );
  475. char *lp_lpqcommand(int );
  476. char *lp_lprmcommand(int );
  477. char *lp_lppausecommand(int );
  478. char *lp_lpresumecommand(int );
  479. char *lp_queuepausecommand(int );
  480. char *lp_queueresumecommand(int );
  481. char *lp_printername(int );
  482. char *lp_printerdriver(int );
  483. char *lp_hostsallow(int );
  484. char *lp_hostsdeny(int );
  485. char *lp_magicscript(int );
  486. char *lp_magicoutput(int );
  487. char *lp_comment(int );
  488. char *lp_force_user(int );
  489. char *lp_force_group(int );
  490. char *lp_readlist(int );
  491. char *lp_writelist(int );
  492. char *lp_fstype(int );
  493. char *lp_mangled_map(int );
  494. char *lp_veto_files(int );
  495. char *lp_hide_files(int );
  496. char *lp_veto_oplocks(int );
  497. char *lp_driverlocation(int );
  498. BOOL lp_revalidate(int );
  499. BOOL lp_casesensitive(int );
  500. BOOL lp_preservecase(int );
  501. BOOL lp_shortpreservecase(int );
  502. BOOL lp_casemangle(int );
  503. BOOL lp_status(int );
  504. BOOL lp_hide_dot_files(int );
  505. BOOL lp_browseable(int );
  506. BOOL lp_readonly(int );
  507. BOOL lp_no_set_dir(int );
  508. BOOL lp_guest_ok(int );
  509. BOOL lp_guest_only(int );
  510. BOOL lp_print_ok(int );
  511. BOOL lp_postscript(int );
  512. BOOL lp_map_hidden(int );
  513. BOOL lp_map_archive(int );
  514. BOOL lp_locking(int );
  515. BOOL lp_strict_locking(int );
  516. BOOL lp_share_modes(int );
  517. BOOL lp_oplocks(int );
  518. BOOL lp_onlyuser(int );
  519. BOOL lp_manglednames(int );
  520. BOOL lp_widelinks(int );
  521. BOOL lp_symlinks(int );
  522. BOOL lp_syncalways(int );
  523. BOOL lp_strict_sync(int );
  524. BOOL lp_map_system(int );
  525. BOOL lp_delete_readonly(int );
  526. BOOL lp_fake_oplocks(int );
  527. BOOL lp_recursive_veto_delete(int );
  528. BOOL lp_dos_filetimes(int );
  529. BOOL lp_dos_filetime_resolution(int );
  530. BOOL lp_fake_dir_create_times(int );
  531. BOOL lp_blocking_locks(int );
  532. BOOL lp_mangle_locks(int );
  533. int lp_create_mode(int );
  534. int lp_force_create_mode(int );
  535. int lp_dir_mode(int );
  536. int lp_force_dir_mode(int );
  537. int lp_max_connections(int );
  538. int lp_defaultcase(int );
  539. int lp_minprintspace(int );
  540. int lp_printing(int );
  541. int lp_oplock_contention_limit(int );
  542. char lp_magicchar(int );
  543. BOOL lp_add_home(const char *pszHomename, int iDefaultService, const char *pszHomedir);
  544. int lp_add_service(char *pszService, int iDefaultService);
  545. BOOL lp_add_printer(char *pszPrintername, int iDefaultService);
  546. BOOL lp_file_list_changed(void);
  547. void *lp_local_ptr(int snum, void *ptr);
  548. BOOL lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue);
  549. BOOL lp_is_default(int snum, struct parm_struct *parm);
  550. struct parm_struct *lp_next_parameter(int snum, int *i, int allparameters);
  551. BOOL lp_snum_ok(int iService);
  552. void lp_add_one_printer(char *name,char *comment);
  553. BOOL lp_loaded(void);
  554. void lp_killunused(BOOL (*snumused)(int ));
  555. BOOL lp_load(const char *pszFname,BOOL global_only, BOOL save_defaults, BOOL add_ipc);
  556. void lp_resetnumservices(void);
  557. int lp_numservices(void);
  558. int lp_servicenumber(const char *pszServiceName);
  559. char *volume_label(int snum);
  560. int lp_default_server_announce(void);
  561. int lp_major_announce_version(void);
  562. int lp_minor_announce_version(void);
  563. void lp_set_name_resolve_order(char *new_order);
  564. void lp_set_kernel_oplocks(BOOL val);
  565. BOOL lp_kernel_oplocks(void);
  566. /* The following definitions come from param/params.c */
  567. BOOL pm_process( const char *FileName,
  568. BOOL (*sfunc)(const char *),
  569. BOOL (*pfunc)(const char *, const char *) );
  570. #endif /* _PROTO_H_ */