summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-14 04:11:31 +0000
committerTim Potter <tpot@samba.org>2001-05-14 04:11:31 +0000
commite522cebeb915f38362959e537222edc3e9ee4141 (patch)
tree788c806d00002c1706b5f629218fbd77714ae0b8
parent1b739fdcb73f8ec72e3936d38f2bc318ab2f0f1b (diff)
downloadsamba-e522cebeb915f38362959e537222edc3e9ee4141.tar.gz
samba-e522cebeb915f38362959e537222edc3e9ee4141.tar.bz2
samba-e522cebeb915f38362959e537222edc3e9ee4141.zip
make proto
(This used to be commit 607db8d57db0e7bf9e99570bc87e7a1401a18eaa)
-rw-r--r--source3/include/proto.h467
1 files changed, 233 insertions, 234 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 6f12e4e275..b75279f334 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -3,12 +3,12 @@
/* This file is automatically generated with "make proto". DO NOT EDIT */
-/*The following definitions come from client/client.c */
+/* The following definitions come from client/client.c */
void do_list(const char *mask,uint16 attribute,void (*fn)(file_info *),BOOL rec, BOOL dirs);
struct cli_state *do_connect(char *server, char *share);
-/*The following definitions come from client/clitar.c */
+/* The following definitions come from client/clitar.c */
void cmd_block(void);
void cmd_tarmode(void);
@@ -17,7 +17,7 @@ void cmd_tar(void);
int process_tar(void);
int tar_parseargs(int argc, char *argv[], char *Optarg, int Optind);
-/*The following definitions come from groupdb/mapping.c */
+/* The following definitions come from groupdb/mapping.c */
char *decode_sid_name_use(fstring group, enum SID_NAME_USE name_use);
BOOL init_group_mapping(void);
@@ -43,13 +43,13 @@ int smb_delete_group(char *unix_group);
int smb_add_user_group(char *unix_group, char *unix_user);
int smb_delete_user_group(char *unix_group, char *unix_user);
-/*The following definitions come from lib/access.c */
+/* The following definitions come from lib/access.c */
BOOL allow_access(char *deny_list,char *allow_list,
char *cname,char *caddr);
BOOL check_access(int sock, char *allow_list, char *deny_list);
-/*The following definitions come from lib/bitmap.c */
+/* The following definitions come from lib/bitmap.c */
struct bitmap *bitmap_allocate(int n);
void bitmap_free(struct bitmap *bm);
@@ -58,23 +58,23 @@ BOOL bitmap_clear(struct bitmap *bm, unsigned i);
BOOL bitmap_query(struct bitmap *bm, unsigned i);
int bitmap_find(struct bitmap *bm, unsigned ofs);
-/*The following definitions come from lib/charcnv.c */
+/* The following definitions come from lib/charcnv.c */
char *unix2dos_format(char *str,BOOL overwrite);
char *dos2unix_format(char *str, BOOL overwrite);
void interpret_character_set(char *str, int codepage);
-/*The following definitions come from lib/charset.c */
+/* The following definitions come from lib/charset.c */
void charset_initialise(void);
void codepage_initialise(int client_codepage);
void add_char_string(char *s);
-/*The following definitions come from lib/crc32.c */
+/* The following definitions come from lib/crc32.c */
uint32 crc32_calc_buffer( char *buffer, uint32 count);
-/*The following definitions come from lib/debug.c */
+/* The following definitions come from lib/debug.c */
char* debug_classname_from_index(int ndx);
int debug_lookup_classname(char* classname);
@@ -90,7 +90,7 @@ void check_log_size( void );
void dbgflush( void );
BOOL dbghdr( int level, char *file, char *func, int line );
-/*The following definitions come from lib/doscalls.c */
+/* The following definitions come from lib/doscalls.c */
int dos_unlink(char *fname);
int dos_open(char *fname,int flags,mode_t mode);
@@ -112,28 +112,28 @@ BOOL dos_directory_exist(char *dname,SMB_STRUCT_STAT *st);
time_t dos_file_modtime(char *fname);
SMB_OFF_T dos_file_size(char *file_name);
-/*The following definitions come from lib/error.c */
+/* The following definitions come from lib/error.c */
uint32 map_nt_error_from_unix(int unix_error);
-/*The following definitions come from lib/fault.c */
+/* The following definitions come from lib/fault.c */
void fault_setup(void (*fn)(void *));
-/*The following definitions come from lib/fsusage.c */
+/* The following definitions come from lib/fsusage.c */
int sys_fsusage(const char *path, SMB_BIG_UINT *dfree, SMB_BIG_UINT *dsize);
-/*The following definitions come from lib/genrand.c */
+/* The following definitions come from lib/genrand.c */
void generate_random_buffer( unsigned char *out, int len, BOOL re_seed);
char *generate_random_str(size_t len);
-/*The following definitions come from lib/getsmbpass.c */
+/* The following definitions come from lib/getsmbpass.c */
char *getsmbpass(char *prompt) ;
-/*The following definitions come from lib/hash.c */
+/* The following definitions come from lib/hash.c */
BOOL hash_table_init(hash_table *table, int num_buckets, compare_function compare_func);
hash_element *hash_lookup(hash_table *table, char *key);
@@ -141,7 +141,7 @@ hash_element *hash_insert(hash_table *table, char *value, char *key);
void hash_remove(hash_table *table, hash_element *hash_elem);
void hash_clear(hash_table *table);
-/*The following definitions come from lib/interface.c */
+/* The following definitions come from lib/interface.c */
void load_interfaces(void);
BOOL interfaces_changed(void);
@@ -156,20 +156,20 @@ unsigned iface_hash(void);
struct in_addr *iface_bcast(struct in_addr ip);
struct in_addr *iface_ip(struct in_addr ip);
-/*The following definitions come from lib/interfaces.c */
+/* The following definitions come from lib/interfaces.c */
int get_interfaces(struct iface_struct *ifaces, int max_interfaces);
-/*The following definitions come from lib/kanji.c */
+/* The following definitions come from lib/kanji.c */
void interpret_coding_system(char *str);
void initialize_multibyte_vectors( int client_codepage);
-/*The following definitions come from lib/md4.c */
+/* The following definitions come from lib/md4.c */
void mdfour(unsigned char *out, unsigned char *in, int n);
-/*The following definitions come from lib/messages.c */
+/* The following definitions come from lib/messages.c */
void ping_message(int msg_type, pid_t src, void *buf, size_t len);
void debuglevel_message(int msg_type, pid_t src, void *buf, size_t len);
@@ -181,46 +181,46 @@ void message_register(int msg_type,
void message_deregister(int msg_type);
BOOL message_send_all(TDB_CONTEXT *conn_tdb, int msg_type, void *buf, size_t len, BOOL duplicates_allowed);
-/*The following definitions come from lib/ms_fnmatch.c */
+/* The following definitions come from lib/ms_fnmatch.c */
int ms_fnmatch(const char *pattern, const char *string);
-/*The following definitions come from lib/pidfile.c */
+/* The following definitions come from lib/pidfile.c */
pid_t pidfile_pid(char *name);
void pidfile_create(char *name);
-/*The following definitions come from lib/readline.c */
+/* The following definitions come from lib/readline.c */
char *smb_readline(char *prompt, void (*callback)(void),
char **(completion_fn)(char *text, int start, int end));
void cmd_history(void);
-/*The following definitions come from lib/replace.c */
+/* The following definitions come from lib/replace.c */
char *rep_inet_ntoa(struct in_addr ip);
-/*The following definitions come from lib/select.c */
+/* The following definitions come from lib/select.c */
void sys_select_signal(void);
int sys_select(int maxfd, fd_set *fds,struct timeval *tval);
int sys_select_intr(int maxfd, fd_set *fds,struct timeval *tval);
-/*The following definitions come from lib/signal.c */
+/* The following definitions come from lib/signal.c */
void BlockSignals(BOOL block,int signum);
void CatchSignal(int signum,void (*handler)(int ));
void CatchChild(void);
void CatchChildLeaveStatus(void);
-/*The following definitions come from lib/smbrun.c */
+/* The following definitions come from lib/smbrun.c */
int smbrun(char *cmd, int *outfd);
-/*The following definitions come from lib/snprintf.c */
+/* The following definitions come from lib/snprintf.c */
-/*The following definitions come from lib/substitute.c */
+/* The following definitions come from lib/substitute.c */
void standard_sub_basic(char *str);
void standard_sub_advanced(int snum, char *user, char *connectpath, gid_t gid, char *str);
@@ -229,7 +229,7 @@ void standard_sub_snum(int snum, char *str);
void standard_sub_vuser(char *str, user_struct *vuser);
void standard_sub_vsnum(char *str, user_struct *vuser, int snum);
-/*The following definitions come from lib/sysacls.c */
+/* The following definitions come from lib/sysacls.c */
int sys_acl_get_entry( SMB_ACL_T the_acl, int entry_id, SMB_ACL_ENTRY_T *entry_p);
int sys_acl_get_tag_type( SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T *tag_type_p);
@@ -358,7 +358,7 @@ int sys_acl_set_fd( int fd, SMB_ACL_T theacl);
int sys_acl_free_acl(SMB_ACL_T the_acl) ;
int sys_acl_free_qualifier(void *qual) ;
-/*The following definitions come from lib/system.c */
+/* The following definitions come from lib/system.c */
int sys_usleep(long usecs);
int sys_stat(const char *fname,SMB_STRUCT_STAT *sbuf);
@@ -405,7 +405,7 @@ void *sys_dlopen(const char *name, int flags);
void *sys_dlsym(void *handle, char *symbol);
int sys_dlclose (void *handle);
-/*The following definitions come from lib/talloc.c */
+/* The following definitions come from lib/talloc.c */
TALLOC_CTX *talloc_init(void);
void *talloc(TALLOC_CTX *t, size_t size);
@@ -417,7 +417,7 @@ void *talloc_zero(TALLOC_CTX *t, size_t size);
void *talloc_memdup(TALLOC_CTX *t, void *p, size_t size);
char *talloc_strdup(TALLOC_CTX *t, char *p);
-/*The following definitions come from lib/time.c */
+/* The following definitions come from lib/time.c */
void GetTimeOfDay(struct timeval *tval);
void TimeInit(void);
@@ -438,11 +438,11 @@ char *http_timestring(time_t t);
char *timestring(BOOL hires);
time_t get_create_time(SMB_STRUCT_STAT *st,BOOL fake_dirs);
-/*The following definitions come from lib/ufc.c */
+/* The following definitions come from lib/ufc.c */
char *ufc_crypt(char *key,char *salt);
-/*The following definitions come from lib/username.c */
+/* The following definitions come from lib/username.c */
char *get_user_home_dir(char *user);
BOOL map_username(char *user);
@@ -451,7 +451,7 @@ BOOL user_in_group_list(char *user,char *gname);
BOOL user_in_list(char *user,char *list);
struct passwd *smb_getpwnam(char *user, BOOL allow_change);
-/*The following definitions come from lib/util.c */
+/* The following definitions come from lib/util.c */
char *tmpdir(void);
BOOL in_group(gid_t group, gid_t current_gid, int ngroups, gid_t *groups);
@@ -521,7 +521,7 @@ BOOL ms_has_wild(char *s);
BOOL mask_match(char *string, char *pattern, BOOL is_case_sensitive);
int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6);
-/*The following definitions come from lib/util_array.c */
+/* The following definitions come from lib/util_array.c */
void free_void_array(uint32 num_entries, void **entries,
void(free_item)(void*));
@@ -538,7 +538,7 @@ uint32* add_uint32s_to_array(uint32 *len, uint32 ***array, const uint32 *name);
void free_sid_array(uint32 num_entries, DOM_SID **entries);
DOM_SID* add_sid_to_array(uint32 *len, DOM_SID ***array, const DOM_SID *sid);
-/*The following definitions come from lib/util_file.c */
+/* The following definitions come from lib/util_file.c */
BOOL do_file_lock(int fd, int waitsecs, int type);
BOOL file_lock(int fd, int type, int secs, int *plock_depth);
@@ -559,7 +559,7 @@ char **file_lines_pload(char *syscmd, int *numlines, BOOL convert);
void file_lines_free(char **lines);
void file_lines_slashcont(char **lines);
-/*The following definitions come from lib/util_list.c */
+/* The following definitions come from lib/util_list.c */
BOOL copy_policy_hnd (POLICY_HND *dest, const POLICY_HND *src);
BOOL compare_rpc_hnd_node(const RPC_HND_NODE *x,
@@ -569,7 +569,7 @@ BOOL RpcHndList_set_connection(const POLICY_HND *hnd,
BOOL RpcHndList_del_connection(const POLICY_HND *hnd);
struct cli_connection* RpcHndList_get_connection(const POLICY_HND *hnd);
-/*The following definitions come from lib/util_seaccess.c */
+/* The following definitions come from lib/util_seaccess.c */
void se_map_generic(uint32 *access_mask, struct generic_mapping *mapping);
BOOL se_access_check(SEC_DESC *sd, struct current_user *user,
@@ -577,7 +577,7 @@ BOOL se_access_check(SEC_DESC *sd, struct current_user *user,
SEC_DESC_BUF *se_create_child_secdesc(TALLOC_CTX *ctx, SEC_DESC *parent_ctr,
BOOL child_container);
-/*The following definitions come from lib/util_sec.c */
+/* The following definitions come from lib/util_sec.c */
void gain_root_privilege(void);
void gain_root_group_privilege(void);
@@ -588,7 +588,7 @@ void restore_re_uid(void);
int set_re_uid(void);
void become_user_permanently(uid_t uid, gid_t gid);
-/*The following definitions come from lib/util_sid.c */
+/* The following definitions come from lib/util_sid.c */
void generate_wellknown_sids(void);
BOOL map_domain_sid_to_name(DOM_SID *sid, char *nt_domain);
@@ -607,7 +607,7 @@ int sid_compare(const DOM_SID *sid1, const DOM_SID *sid2);
BOOL sid_equal(const DOM_SID *sid1, const DOM_SID *sid2);
size_t sid_size(DOM_SID *sid);
-/*The following definitions come from lib/util_sock.c */
+/* The following definitions come from lib/util_sock.c */
BOOL is_a_socket(int fd);
void set_socket_options(int fd, char *options);
@@ -636,7 +636,7 @@ int open_pipe_sock(char *path);
int create_pipe_socket(char *dir, int dir_perms,
char *path, int path_perms);
-/*The following definitions come from lib/util_str.c */
+/* The following definitions come from lib/util_str.c */
void set_first_token(char *ptr);
BOOL next_token(char **ptr,char *buff,char *sep, size_t bufsize);
@@ -676,7 +676,7 @@ void split_at_last_component(char *path, char *front, char sep, char *back);
char *octal_string(int i);
char *string_truncate(char *s, int length);
-/*The following definitions come from lib/util_unistr.c */
+/* The following definitions come from lib/util_unistr.c */
size_t dos_PutUniCode(char *dst,const char *src, ssize_t len, BOOL null_terminate);
void unistr_to_dos(char *dest, const char *src, size_t len);
@@ -759,14 +759,14 @@ smb_ucs2_t *string_truncate_w(smb_ucs2_t *s, size_t length);
smb_ucs2_t doscp2ucs2(int w);
int ucs2doscp(smb_ucs2_t w);
-/*The following definitions come from lib/wins_srv.c */
+/* The following definitions come from lib/wins_srv.c */
BOOL wins_srv_load_list( char *src );
struct in_addr wins_srv_ip( void );
void wins_srv_died( struct in_addr boothill_ip );
unsigned long wins_srv_count( void );
-/*The following definitions come from libsmb/cli_lsarpc.c */
+/* The following definitions come from libsmb/cli_lsarpc.c */
struct cli_state *cli_lsa_initialise(struct cli_state *cli, char *system_name,
struct ntuser_creds *creds);
@@ -789,7 +789,7 @@ uint32 cli_lsa_enum_trust_dom(struct cli_state *cli, TALLOC_CTX *mem_ctx,
uint32 *num_domains, char ***domain_names,
DOM_SID **domain_sids);
-/*The following definitions come from libsmb/cli_samr.c */
+/* The following definitions come from libsmb/cli_samr.c */
struct cli_state *cli_samr_initialise(struct cli_state *cli, char *system_name,
struct ntuser_creds *creds);
@@ -810,7 +810,7 @@ uint32 cli_samr_open_group(struct cli_state *cli, TALLOC_CTX *mem_ctx,
uint32 group_rid, POLICY_HND *group_pol);
uint32 cli_samr_query_userinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *user_pol, uint16 switch_value,
- SAM_USERINFO_CTR *ctr);
+ SAM_USERINFO_CTR **ctr);
uint32 cli_samr_query_groupinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *group_pol, uint32 info_level,
GROUP_INFO_CTR *ctr);
@@ -843,7 +843,7 @@ uint32 cli_samr_lookup_rids(struct cli_state *cli, TALLOC_CTX *mem_ctx,
uint32 *num_names, char ***names,
uint32 **name_types);
-/*The following definitions come from libsmb/cli_spoolss.c */
+/* The following definitions come from libsmb/cli_spoolss.c */
struct cli_state *cli_spoolss_initialise(struct cli_state *cli,
char *system_name,
@@ -930,7 +930,7 @@ uint32 cli_spoolss_addprinterex (
PRINTER_INFO_CTR *ctr
);
-/*The following definitions come from libsmb/cliconnect.c */
+/* The following definitions come from libsmb/cliconnect.c */
BOOL cli_session_setup(struct cli_state *cli,
char *user,
@@ -955,7 +955,7 @@ BOOL cli_establish_connection(struct cli_state *cli,
BOOL attempt_netbios_session_request(struct cli_state *cli, char *srchost, char *desthost,
struct in_addr *pdest_ip);
-/*The following definitions come from libsmb/clidgram.c */
+/* The following definitions come from libsmb/clidgram.c */
int cli_send_mailslot(int dgram_sock, BOOL unique, char *mailslot,
char *buf, int len,
@@ -967,7 +967,7 @@ int cli_get_response(int dgram_sock, BOOL unique, char *mailslot, char *buf, int
int cli_get_backup_list(const char *myname, const char *send_to_name);
int cli_get_backup_server(char *my_name, char *target, char *servername, int namesize);
-/*The following definitions come from libsmb/clientgen.c */
+/* The following definitions come from libsmb/clientgen.c */
int cli_set_port(struct cli_state *cli, int port);
BOOL cli_receive_smb(struct cli_state *cli);
@@ -980,12 +980,12 @@ void cli_shutdown(struct cli_state *cli);
void cli_sockopt(struct cli_state *cli, char *options);
uint16 cli_setpid(struct cli_state *cli, uint16 pid);
-/*The following definitions come from libsmb/clierror.c */
+/* The following definitions come from libsmb/clierror.c */
char *cli_errstr(struct cli_state *cli);
int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num, uint32 *nt_rpc_error);
-/*The following definitions come from libsmb/clifile.c */
+/* The following definitions come from libsmb/clifile.c */
BOOL cli_rename(struct cli_state *cli, char *fname_src, char *fname_dst);
BOOL cli_unlink(struct cli_state *cli, char *fname);
@@ -1014,7 +1014,7 @@ BOOL cli_chkpath(struct cli_state *cli, char *path);
BOOL cli_dskattr(struct cli_state *cli, int *bsize, int *total, int *avail);
int cli_ctemp(struct cli_state *cli, char *path, char **tmp_path);
-/*The following definitions come from libsmb/clilist.c */
+/* The following definitions come from libsmb/clilist.c */
int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
void (*fn)(file_info *, const char *, void *), void *state);
@@ -1023,20 +1023,20 @@ int cli_list_old(struct cli_state *cli,const char *Mask,uint16 attribute,
int cli_list(struct cli_state *cli,const char *Mask,uint16 attribute,
void (*fn)(file_info *, const char *, void *), void *state);
-/*The following definitions come from libsmb/climessage.c */
+/* The following definitions come from libsmb/climessage.c */
BOOL cli_message_start(struct cli_state *cli, char *host, char *username,
int *grp);
BOOL cli_message_text(struct cli_state *cli, char *msg, int len, int grp);
BOOL cli_message_end(struct cli_state *cli, int grp);
-/*The following definitions come from libsmb/cliprint.c */
+/* The following definitions come from libsmb/cliprint.c */
int cli_print_queue(struct cli_state *cli,
void (*fn)(struct print_job_info *));
int cli_printjob_del(struct cli_state *cli, int job);
-/*The following definitions come from libsmb/clirap.c */
+/* The following definitions come from libsmb/clirap.c */
BOOL cli_api_pipe(struct cli_state *cli, char *pipe_name,
uint16 *setup, uint32 setup_count, uint32 max_setup_count,
@@ -1068,7 +1068,7 @@ BOOL cli_qfileinfo(struct cli_state *cli, int fnum,
time_t *c_time, time_t *a_time, time_t *m_time,
time_t *w_time, SMB_INO_T *ino);
-/*The following definitions come from libsmb/clireadwrite.c */
+/* The following definitions come from libsmb/clireadwrite.c */
size_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size);
ssize_t cli_write(struct cli_state *cli,
@@ -1077,18 +1077,18 @@ ssize_t cli_write(struct cli_state *cli,
ssize_t cli_smbwrite(struct cli_state *cli,
int fnum, char *buf, off_t offset, size_t size1);
-/*The following definitions come from libsmb/clisecdesc.c */
+/* The following definitions come from libsmb/clisecdesc.c */
SEC_DESC *cli_query_secdesc(struct cli_state *cli,int fd, TALLOC_CTX *mem_ctx);
BOOL cli_set_secdesc(struct cli_state *cli,int fd, SEC_DESC *sd);
-/*The following definitions come from libsmb/clistr.c */
+/* The following definitions come from libsmb/clistr.c */
int clistr_push(struct cli_state *cli, void *dest, const char *src, int dest_len, int flags);
int clistr_pull(struct cli_state *cli, char *dest, const void *src, int dest_len, int src_len, int flags);
int clistr_align(const void *buf, const void *p);
-/*The following definitions come from libsmb/clitrans.c */
+/* The following definitions come from libsmb/clitrans.c */
BOOL cli_send_trans(struct cli_state *cli, int trans,
char *pipe_name,
@@ -1109,7 +1109,7 @@ BOOL cli_receive_nt_trans(struct cli_state *cli,
char **param, int *param_len,
char **data, int *data_len);
-/*The following definitions come from libsmb/credentials.c */
+/* The following definitions come from libsmb/credentials.c */
char *credstr(uchar *cred);
void cred_session_key(DOM_CHAL *clnt_chal, DOM_CHAL *srv_chal, char *pass,
@@ -1124,7 +1124,7 @@ BOOL deal_with_creds(uchar sess_key[8],
DOM_CRED *sto_clnt_cred,
DOM_CRED *rcv_clnt_cred, DOM_CRED *rtn_srv_cred);
-/*The following definitions come from libsmb/namequery.c */
+/* The following definitions come from libsmb/namequery.c */
struct node_status *name_status_query(int fd,struct nmb_name *name,
struct in_addr to_ip, int *num_names);
@@ -1149,7 +1149,7 @@ BOOL find_master_ip(char *group, struct in_addr *master_ip);
BOOL lookup_pdc_name(const char *srcname, const char *domain, struct in_addr *pdc_ip, char *ret_name);
BOOL get_dc_list(BOOL pdc_only, char *group, struct in_addr **ip_list, int *count);
-/*The following definitions come from libsmb/nmblib.c */
+/* The following definitions come from libsmb/nmblib.c */
void debug_nmb_packet(struct packet_struct *p);
char *nmb_namestr(struct nmb_name *n);
@@ -1172,18 +1172,18 @@ int name_mangle( char *In, char *Out, char name_type );
int name_extract(char *buf,int ofs,char *name);
int name_len(char *s1);
-/*The following definitions come from libsmb/nterr.c */
+/* The following definitions come from libsmb/nterr.c */
BOOL get_safe_nt_error_msg(uint32 nt_code,char *msg, size_t len);
char *get_nt_error_msg(uint32 nt_code);
-/*The following definitions come from libsmb/passchange.c */
+/* The following definitions come from libsmb/passchange.c */
BOOL remote_password_change(const char *remote_machine, const char *user_name,
const char *old_passwd, const char *new_passwd,
char *err_str, size_t err_str_len);
-/*The following definitions come from libsmb/pwd_cache.c */
+/* The following definitions come from libsmb/pwd_cache.c */
void pwd_init(struct pwd_info *pwd);
BOOL pwd_is_nullpwd(const struct pwd_info *pwd);
@@ -1198,7 +1198,7 @@ void pwd_make_lm_nt_16(struct pwd_info *pwd, char *clr);
void pwd_make_lm_nt_owf(struct pwd_info *pwd, uchar cryptkey[8]);
void pwd_get_lm_nt_owf(struct pwd_info *pwd, uchar lm_owf[24], uchar nt_owf[24]);
-/*The following definitions come from libsmb/smbdes.c */
+/* The following definitions come from libsmb/smbdes.c */
void E_P16(unsigned char *p14,unsigned char *p16);
void E_P24(unsigned char *p21, unsigned char *c8, unsigned char *p24);
@@ -1209,7 +1209,7 @@ void cred_hash2(unsigned char *out,unsigned char *in,unsigned char *key);
void cred_hash3(unsigned char *out,unsigned char *in,unsigned char *key, int forw);
void SamOEMhash( unsigned char *data, unsigned char *key, int val);
-/*The following definitions come from libsmb/smbencrypt.c */
+/* The following definitions come from libsmb/smbencrypt.c */
void SMBencrypt(uchar *passwd, uchar *c8, uchar *p24);
void E_md4hash(uchar *passwd, uchar *p16);
@@ -1222,18 +1222,18 @@ BOOL decode_pw_buffer(char in_buffer[516], char *new_pwrd,
int new_pwrd_size, uint32 *new_pw_len,
uchar nt_p16[16], uchar p16[16]);
-/*The following definitions come from libsmb/smberr.c */
+/* The following definitions come from libsmb/smberr.c */
char *smb_errstr(char *inbuf);
-/*The following definitions come from libsmb/unexpected.c */
+/* The following definitions come from libsmb/unexpected.c */
void unexpected_packet(struct packet_struct *p);
void clear_unexpected(time_t t);
struct packet_struct *receive_unexpected(enum packet_type packet_type, int id,
char *mailslot_name);
-/*The following definitions come from locking/brlock.c */
+/* The following definitions come from locking/brlock.c */
void brl_init(int read_only);
BOOL brl_lock(SMB_DEV_T dev, SMB_INO_T ino, int fnum,
@@ -1250,7 +1250,7 @@ BOOL brl_locktest(SMB_DEV_T dev, SMB_INO_T ino, int fnum,
void brl_close(SMB_DEV_T dev, SMB_INO_T ino, pid_t pid, int tid, int fnum);
int brl_forall(BRLOCK_FN(fn));
-/*The following definitions come from locking/locking.c */
+/* The following definitions come from locking/locking.c */
BOOL is_locked(files_struct *fsp,connection_struct *conn,
SMB_BIG_UINT count,SMB_BIG_UINT offset,
@@ -1280,7 +1280,7 @@ BOOL downgrade_share_oplock(files_struct *fsp);
BOOL modify_delete_flag( SMB_DEV_T dev, SMB_INO_T inode, BOOL delete_on_close);
int share_mode_forall(SHAREMODE_FN(fn));
-/*The following definitions come from locking/posix.c */
+/* The following definitions come from locking/posix.c */
int fd_close_posix(struct connection_struct *conn, files_struct *fsp);
uint32 map_lock_offset(uint32 high, uint32 low);
@@ -1291,7 +1291,7 @@ void posix_locking_close_file(files_struct *fsp);
BOOL posix_locking_init(int read_only);
BOOL posix_locking_end(void);
-/*The following definitions come from msdfs/msdfs.c */
+/* The following definitions come from msdfs/msdfs.c */
BOOL create_junction(char* pathname, struct junction_map* jn);
BOOL is_msdfs_link(connection_struct* conn, char* path);
@@ -1308,7 +1308,7 @@ int setup_dfs_referral(char* pathname, int max_referral_level,
char** ppdata);
BOOL is_msdfs_link(connection_struct* conn, char* path);
-/*The following definitions come from nmbd/asyncdns.c */
+/* The following definitions come from nmbd/asyncdns.c */
int asyncdns_fd(void);
void kill_async_dns_child(void);
@@ -1320,14 +1320,14 @@ BOOL queue_dns_query(struct packet_struct *p,struct nmb_name *question,
struct name_record **n);
void kill_async_dns_child(void);
-/*The following definitions come from nmbd/nmbd.c */
+/* The following definitions come from nmbd/nmbd.c */
-/*The following definitions come from nmbd/nmbd_become_dmb.c */
+/* The following definitions come from nmbd/nmbd_become_dmb.c */
void add_domain_names(time_t t);
-/*The following definitions come from nmbd/nmbd_become_lmb.c */
+/* The following definitions come from nmbd/nmbd_become_lmb.c */
void insert_permanent_name_into_unicast( struct subnet_record *subrec,
struct nmb_name *nmbname, uint16 nb_type );
@@ -1336,7 +1336,7 @@ void unbecome_local_master_browser(struct subnet_record *subrec, struct work_rec
void become_local_master_browser(struct subnet_record *subrec, struct work_record *work);
void set_workgroup_local_master_browser_name( struct work_record *work, char *newname);
-/*The following definitions come from nmbd/nmbd_browserdb.c */
+/* The following definitions come from nmbd/nmbd_browserdb.c */
void update_browser_death_time( struct browse_cache_record *browc );
struct browse_cache_record *create_browser_in_lmb_cache( char *work_name,
@@ -1345,7 +1345,7 @@ struct browse_cache_record *create_browser_in_lmb_cache( char *work_name,
struct browse_cache_record *find_browser_in_lmb_cache( char *browser_name );
void expire_lmb_browsers( time_t t );
-/*The following definitions come from nmbd/nmbd_browsesync.c */
+/* The following definitions come from nmbd/nmbd_browsesync.c */
void dmb_expire_and_sync_browser_lists(time_t t);
void announce_and_sync_with_domain_master_browser( struct subnet_record *subrec,
@@ -1353,7 +1353,7 @@ void announce_and_sync_with_domain_master_browser( struct subnet_record *subrec,
void collect_all_workgroup_names_from_wins_server(time_t t);
void sync_all_dmbs(time_t t);
-/*The following definitions come from nmbd/nmbd_elections.c */
+/* The following definitions come from nmbd/nmbd_elections.c */
void check_master_browser_exists(time_t t);
void run_elections(time_t t);
@@ -1361,7 +1361,7 @@ void process_election(struct subnet_record *subrec, struct packet_struct *p, cha
BOOL check_elections(void);
void nmbd_message_election(int msg_type, pid_t src, void *buf, size_t len);
-/*The following definitions come from nmbd/nmbd_incomingdgrams.c */
+/* The following definitions come from nmbd/nmbd_incomingdgrams.c */
void tell_become_backup(void);
void process_host_announce(struct subnet_record *subrec, struct packet_struct *p, char *buf);
@@ -1377,7 +1377,7 @@ void process_reset_browser(struct subnet_record *subrec,
void process_announce_request(struct subnet_record *subrec, struct packet_struct *p, char *buf);
void process_lm_announce_request(struct subnet_record *subrec, struct packet_struct *p, char *buf);
-/*The following definitions come from nmbd/nmbd_incomingrequests.c */
+/* The following definitions come from nmbd/nmbd_incomingrequests.c */
void process_name_release_request(struct subnet_record *subrec,
struct packet_struct *p);
@@ -1388,23 +1388,23 @@ void process_name_registration_request(struct subnet_record *subrec,
void process_node_status_request(struct subnet_record *subrec, struct packet_struct *p);
void process_name_query_request(struct subnet_record *subrec, struct packet_struct *p);
-/*The following definitions come from nmbd/nmbd_lmhosts.c */
+/* The following definitions come from nmbd/nmbd_lmhosts.c */
void load_lmhosts_file(char *fname);
BOOL find_name_in_lmhosts(struct nmb_name *nmbname, struct name_record **namerecp);
-/*The following definitions come from nmbd/nmbd_logonnames.c */
+/* The following definitions come from nmbd/nmbd_logonnames.c */
void add_logon_names(void);
-/*The following definitions come from nmbd/nmbd_mynames.c */
+/* The following definitions come from nmbd/nmbd_mynames.c */
void register_my_workgroup_one_subnet(struct subnet_record *subrec);
BOOL register_my_workgroup_and_names(void);
void release_my_names(void);
void refresh_my_names(time_t t);
-/*The following definitions come from nmbd/nmbd_namelistdb.c */
+/* The following definitions come from nmbd/nmbd_namelistdb.c */
void set_samba_nb_type(void);
void remove_name_from_namelist( struct subnet_record *subrec,
@@ -1444,7 +1444,7 @@ void expire_names(time_t t);
void add_samba_names_to_subnet( struct subnet_record *subrec );
void dump_all_namelists(void);
-/*The following definitions come from nmbd/nmbd_namequery.c */
+/* The following definitions come from nmbd/nmbd_namequery.c */
BOOL query_name(struct subnet_record *subrec, char *name, int type,
query_name_success_function success_fn,
@@ -1456,7 +1456,7 @@ BOOL query_name_from_wins_server(struct in_addr ip_to,
query_name_fail_function fail_fn,
struct userdata_struct *userdata);
-/*The following definitions come from nmbd/nmbd_nameregister.c */
+/* The following definitions come from nmbd/nmbd_nameregister.c */
BOOL register_name(struct subnet_record *subrec,
char *name, int type, uint16 nb_flags,
@@ -1468,20 +1468,20 @@ BOOL refresh_name(struct subnet_record *subrec, struct name_record *namerec,
refresh_name_fail_function fail_fn,
struct userdata_struct *userdata);
-/*The following definitions come from nmbd/nmbd_namerelease.c */
+/* The following definitions come from nmbd/nmbd_namerelease.c */
BOOL release_name(struct subnet_record *subrec, struct name_record *namerec,
release_name_success_function success_fn,
release_name_fail_function fail_fn,
struct userdata_struct *userdata);
-/*The following definitions come from nmbd/nmbd_nodestatus.c */
+/* The following definitions come from nmbd/nmbd_nodestatus.c */
BOOL node_status(struct subnet_record *subrec, struct nmb_name *nmbname,
struct in_addr send_ip, node_status_success_function success_fn,
node_status_fail_function fail_fn, struct userdata_struct *userdata);
-/*The following definitions come from nmbd/nmbd_packets.c */
+/* The following definitions come from nmbd/nmbd_packets.c */
uint16 get_nb_flags(char *buf);
void set_nb_flags(char *buf, uint16 nb_flags);
@@ -1553,12 +1553,12 @@ BOOL send_mailslot(BOOL unique, char *mailslot,char *buf,int len,
struct in_addr dest_ip,struct in_addr src_ip,
int dest_port);
-/*The following definitions come from nmbd/nmbd_processlogon.c */
+/* The following definitions come from nmbd/nmbd_processlogon.c */
void process_logon_packet(struct packet_struct *p,char *buf,int len,
char *mailslot);
-/*The following definitions come from nmbd/nmbd_responserecordsdb.c */
+/* The following definitions come from nmbd/nmbd_responserecordsdb.c */
void remove_response_record(struct subnet_record *subrec,
struct response_record *rrec);
@@ -1573,7 +1573,7 @@ struct response_record *find_response_record(struct subnet_record **ppsubrec,
uint16 id);
BOOL is_refresh_already_queued(struct subnet_record *subrec, struct name_record *namerec);
-/*The following definitions come from nmbd/nmbd_sendannounce.c */
+/* The following definitions come from nmbd/nmbd_sendannounce.c */
void send_browser_reset(int reset_type, char *to_name, int to_type, struct in_addr to_ip);
void broadcast_announce_request(struct subnet_record *subrec, struct work_record *work);
@@ -1585,7 +1585,7 @@ void announce_my_servers_removed(void);
void announce_remote(time_t t);
void browse_sync_remote(time_t t);
-/*The following definitions come from nmbd/nmbd_serverlistdb.c */
+/* The following definitions come from nmbd/nmbd_serverlistdb.c */
void remove_all_servers(struct work_record *work);
struct server_record *find_server_in_workgroup(struct work_record *work, char *name);
@@ -1597,7 +1597,7 @@ void update_server_ttl(struct server_record *servrec, int ttl);
void expire_servers(struct work_record *work, time_t t);
void write_browse_list(time_t t, BOOL force_write);
-/*The following definitions come from nmbd/nmbd_subnetdb.c */
+/* The following definitions come from nmbd/nmbd_subnetdb.c */
void close_subnet(struct subnet_record *subrec);
struct subnet_record *make_normal_subnet(struct interface *iface);
@@ -1606,20 +1606,20 @@ BOOL we_are_a_wins_client(void);
struct subnet_record *get_next_subnet_maybe_unicast(struct subnet_record *subrec);
struct subnet_record *get_next_subnet_maybe_unicast_or_wins_server(struct subnet_record *subrec);
-/*The following definitions come from nmbd/nmbd_synclists.c */
+/* The following definitions come from nmbd/nmbd_synclists.c */
void sync_browse_lists(struct work_record *work,
char *name, int nm_type,
struct in_addr ip, BOOL local, BOOL servers);
void sync_check_completion(void);
-/*The following definitions come from nmbd/nmbd_winsproxy.c */
+/* The following definitions come from nmbd/nmbd_winsproxy.c */
void make_wins_proxy_name_query_request( struct subnet_record *subrec,
struct packet_struct *incoming_packet,
struct nmb_name *question_name);
-/*The following definitions come from nmbd/nmbd_winsserver.c */
+/* The following definitions come from nmbd/nmbd_winsserver.c */
BOOL packet_is_for_wins_server(struct packet_struct *packet);
BOOL initialise_wins(void);
@@ -1638,7 +1638,7 @@ void wins_process_name_release_request(struct subnet_record *subrec,
void initiate_wins_processing(time_t t);
void wins_write_database(BOOL background);
-/*The following definitions come from nmbd/nmbd_workgroupdb.c */
+/* The following definitions come from nmbd/nmbd_workgroupdb.c */
struct work_record *find_workgroup_on_subnet(struct subnet_record *subrec,
const char *name);
@@ -1649,7 +1649,7 @@ void initiate_myworkgroup_startup(struct subnet_record *subrec, struct work_reco
void dump_workgroups(BOOL force_write);
void expire_workgroups_and_servers(time_t t);
-/*The following definitions come from nsswitch/wb_client.c */
+/* The following definitions come from nsswitch/wb_client.c */
BOOL winbind_lookup_name(const char *name, DOM_SID *sid, enum SID_NAME_USE *name_type);
BOOL winbind_lookup_sid(DOM_SID *sid, fstring dom_name, fstring name, enum SID_NAME_USE *name_type);
@@ -1664,7 +1664,7 @@ BOOL winbind_gidtoname(fstring name, gid_t gid);
BOOL winbind_nametouid(uid_t *puid, char *name);
BOOL winbind_nametogid(gid_t *pgid, char *gname);
-/*The following definitions come from nsswitch/wb_common.c */
+/* The following definitions come from nsswitch/wb_common.c */
void init_request(struct winbindd_request *request, int request_type);
void init_response(struct winbindd_response *response);
@@ -1673,7 +1673,7 @@ int write_sock(void *buffer, int count);
int read_reply(struct winbindd_response *response);
void free_response(struct winbindd_response *response);
-/*The following definitions come from nsswitch/winbindd_glue.c */
+/* The following definitions come from nsswitch/winbindd_glue.c */
BOOL wb_lsa_open_policy(char *server, BOOL sec_qos, uint32 des_access,
CLI_POLICY_HND *pol);
@@ -1690,12 +1690,11 @@ BOOL wb_samr_close(CLI_POLICY_HND *hnd);
BOOL wb_samr_connect(char *server, uint32 access_mask, CLI_POLICY_HND *pol);
BOOL wb_samr_open_domain(CLI_POLICY_HND *connect_pol, uint32 ace_perms,
DOM_SID *sid, CLI_POLICY_HND *domain_pol);
-void wb_free_samr_userinfo_ctr(SAM_USERINFO_CTR * ctr);
uint32 wb_samr_enum_dom_groups(CLI_POLICY_HND *pol, uint32 *start_idx,
uint32 size, struct acct_info **sam,
uint32 *num_sam_groups);
BOOL wb_get_samr_query_userinfo(CLI_POLICY_HND *pol, uint32 info_level,
- uint32 user_rid, SAM_USERINFO_CTR *ctr);
+ uint32 user_rid, SAM_USERINFO_CTR **ctr);
BOOL wb_samr_open_user(CLI_POLICY_HND *pol, uint32 access_mask, uint32 rid,
POLICY_HND *user_pol);
BOOL wb_samr_query_usergroups(CLI_POLICY_HND *pol, uint32 *num_groups,
@@ -1711,7 +1710,7 @@ BOOL wb_samr_query_dispinfo(CLI_POLICY_HND *pol, uint32 *start_ndx,
uint16 info_level, uint32 *num_entries,
SAM_DISPINFO_CTR *ctr);
-/*The following definitions come from param/loadparm.c */
+/* The following definitions come from param/loadparm.c */
void lp_talloc_free(void);
char *lp_logfile(void);
@@ -1996,17 +1995,17 @@ int lp_minor_announce_version(void);
void lp_set_name_resolve_order(char *new_order);
char *lp_printername(int snum);
-/*The following definitions come from param/params.c */
+/* The following definitions come from param/params.c */
BOOL pm_process( char *FileName,
BOOL (*sfunc)(char *),
BOOL (*pfunc)(char *, char *) );
-/*The following definitions come from passdb/machine_sid.c */
+/* The following definitions come from passdb/machine_sid.c */
BOOL pdb_generate_sam_sid(void);
-/*The following definitions come from passdb/pampass.c */
+/* The following definitions come from passdb/pampass.c */
BOOL smb_pam_claim_session(char *user, char *tty, char *rhost);
BOOL smb_pam_close_session(char *user, char *tty, char *rhost);
@@ -2014,13 +2013,13 @@ uint32 smb_pam_accountcheck(char * user);
uint32 smb_pam_passcheck(char * user, char * password);
BOOL smb_pam_passchange(char * user, char * oldpassword, char * newpassword);
-/*The following definitions come from passdb/pass_check.c */
+/* The following definitions come from passdb/pass_check.c */
void dfs_unlogin(void);
BOOL pass_check(char *user, char *password, int pwlen, struct passwd *pwd,
BOOL (*fn) (char *, char *));
-/*The following definitions come from passdb/passdb.c */
+/* The following definitions come from passdb/passdb.c */
BOOL initialize_password_db(BOOL reload);
BOOL pdb_init_sam(SAM_ACCOUNT **user);
@@ -2111,7 +2110,7 @@ BOOL pdb_set_unknown_5 (SAM_ACCOUNT *sampass, uint32 unkn);
BOOL pdb_set_unknown_6 (SAM_ACCOUNT *sampass, uint32 unkn);
BOOL pdb_set_hours (SAM_ACCOUNT *sampass, uint8 *hours);
-/*The following definitions come from passdb/pdb_smbpasswd.c */
+/* The following definitions come from passdb/pdb_smbpasswd.c */
BOOL pdb_setsampwent (BOOL update);
void pdb_endsampwent (void);
@@ -2123,7 +2122,7 @@ BOOL pdb_add_sam_account(SAM_ACCOUNT *sampass);
BOOL pdb_update_sam_account(SAM_ACCOUNT *sampass, BOOL override);
BOOL pdb_delete_sam_account (char* username);
-/*The following definitions come from passdb/pdb_tdb.c */
+/* The following definitions come from passdb/pdb_tdb.c */
BOOL pdb_setsampwent(BOOL update);
void pdb_endsampwent(void);
@@ -2135,7 +2134,7 @@ BOOL pdb_delete_sam_account(char *sname);
BOOL pdb_update_sam_account (SAM_ACCOUNT *newpwd, BOOL override);
BOOL pdb_add_sam_account (SAM_ACCOUNT *newpwd);
-/*The following definitions come from passdb/secrets.c */
+/* The following definitions come from passdb/secrets.c */
BOOL secrets_init(void);
void *secrets_fetch(char *key, size_t *size);
@@ -2149,22 +2148,22 @@ BOOL secrets_fetch_trust_account_password(char *domain, uint8 ret_pwd[16],
BOOL secrets_store_trust_account_password(char *domain, uint8 new_pwd[16]);
BOOL trust_password_delete(char *domain);
-/*The following definitions come from passdb/smbpassfile.c */
+/* The following definitions come from passdb/smbpassfile.c */
BOOL migrate_from_old_password_file(char *domain);
-/*The following definitions come from printing/load.c */
+/* The following definitions come from printing/load.c */
void add_all_printers(void);
void load_printers(void);
-/*The following definitions come from printing/lpq_parse.c */
+/* The following definitions come from printing/lpq_parse.c */
BOOL parse_lpq_entry(int snum,char *line,
print_queue_struct *buf,
print_status_struct *status,BOOL first);
-/*The following definitions come from printing/nt_printing.c */
+/* The following definitions come from printing/nt_printing.c */
BOOL nt_printing_init(void);
int get_builtin_ntforms(nt_forms_struct **list);
@@ -2207,28 +2206,28 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type);
BOOL print_time_access_check(int snum);
uint32 printer_write_default_dev(int snum, const PRINTER_DEFAULT *printer_default);
-/*The following definitions come from printing/pcap.c */
+/* The following definitions come from printing/pcap.c */
BOOL pcap_printername_ok(char *pszPrintername, char *pszPrintcapname);
void pcap_printer_fn(void (*fn)(char *, char *));
-/*The following definitions come from printing/print_cups.c */
+/* The following definitions come from printing/print_cups.c */
-/*The following definitions come from printing/print_generic.c */
+/* The following definitions come from printing/print_generic.c */
-/*The following definitions come from printing/print_svid.c */
+/* The following definitions come from printing/print_svid.c */
void sysv_printer_fn(void (*fn)(char *, char *));
int sysv_printername_ok(char *name);
-/*The following definitions come from printing/printfsp.c */
+/* The following definitions come from printing/printfsp.c */
files_struct *print_fsp_open(connection_struct *conn);
void print_fsp_end(files_struct *fsp, BOOL normal_close);
-/*The following definitions come from printing/printing.c */
+/* The following definitions come from printing/printing.c */
BOOL print_backend_init(void);
BOOL print_job_exists(int jobid);
@@ -2251,13 +2250,13 @@ BOOL print_queue_pause(struct current_user *user, int snum, int *errcode);
BOOL print_queue_resume(struct current_user *user, int snum, int *errcode);
BOOL print_queue_purge(struct current_user *user, int snum, int *errcode);
-/*The following definitions come from profile/profile.c */
+/* The following definitions come from profile/profile.c */
void profile_message(int msg_type, pid_t src, void *buf, size_t len);
void reqprofile_message(int msg_type, pid_t src, void *buf, size_t len);
BOOL profile_setup(BOOL rdonly);
-/*The following definitions come from rpc_client/cli_connect.c */
+/* The following definitions come from rpc_client/cli_connect.c */
void init_connections(void);
void free_connections(void);
@@ -2276,7 +2275,7 @@ BOOL rpc_con_pipe_req(struct cli_connection *con, uint8 op_num,
prs_struct * data, prs_struct * rdata);
BOOL rpc_con_ok(struct cli_connection *con);
-/*The following definitions come from rpc_client/cli_login.c */
+/* The following definitions come from rpc_client/cli_login.c */
BOOL cli_nt_setup_creds(struct cli_state *cli, unsigned char mach_pwd[16]);
BOOL cli_nt_srv_pwset(struct cli_state *cli, unsigned char *new_hashof_mach_pwd);
@@ -2289,7 +2288,7 @@ BOOL cli_nt_login_network(struct cli_state *cli, char *domain, char *username,
NET_ID_INFO_CTR *ctr, NET_USER_INFO_3 *user_info3);
BOOL cli_nt_logoff(struct cli_state *cli, NET_ID_INFO_CTR *ctr);
-/*The following definitions come from rpc_client/cli_lsarpc.c */
+/* The following definitions come from rpc_client/cli_lsarpc.c */
BOOL do_lsa_open_policy(struct cli_state *cli,
char *system_name, POLICY_HND *hnd,
@@ -2307,7 +2306,7 @@ uint32 lsa_lookup_sids(POLICY_HND *hnd, int num_sids, DOM_SID *sids,
uint32 lsa_lookup_names(POLICY_HND *hnd, int num_names, char **names,
DOM_SID **sids, uint32 **types, int *num_sids);
-/*The following definitions come from rpc_client/cli_netlogon.c */
+/* The following definitions come from rpc_client/cli_netlogon.c */
BOOL cli_net_logon_ctrl2(struct cli_state *cli, uint32 status_level);
BOOL cli_net_auth2(struct cli_state *cli, uint16 sec_chan,
@@ -2318,7 +2317,7 @@ BOOL cli_net_sam_logon(struct cli_state *cli, NET_ID_INFO_CTR *ctr, NET_USER_INF
BOOL cli_net_sam_logoff(struct cli_state *cli, NET_ID_INFO_CTR *ctr);
BOOL change_trust_account_password( char *domain, char *remote_machine_list);
-/*The following definitions come from rpc_client/cli_pipe.c */
+/* The following definitions come from rpc_client/cli_pipe.c */
BOOL rpc_api_pipe_req(struct cli_state *cli, uint8 op_num,
prs_struct *data, prs_struct *rdata);
@@ -2327,7 +2326,7 @@ void cli_nt_set_ntlmssp_flgs(struct cli_state *cli, uint32 ntlmssp_flgs);
BOOL cli_nt_session_open(struct cli_state *cli, char *pipe_name);
void cli_nt_session_close(struct cli_state *cli);
-/*The following definitions come from rpc_client/cli_spoolss_notify.c */
+/* The following definitions come from rpc_client/cli_spoolss_notify.c */
BOOL spoolss_disconnect_from_client( struct cli_state *cli);
BOOL spoolss_connect_to_client( struct cli_state *cli, char *remote_machine);
@@ -2336,7 +2335,7 @@ BOOL cli_spoolss_reply_rrpcn(struct cli_state *cli, POLICY_HND *handle,
uint32 change_low, uint32 change_high, uint32 *status);
BOOL cli_spoolss_reply_close_printer(struct cli_state *cli, POLICY_HND *handle, uint32 *status);
-/*The following definitions come from rpc_client/cli_use.c */
+/* The following definitions come from rpc_client/cli_use.c */
void init_cli_use(void);
void free_cli_use(void);
@@ -2349,7 +2348,7 @@ BOOL cli_net_use_del(const char *srv_name,
void cli_net_use_enum(uint32 *num_cons, struct use_info ***use);
void cli_use_wait_keyboard(void);
-/*The following definitions come from rpc_client/ncacn_np_use.c */
+/* The following definitions come from rpc_client/ncacn_np_use.c */
BOOL ncacn_np_use_del(const char *srv_name, const char *pipe_name,
const vuser_key * key,
@@ -2362,7 +2361,7 @@ struct ncacn_np *ncacn_np_use_add(const char *pipe_name,
const struct ntuser_creds *ntc,
BOOL reuse, BOOL *is_new_connection);
-/*The following definitions come from rpc_parse/parse_creds.c */
+/* The following definitions come from rpc_parse/parse_creds.c */
BOOL make_creds_unix(CREDS_UNIX *r_u, const char* user_name,
const char* requested_name,
@@ -2404,7 +2403,7 @@ BOOL create_user_creds( prs_struct *ps,
uint32 pid,
struct user_creds *usr);
-/*The following definitions come from rpc_parse/parse_dfs.c */
+/* The following definitions come from rpc_parse/parse_dfs.c */
BOOL dfs_io_q_dfs_exist(char *desc, DFS_Q_DFS_EXIST *q_d, prs_struct *ps, int depth);
BOOL dfs_io_r_dfs_exist(char *desc, DFS_R_DFS_EXIST *q_d, prs_struct *ps, int depth);
@@ -2424,7 +2423,7 @@ BOOL dfs_io_dfs_info_ctr(char* desc, DFS_INFO_CTR* ctr, uint32 num_entries, uint
BOOL dfs_io_r_dfs_enum(char *desc, DFS_R_DFS_ENUM *q_d, prs_struct *ps, int depth);
BOOL dfs_io_dfs_storage_info(char *desc, DFS_INFO_3* info3, prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_lsa.c */
+/* The following definitions come from rpc_parse/parse_lsa.c */
void init_lsa_trans_name(LSA_TRANS_NAME *trn, UNISTR2 *uni_name,
uint16 sid_name_use, char *name, uint32 idx);
@@ -2488,7 +2487,7 @@ BOOL lsa_io_r_close(char *desc, LSA_R_CLOSE *r_c, prs_struct *ps, int depth);
BOOL lsa_io_q_open_secret(char *desc, LSA_Q_OPEN_SECRET *q_c, prs_struct *ps, int depth);
BOOL lsa_io_r_open_secret(char *desc, LSA_R_OPEN_SECRET *r_c, prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_misc.c */
+/* The following definitions come from rpc_parse/parse_misc.c */
TALLOC_CTX *get_current_rpc_talloc(void);
void set_current_rpc_talloc( TALLOC_CTX *ctx);
@@ -2561,7 +2560,7 @@ void init_unistr3(UNISTR3 *str, const char *buf);
BOOL smb_io_unistr3(char *desc, UNISTR3 *name, prs_struct *ps, int depth);
BOOL prs_uint64(char *name, prs_struct *ps, int depth, UINT64_S *data64);
-/*The following definitions come from rpc_parse/parse_net.c */
+/* The following definitions come from rpc_parse/parse_net.c */
BOOL net_io_q_logon_ctrl2(char *desc, NET_Q_LOGON_CTRL2 *q_l, prs_struct *ps, int depth);
void init_r_logon_ctrl2(NET_R_LOGON_CTRL2 *r_l, uint32 query_level,
@@ -2614,7 +2613,7 @@ BOOL net_io_r_sam_logon(char *desc, NET_R_SAM_LOGON *r_l, prs_struct *ps, int de
BOOL net_io_q_sam_logoff(char *desc, NET_Q_SAM_LOGOFF *q_l, prs_struct *ps, int depth);
BOOL net_io_r_sam_logoff(char *desc, NET_R_SAM_LOGOFF *r_l, prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_prs.c */
+/* The following definitions come from rpc_parse/parse_prs.c */
void prs_dump(char *name, int v, prs_struct *ps);
void prs_debug(prs_struct *ps, int depth, char *desc, char *fn_name);
@@ -2664,7 +2663,7 @@ BOOL prs_uint32_post(char *name, prs_struct *ps, int depth, uint32 *data32,
int tdb_prs_store(TDB_CONTEXT *tdb, char *keystr, prs_struct *ps);
int tdb_prs_fetch(TDB_CONTEXT *tdb, char *keystr, prs_struct *ps, TALLOC_CTX *mem_ctx);
-/*The following definitions come from rpc_parse/parse_reg.c */
+/* The following definitions come from rpc_parse/parse_reg.c */
void init_reg_q_open_hklm(REG_Q_OPEN_HKLM *q_o,
uint16 unknown_0, uint32 level);
@@ -2732,7 +2731,7 @@ void init_reg_r_open_entry(REG_R_OPEN_ENTRY *r_r,
POLICY_HND *pol, uint32 status);
BOOL reg_io_r_open_entry(char *desc, REG_R_OPEN_ENTRY *r_r, prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_rpc.c */
+/* The following definitions come from rpc_parse/parse_rpc.c */
void init_rpc_hdr(RPC_HDR *hdr, enum RPC_PKT_TYPE pkt_type, uint8 flags,
uint32 call_id, int data_len, int auth_len);
@@ -2786,7 +2785,7 @@ void init_rpc_auth_ntlmssp_chk(RPC_AUTH_NTLMSSP_CHK *chk,
uint32 ver, uint32 crc32, uint32 seq_num);
BOOL smb_io_rpc_auth_ntlmssp_chk(char *desc, RPC_AUTH_NTLMSSP_CHK *chk, prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_samr.c */
+/* The following definitions come from rpc_parse/parse_samr.c */
void init_samr_q_close_hnd(SAMR_Q_CLOSE_HND * q_c, POLICY_HND *hnd);
BOOL samr_io_q_close_hnd(char *desc, SAMR_Q_CLOSE_HND * q_u,
@@ -3242,7 +3241,7 @@ void init_samr_r_chgpasswd_user(SAMR_R_CHGPASSWD_USER * r_u, uint32 status);
BOOL samr_io_r_chgpasswd_user(char *desc, SAMR_R_CHGPASSWD_USER * r_u,
prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_sec.c */
+/* The following definitions come from rpc_parse/parse_sec.c */
void init_sec_access(SEC_ACCESS *t, uint32 mask);
BOOL sec_io_access(char *desc, SEC_ACCESS *t, prs_struct *ps, int depth);
@@ -3267,7 +3266,7 @@ SEC_DESC_BUF *make_sec_desc_buf(TALLOC_CTX *ctx, size_t len, SEC_DESC *sec_desc)
SEC_DESC_BUF *dup_sec_desc_buf(TALLOC_CTX *ctx, SEC_DESC_BUF *src);
BOOL sec_io_desc_buf(char *desc, SEC_DESC_BUF **ppsdb, prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_spoolss.c */
+/* The following definitions come from rpc_parse/parse_spoolss.c */
BOOL make_systemtime(SYSTEMTIME *systime, struct tm *unixtime);
BOOL smb_io_notify_info_data_strings(char *desc,SPOOL_NOTIFY_INFO_DATA *data,
@@ -3514,7 +3513,7 @@ BOOL make_spoolss_q_reply_rrpcn(SPOOL_Q_REPLY_RRPCN *q_u, POLICY_HND *hnd,
BOOL spoolss_io_q_reply_rrpcn(char *desc, SPOOL_Q_REPLY_RRPCN *q_u, prs_struct *ps, int depth);
BOOL spoolss_io_r_reply_rrpcn(char *desc, SPOOL_R_REPLY_RRPCN *r_u, prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_srv.c */
+/* The following definitions come from rpc_parse/parse_srv.c */
void init_srv_share_info1_str(SH_INFO_1_STR *sh1, char *net_name, char *remark);
void init_srv_share_info1(SH_INFO_1 *sh1, char *net_name, uint32 type, char *remark);
@@ -3610,7 +3609,7 @@ BOOL srv_io_r_net_disk_enum(char *desc, SRV_R_NET_DISK_ENUM *r_n, prs_struct *ps
BOOL srv_io_q_net_name_validate(char *desc, SRV_Q_NET_NAME_VALIDATE *q_n, prs_struct *ps, int depth);
BOOL srv_io_r_net_name_validate(char *desc, SRV_R_NET_NAME_VALIDATE *r_n, prs_struct *ps, int depth);
-/*The following definitions come from rpc_parse/parse_wks.c */
+/* The following definitions come from rpc_parse/parse_wks.c */
void init_wks_q_query_info(WKS_Q_QUERY_INFO *q_u,
char *server, uint16 switch_value) ;
@@ -3623,11 +3622,11 @@ void init_wks_r_query_info(WKS_R_QUERY_INFO *r_u,
int status) ;
BOOL wks_io_r_query_info(char *desc, WKS_R_QUERY_INFO *r_u, prs_struct *ps, int depth);
-/*The following definitions come from rpc_server/srv_dfs.c */
+/* The following definitions come from rpc_server/srv_dfs.c */
BOOL api_netdfs_rpc(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_dfs_nt.c */
+/* The following definitions come from rpc_server/srv_dfs_nt.c */
uint32 _dfs_exist(pipes_struct *p, DFS_Q_DFS_EXIST *q_u, DFS_R_DFS_EXIST *r_u);
uint32 _dfs_add(pipes_struct *p, DFS_Q_DFS_ADD* q_u, DFS_R_DFS_ADD *r_u);
@@ -3635,11 +3634,11 @@ uint32 _dfs_remove(pipes_struct *p, DFS_Q_DFS_REMOVE *q_u, DFS_R_DFS_REMOVE *r_u
uint32 _dfs_enum(pipes_struct *p, DFS_Q_DFS_ENUM *q_u, DFS_R_DFS_ENUM *r_u);
uint32 _dfs_get_info(pipes_struct *p, DFS_Q_DFS_GET_INFO *q_u, DFS_R_DFS_GET_INFO *r_u);
-/*The following definitions come from rpc_server/srv_lsa.c */
+/* The following definitions come from rpc_server/srv_lsa.c */
BOOL api_ntlsa_rpc(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_lsa_hnd.c */
+/* The following definitions come from rpc_server/srv_lsa_hnd.c */
BOOL init_pipe_handle_list(pipes_struct *p, char *pipe_name);
BOOL create_policy_hnd(pipes_struct *p, POLICY_HND *hnd, void (*free_fn)(void *), void *data_ptr);
@@ -3647,7 +3646,7 @@ BOOL find_policy_by_hnd(pipes_struct *p, POLICY_HND *hnd, void **data_p);
BOOL close_policy_hnd(pipes_struct *p, POLICY_HND *hnd);
void close_policy_by_pipe(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_lsa_nt.c */
+/* The following definitions come from rpc_server/srv_lsa_nt.c */
uint32 _lsa_open_policy2(pipes_struct *p, LSA_Q_OPEN_POL2 *q_u, LSA_R_OPEN_POL2 *r_u);
uint32 _lsa_open_policy(pipes_struct *p, LSA_Q_OPEN_POL *q_u, LSA_R_OPEN_POL *r_u);
@@ -3658,11 +3657,11 @@ uint32 _lsa_lookup_names(pipes_struct *p,LSA_Q_LOOKUP_NAMES *q_u, LSA_R_LOOKUP_N
uint32 _lsa_close(pipes_struct *p, LSA_Q_CLOSE *q_u, LSA_R_CLOSE *r_u);
uint32 _lsa_open_secret(pipes_struct *p, LSA_Q_OPEN_SECRET *q_u, LSA_R_OPEN_SECRET *r_u);
-/*The following definitions come from rpc_server/srv_netlog.c */
+/* The following definitions come from rpc_server/srv_netlog.c */
BOOL api_netlog_rpc(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_netlog_nt.c */
+/* The following definitions come from rpc_server/srv_netlog_nt.c */
uint32 _net_logon_ctrl2(pipes_struct *p, NET_Q_LOGON_CTRL2 *q_u, NET_R_LOGON_CTRL2 *r_u);
uint32 _net_trust_dom_list(pipes_struct *p, NET_Q_TRUST_DOM_LIST *q_u, NET_R_TRUST_DOM_LIST *r_u);
@@ -3673,7 +3672,7 @@ uint32 _net_srv_pwset(pipes_struct *p, NET_Q_SRV_PWSET *q_u, NET_R_SRV_PWSET *r_
uint32 _net_sam_logoff(pipes_struct *p, NET_Q_SAM_LOGOFF *q_u, NET_R_SAM_LOGOFF *r_u);
uint32 _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON *r_u);
-/*The following definitions come from rpc_server/srv_pipe.c */
+/* The following definitions come from rpc_server/srv_pipe.c */
BOOL create_next_pdu(pipes_struct *p);
BOOL api_pipe_bind_auth_resp(pipes_struct *p, prs_struct *rpc_in_p);
@@ -3687,7 +3686,7 @@ BOOL api_pipe_request(pipes_struct *p);
BOOL api_rpcTNP(pipes_struct *p, char *rpc_name,
struct api_struct *api_rpc_cmds);
-/*The following definitions come from rpc_server/srv_pipe_hnd.c */
+/* The following definitions come from rpc_server/srv_pipe_hnd.c */
pipes_struct *get_first_pipe(void);
pipes_struct *get_next_pipe(pipes_struct *p);
@@ -3705,22 +3704,22 @@ BOOL close_rpc_pipe_hnd(pipes_struct *p, connection_struct *conn);
pipes_struct *get_rpc_pipe_p(char *buf, int where);
pipes_struct *get_rpc_pipe(int pnum);
-/*The following definitions come from rpc_server/srv_reg.c */
+/* The following definitions come from rpc_server/srv_reg.c */
BOOL api_reg_rpc(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_reg_nt.c */
+/* The following definitions come from rpc_server/srv_reg_nt.c */
uint32 _reg_close(pipes_struct *p, REG_Q_CLOSE *q_u, REG_R_CLOSE *r_u);
uint32 _reg_open(pipes_struct *p, REG_Q_OPEN_HKLM *q_u, REG_R_OPEN_HKLM *r_u);
uint32 _reg_open_entry(pipes_struct *p, REG_Q_OPEN_ENTRY *q_u, REG_R_OPEN_ENTRY *r_u);
uint32 _reg_info(pipes_struct *p, REG_Q_INFO *q_u, REG_R_INFO *r_u);
-/*The following definitions come from rpc_server/srv_samr.c */
+/* The following definitions come from rpc_server/srv_samr.c */
BOOL api_samr_rpc(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_samr_nt.c */
+/* The following definitions come from rpc_server/srv_samr_nt.c */
uint32 _samr_close_hnd(pipes_struct *p, SAMR_Q_CLOSE_HND *q_u, SAMR_R_CLOSE_HND *r_u);
uint32 _samr_open_domain(pipes_struct *p, SAMR_Q_OPEN_DOMAIN *q_u, SAMR_R_OPEN_DOMAIN *r_u);
@@ -3765,11 +3764,11 @@ uint32 _samr_get_dom_pwinfo(pipes_struct *p, SAMR_Q_GET_DOM_PWINFO *q_u, SAMR_R_
uint32 _samr_open_group(pipes_struct *p, SAMR_Q_OPEN_GROUP *q_u, SAMR_R_OPEN_GROUP *r_u);
uint32 _samr_unknown_2d(pipes_struct *p, SAMR_Q_UNKNOWN_2D *q_u, SAMR_R_UNKNOWN_2D *r_u);
-/*The following definitions come from rpc_server/srv_spoolss.c */
+/* The following definitions come from rpc_server/srv_spoolss.c */
BOOL api_spoolss_rpc(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_spoolss_nt.c */
+/* The following definitions come from rpc_server/srv_spoolss_nt.c */
void srv_spoolss_receive_message(int msg_type, pid_t src, void *buf, size_t len);
uint32 _spoolss_open_printer_ex( pipes_struct *p, SPOOL_Q_OPEN_PRINTER_EX *q_u, SPOOL_R_OPEN_PRINTER_EX *r_u);
@@ -3813,11 +3812,11 @@ uint32 _spoolss_enumprintprocdatatypes(pipes_struct *p, SPOOL_Q_ENUMPRINTPROCDAT
uint32 _spoolss_enumprintmonitors(pipes_struct *p, SPOOL_Q_ENUMPRINTMONITORS *q_u, SPOOL_R_ENUMPRINTMONITORS *r_u);
uint32 _spoolss_getjob( pipes_struct *p, SPOOL_Q_GETJOB *q_u, SPOOL_R_GETJOB *r_u);
-/*The following definitions come from rpc_server/srv_srvsvc.c */
+/* The following definitions come from rpc_server/srv_srvsvc.c */
BOOL api_srvsvc_rpc(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_srvsvc_nt.c */
+/* The following definitions come from rpc_server/srv_srvsvc_nt.c */
BOOL share_info_db_init(void);
void map_generic_share_sd_bits(SEC_DESC *psd);
@@ -3836,7 +3835,7 @@ uint32 _srv_net_remote_tod(pipes_struct *p, SRV_Q_NET_REMOTE_TOD *q_u, SRV_R_NET
uint32 _srv_net_disk_enum(pipes_struct *p, SRV_Q_NET_DISK_ENUM *q_u, SRV_R_NET_DISK_ENUM *r_u);
uint32 _srv_net_name_validate(pipes_struct *p, SRV_Q_NET_NAME_VALIDATE *q_u, SRV_R_NET_NAME_VALIDATE *r_u);
-/*The following definitions come from rpc_server/srv_util.c */
+/* The following definitions come from rpc_server/srv_util.c */
int make_dom_gids(TALLOC_CTX *ctx, char *gids_str, DOM_GID **ppgids);
void get_domain_user_groups(char *domain_groups, char *user);
@@ -3847,27 +3846,27 @@ uint32 local_lookup_group_rid(char *group_name, uint32 *rid);
uint32 local_lookup_alias_rid(char *alias_name, uint32 *rid);
uint32 local_lookup_user_rid(char *user_name, uint32 *rid);
-/*The following definitions come from rpc_server/srv_wkssvc.c */
+/* The following definitions come from rpc_server/srv_wkssvc.c */
BOOL api_wkssvc_rpc(pipes_struct *p);
-/*The following definitions come from rpc_server/srv_wkssvc_nt.c */
+/* The following definitions come from rpc_server/srv_wkssvc_nt.c */
uint32 _wks_query_info(pipes_struct *p, WKS_Q_QUERY_INFO *q_u, WKS_R_QUERY_INFO *r_u);
-/*The following definitions come from rpcclient/cmd_lsarpc.c */
+/* The following definitions come from rpcclient/cmd_lsarpc.c */
-/*The following definitions come from rpcclient/cmd_samr.c */
+/* The following definitions come from rpcclient/cmd_samr.c */
void display_sam_info_1(SAM_ENTRY1 *e1, SAM_STR1 *s1);
-/*The following definitions come from rpcclient/cmd_spoolss.c */
+/* The following definitions come from rpcclient/cmd_spoolss.c */
BOOL get_short_archi(char *short_archi, char *long_archi);
void set_drv_info_3_env (DRIVER_INFO_3 *info, const char *arch);
-/*The following definitions come from rpcclient/rpcclient.c */
+/* The following definitions come from rpcclient/rpcclient.c */
void fetch_domain_sid(struct cli_state *cli);
void init_rpcclient_creds(struct ntuser_creds *creds, char* username,
@@ -3876,7 +3875,7 @@ void add_command_set(struct cmd_set *cmd_set);
struct cli_state *setup_connection(struct cli_state *cli, char *system_name,
struct ntuser_creds *creds);
-/*The following definitions come from smbd/blocking.c */
+/* The following definitions come from smbd/blocking.c */
BOOL push_blocking_lock_request( char *inbuf, int length, int lock_timeout, int lock_num);
void remove_pending_lock_requests_by_fid(files_struct *fsp);
@@ -3884,7 +3883,7 @@ void remove_pending_lock_requests_by_mid(int mid);
BOOL blocking_locks_pending(void);
void process_blocking_lock_queue(time_t t);
-/*The following definitions come from smbd/chgpasswd.c */
+/* The following definitions come from smbd/chgpasswd.c */
BOOL chgpasswd(char *name, char *oldpass, char *newpass, BOOL as_root);
BOOL chgpasswd(char *name, char *oldpass, char *newpass, BOOL as_root);
@@ -3905,11 +3904,11 @@ BOOL change_oem_password(SAM_ACCOUNT *hnd, char *new_passwd,
BOOL check_plaintext_password(char *user, char *old_passwd,
int old_passwd_size, SAM_ACCOUNT **hnd);
-/*The following definitions come from smbd/close.c */
+/* The following definitions come from smbd/close.c */
int close_file(files_struct *fsp, BOOL normal_close);
-/*The following definitions come from smbd/conn.c */
+/* The following definitions come from smbd/conn.c */
void conn_init(void);
int conn_num_open(void);
@@ -3920,18 +3919,18 @@ void conn_close_all(void);
BOOL conn_idle_all(time_t t, int deadtime);
void conn_free(connection_struct *conn);
-/*The following definitions come from smbd/connection.c */
+/* The following definitions come from smbd/connection.c */
TDB_CONTEXT *conn_tdb_ctx(void);
BOOL yield_connection(connection_struct *conn,char *name,int max_connections);
BOOL claim_connection(connection_struct *conn,char *name,int max_connections,BOOL Clear);
-/*The following definitions come from smbd/dfree.c */
+/* The following definitions come from smbd/dfree.c */
SMB_BIG_UINT sys_disk_free(char *path, BOOL small_query,
SMB_BIG_UINT *bsize,SMB_BIG_UINT *dfree,SMB_BIG_UINT *dsize);
-/*The following definitions come from smbd/dir.c */
+/* The following definitions come from smbd/dir.c */
void init_dptrs(void);
char *dptr_path(int key);
@@ -3959,7 +3958,7 @@ void DirCacheAdd( char *path, char *name, char *dname, int snum );
char *DirCacheCheck( char *path, char *name, int snum );
void DirCacheFlush(int snum);
-/*The following definitions come from smbd/dosmode.c */
+/* The following definitions come from smbd/dosmode.c */
mode_t unix_mode(connection_struct *conn,int dosmode,const char *fname);
int dos_mode(connection_struct *conn,char *path,SMB_STRUCT_STAT *sbuf);
@@ -3967,13 +3966,13 @@ int file_chmod(connection_struct *conn,char *fname,int dosmode,SMB_STRUCT_STAT *
int file_utime(connection_struct *conn, char *fname, struct utimbuf *times);
BOOL set_filetime(connection_struct *conn, char *fname, time_t mtime);
-/*The following definitions come from smbd/error.c */
+/* The following definitions come from smbd/error.c */
int cached_error_packet(char *inbuf,char *outbuf,files_struct *fsp,int line);
int unix_error_packet(char *inbuf,char *outbuf,int def_class,uint32 def_code,int line);
int error_packet(char *inbuf,char *outbuf,int error_class,uint32 error_code,int line);
-/*The following definitions come from smbd/fileio.c */
+/* The following definitions come from smbd/fileio.c */
SMB_OFF_T seek_file(files_struct *fsp,SMB_OFF_T pos);
BOOL read_from_write_cache(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n);
@@ -3984,13 +3983,13 @@ void set_filelen_write_cache(files_struct *fsp, SMB_OFF_T file_size);
ssize_t flush_write_cache(files_struct *fsp, enum flush_reason_enum reason);
void sync_file(connection_struct *conn, files_struct *fsp);
-/*The following definitions come from smbd/filename.c */
+/* The following definitions come from smbd/filename.c */
BOOL unix_convert(char *name,connection_struct *conn,char *saved_last_component,
BOOL *bad_path, SMB_STRUCT_STAT *pst);
BOOL check_name(char *name,connection_struct *conn);
-/*The following definitions come from smbd/files.c */
+/* The following definitions come from smbd/files.c */
files_struct *file_new(connection_struct *conn);
void file_close_conn(connection_struct *conn);
@@ -4008,7 +4007,7 @@ void file_chain_reset(void);
void file_chain_save(void);
void file_chain_restore(void);
-/*The following definitions come from smbd/ipc.c */
+/* The following definitions come from smbd/ipc.c */
void send_trans_reply(char *outbuf,
char *rparam, int rparam_len,
@@ -4016,12 +4015,12 @@ void send_trans_reply(char *outbuf,
BOOL buffer_too_large);
int reply_trans(connection_struct *conn, char *inbuf,char *outbuf, int size, int bufsize);
-/*The following definitions come from smbd/lanman.c */
+/* The following definitions come from smbd/lanman.c */
int api_reply(connection_struct *conn,uint16 vuid,char *outbuf,char *data,char *params,
int tdscnt,int tpscnt,int mdrcnt,int mprcnt);
-/*The following definitions come from smbd/mangle.c */
+/* The following definitions come from smbd/mangle.c */
BOOL is_mangled( char *s );
BOOL is_8_3( char *fname, BOOL check_case );
@@ -4030,7 +4029,7 @@ BOOL check_mangled_cache( char *s );
void mangle_name_83( char *s);
BOOL name_map_mangle(char *OutName, BOOL need83, BOOL cache83, int snum);
-/*The following definitions come from smbd/message.c */
+/* The following definitions come from smbd/message.c */
int reply_sends(connection_struct *conn,
char *inbuf,char *outbuf, int dum_size, int dum_buffsize);
@@ -4041,17 +4040,17 @@ int reply_sendtxt(connection_struct *conn,
int reply_sendend(connection_struct *conn,
char *inbuf,char *outbuf, int dum_size, int dum_buffsize);
-/*The following definitions come from smbd/negprot.c */
+/* The following definitions come from smbd/negprot.c */
int reply_negprot(connection_struct *conn,
char *inbuf,char *outbuf, int dum_size,
int dum_buffsize);
-/*The following definitions come from smbd/noquotas.c */
+/* The following definitions come from smbd/noquotas.c */
BOOL disk_quotas(char *path,SMB_BIG_UINT *bsize,SMB_BIG_UINT *dfree,SMB_BIG_UINT *dsize);
-/*The following definitions come from smbd/notify.c */
+/* The following definitions come from smbd/notify.c */
void remove_pending_change_notify_requests_by_fid(files_struct *fsp);
void remove_pending_change_notify_requests_by_mid(int mid);
@@ -4061,15 +4060,15 @@ BOOL process_pending_change_notify_queue(time_t t);
BOOL change_notify_set(char *inbuf, files_struct *fsp, connection_struct *conn, uint32 flags);
BOOL init_change_notify(void);
-/*The following definitions come from smbd/notify_hash.c */
+/* The following definitions come from smbd/notify_hash.c */
struct cnotify_fns *hash_notify_init(void) ;
-/*The following definitions come from smbd/notify_kernel.c */
+/* The following definitions come from smbd/notify_kernel.c */
struct cnotify_fns *kernel_notify_init(void) ;
-/*The following definitions come from smbd/nttrans.c */
+/* The following definitions come from smbd/nttrans.c */
void fail_next_srvsvc_open(void);
BOOL should_fail_next_srvsvc_open(const char *pipename);
@@ -4082,7 +4081,7 @@ int reply_nttranss(connection_struct *conn,
int reply_nttrans(connection_struct *conn,
char *inbuf,char *outbuf,int length,int bufsize);
-/*The following definitions come from smbd/open.c */
+/* The following definitions come from smbd/open.c */
int fd_close(struct connection_struct *conn, files_struct *fsp);
files_struct *open_file_shared(connection_struct *conn,char *fname, SMB_STRUCT_STAT *psbuf,
@@ -4095,7 +4094,7 @@ files_struct *open_directory(connection_struct *conn, char *fname,
SMB_STRUCT_STAT *psbuf, int smb_ofun, mode_t unixmode, int *action);
BOOL check_file_sharing(connection_struct *conn,char *fname, BOOL rename_op);
-/*The following definitions come from smbd/oplock.c */
+/* The following definitions come from smbd/oplock.c */
int32 get_number_of_exclusive_open_oplocks(void);
BOOL receive_local_message(fd_set *fds, char *buffer, int buffer_len, int timeout);
@@ -4111,15 +4110,15 @@ BOOL attempt_close_oplocked_file(files_struct *fsp);
void release_level_2_oplocks_on_change(files_struct *fsp);
BOOL init_oplocks(void);
-/*The following definitions come from smbd/oplock_irix.c */
+/* The following definitions come from smbd/oplock_irix.c */
struct kernel_oplocks *irix_init_kernel_oplocks(void) ;
-/*The following definitions come from smbd/oplock_linux.c */
+/* The following definitions come from smbd/oplock_linux.c */
struct kernel_oplocks *linux_init_kernel_oplocks(void) ;
-/*The following definitions come from smbd/password.c */
+/* The following definitions come from smbd/password.c */
void generate_next_challenge(char *challenge);
BOOL set_challenge(unsigned char *challenge);
@@ -4152,7 +4151,7 @@ BOOL domain_client_validate( char *user, char *domain,
char *smb_ntpasswd, int smb_ntpasslen,
BOOL *user_exists);
-/*The following definitions come from smbd/pipes.c */
+/* The following definitions come from smbd/pipes.c */
int reply_open_pipe_and_X(connection_struct *conn,
char *inbuf,char *outbuf,int length,int bufsize);
@@ -4161,14 +4160,14 @@ int reply_pipe_write_and_X(char *inbuf,char *outbuf,int length,int bufsize);
int reply_pipe_read_and_X(char *inbuf,char *outbuf,int length,int bufsize);
int reply_pipe_close(connection_struct *conn, char *inbuf,char *outbuf);
-/*The following definitions come from smbd/posix_acls.c */
+/* The following definitions come from smbd/posix_acls.c */
size_t get_nt_acl(files_struct *fsp, SEC_DESC **ppdesc);
BOOL set_nt_acl(files_struct *fsp, uint32 security_info_sent, SEC_DESC *psd);
int chmod_acl(char *name, mode_t mode);
int fchmod_acl(int fd, mode_t mode);
-/*The following definitions come from smbd/process.c */
+/* The following definitions come from smbd/process.c */
BOOL push_oplock_pending_smb_message(char *buf, int msg_len);
BOOL receive_next_smb(char *inbuf, int bufsize, int timeout);
@@ -4180,7 +4179,7 @@ int chain_reply(char *inbuf,char *outbuf,int size,int bufsize);
void check_reload(int t);
void smbd_process(void);
-/*The following definitions come from smbd/reply.c */
+/* The following definitions come from smbd/reply.c */
int reply_special(char *inbuf,char *outbuf);
int reply_tcon(connection_struct *conn,
@@ -4254,7 +4253,7 @@ int reply_writebs(connection_struct *conn, char *inbuf,char *outbuf, int dum_siz
int reply_setattrE(connection_struct *conn, char *inbuf,char *outbuf, int size, int dum_buffsize);
int reply_getattrE(connection_struct *conn, char *inbuf,char *outbuf, int size, int dum_buffsize);
-/*The following definitions come from smbd/sec_ctx.c */
+/* The following definitions come from smbd/sec_ctx.c */
int get_current_groups(int *p_ngroups, gid_t **p_groups);
void delete_nt_token(NT_USER_TOKEN **pptoken);
@@ -4266,14 +4265,14 @@ void set_root_sec_ctx(void);
BOOL pop_sec_ctx(void);
void init_sec_ctx(void);
-/*The following definitions come from smbd/server.c */
+/* The following definitions come from smbd/server.c */
int smbd_server_fd(void);
void smbd_set_server_fd(int fd);
BOOL reload_services(BOOL test);
void exit_server(char *reason);
-/*The following definitions come from smbd/service.c */
+/* The following definitions come from smbd/service.c */
BOOL become_service(connection_struct *conn,BOOL do_chdir);
int add_home_service(char *service, char *homedir);
@@ -4281,12 +4280,12 @@ int find_service(char *service);
connection_struct *make_connection(char *service,char *user,char *password, int pwlen, char *dev,uint16 vuid, int *ecode);
void close_cnum(connection_struct *conn, uint16 vuid);
-/*The following definitions come from smbd/session.c */
+/* The following definitions come from smbd/session.c */
BOOL session_claim(uint16 vuid);
void session_yield(uint16 vuid);
-/*The following definitions come from smbd/srvstr.c */
+/* The following definitions come from smbd/srvstr.c */
int srvstr_push(void *outbuf, void *dest, const char *src, int dest_len, int flags);
int srvstr_pull(void *inbuf, char *dest, const void *src, int dest_len, int src_len, int flags);
@@ -4294,7 +4293,7 @@ int srvstr_align(void *inbuf, int offset);
int srvstr_push_ascii(void *dest, const char *src, int dest_len);
int srvstr_pull_ascii(char *dest, const void *src, int dest_len);
-/*The following definitions come from smbd/ssl.c */
+/* The following definitions come from smbd/ssl.c */
int sslutil_init(int isServer);
int sslutil_accept(int fd);
@@ -4303,14 +4302,14 @@ int sslutil_connect(int fd);
int sslutil_disconnect(int fd);
int sslutil_negotiate_ssl(int fd, int msg_type);
-/*The following definitions come from smbd/statcache.c */
+/* The following definitions come from smbd/statcache.c */
void stat_cache_add( char *full_orig_name, char *orig_translated_path);
BOOL stat_cache_lookup(connection_struct *conn, char *name, char *dirpath,
char **start, SMB_STRUCT_STAT *pst);
BOOL reset_stat_cache( void );
-/*The following definitions come from smbd/trans2.c */
+/* The following definitions come from smbd/trans2.c */
int reply_findclose(connection_struct *conn,
char *inbuf,char *outbuf,int length,int bufsize);
@@ -4321,7 +4320,7 @@ int reply_transs2(connection_struct *conn,
int reply_trans2(connection_struct *conn,
char *inbuf,char *outbuf,int length,int bufsize);
-/*The following definitions come from smbd/uid.c */
+/* The following definitions come from smbd/uid.c */
BOOL become_guest(void);
BOOL become_user(connection_struct *conn, uint16 vuid);
@@ -4337,14 +4336,14 @@ DOM_SID *gid_to_sid(DOM_SID *psid, gid_t gid);
BOOL sid_to_uid(DOM_SID *psid, uid_t *puid, enum SID_NAME_USE *sidtype);
BOOL sid_to_gid(DOM_SID *psid, gid_t *pgid, enum SID_NAME_USE *sidtype);
-/*The following definitions come from smbd/utmp.c */
+/* The following definitions come from smbd/utmp.c */
void sys_utmp_yield(const char *username, const char *hostname,
const char *id_str, int id_num);
void sys_utmp_claim(const char *username, const char *hostname,
const char *id_str, int id_num);
-/*The following definitions come from smbd/vfs-wrap.c */
+/* The following definitions come from smbd/vfs-wrap.c */
int vfswrap_dummy_connect(connection_struct *conn, char *service, char *user);
void vfswrap_dummy_disconnect(connection_struct *conn);
@@ -4382,7 +4381,7 @@ BOOL vfswrap_set_nt_acl(files_struct *fsp, char *name, uint32 security_info_sent
int vfswrap_chmod_acl(connection_struct *conn, char *name, mode_t mode);
int vfswrap_fchmod_acl(files_struct *fsp, int fd, mode_t mode);
-/*The following definitions come from smbd/vfs.c */
+/* The following definitions come from smbd/vfs.c */
int vfs_init_default(connection_struct *conn);
BOOL vfs_init_custom(connection_struct *conn);
@@ -4401,12 +4400,12 @@ int vfs_ChDir(connection_struct *conn, char *path);
char *vfs_GetWd(connection_struct *conn, char *path);
BOOL reduce_name(connection_struct *conn, char *s,char *dir,BOOL widelinks);
-/*The following definitions come from smbwrapper/realcalls.c */
+/* The following definitions come from smbwrapper/realcalls.c */
int real_utime(const char *name, struct utimbuf *buf);
int real_utimes(const char *name, struct timeval tv[2]);
-/*The following definitions come from smbwrapper/shared.c */
+/* The following definitions come from smbwrapper/shared.c */
void smbw_setup_shared(void);
char *smbw_getshared(const char *name);
@@ -4414,7 +4413,7 @@ void smbw_setshared(const char *name, const char *val);
int smbw_setenv(const char *name, const char *value);
int smbw_shared_fd(int fd);
-/*The following definitions come from smbwrapper/smbw.c */
+/* The following definitions come from smbwrapper/smbw.c */
void smbw_init(void);
int smbw_fd(int fd);
@@ -4449,7 +4448,7 @@ int smbw_dup(int fd);
int smbw_dup2(int fd, int fd2);
int smbw_fork(void);
-/*The following definitions come from smbwrapper/smbw_cache.c */
+/* The following definitions come from smbwrapper/smbw_cache.c */
BOOL smbw_NetServerEnum(struct cli_state *cli, char *workgroup, uint32 stype,
void (*fn)(const char *, uint32, const char *, void *),
@@ -4458,7 +4457,7 @@ int smbw_RNetShareEnum(struct cli_state *cli,
void (*fn)(const char *, uint32, const char *, void *),
void *state);
-/*The following definitions come from smbwrapper/smbw_dir.c */
+/* The following definitions come from smbwrapper/smbw_dir.c */
struct smbw_dir *smbw_dir(int fd);
int smbw_dirp(DIR *dirp);
@@ -4478,7 +4477,7 @@ int smbw_closedir(DIR *dirp);
void smbw_seekdir(DIR *dirp, off_t offset);
off_t smbw_telldir(DIR *dirp);
-/*The following definitions come from smbwrapper/smbw_stat.c */
+/* The following definitions come from smbwrapper/smbw_stat.c */
void smbw_setup_stat(struct stat *st, char *fname, size_t size, int mode);
BOOL smbw_getatr(struct smbw_server *srv, char *path,
@@ -4490,7 +4489,7 @@ int smbw_stat_printjob(struct smbw_server *srv,char *path,
int smbw_fstat(int fd, struct stat *st);
int smbw_stat(const char *fname, struct stat *st);
-/*The following definitions come from tdb/spinlock.c */
+/* The following definitions come from tdb/spinlock.c */
int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type);
int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type);
@@ -4498,7 +4497,7 @@ int tdb_create_rwlocks(int fd, unsigned int hash_size);
int tdb_clear_spinlocks(TDB_CONTEXT *tdb);
int tdb_clear_spinlocks(TDB_CONTEXT *tdb);
-/*The following definitions come from tdb/tdb.c */
+/* The following definitions come from tdb/tdb.c */
void tdb_printfreelist(TDB_CONTEXT *tdb);
enum TDB_ERROR tdb_error(TDB_CONTEXT *tdb);
@@ -4520,7 +4519,7 @@ void tdb_unlockkeys(TDB_CONTEXT *tdb);
int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key);
void tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key);
-/*The following definitions come from tdb/tdbutil.c */
+/* The following definitions come from tdb/tdbutil.c */
int tdb_lock_bystring(TDB_CONTEXT *tdb, char *keyval);
void tdb_unlock_bystring(TDB_CONTEXT *tdb, char *keyval);
@@ -4533,7 +4532,7 @@ TDB_DATA tdb_fetch_by_string(TDB_CONTEXT *tdb, char *keystr);
size_t tdb_pack(char *buf, int bufsize, char *fmt, ...);
int tdb_unpack(char *buf, int bufsize, char *fmt, ...);
-/*The following definitions come from utils/nbio.c */
+/* The following definitions come from utils/nbio.c */
void nb_setup(struct cli_state *cli);
void nb_unlink(char *fname);
@@ -4547,10 +4546,10 @@ void nb_rename(char *old, char *new);
void nb_stat(char *fname, int size);
void nb_create(char *fname, int size);
-/*The following definitions come from utils/torture.c */
+/* The following definitions come from utils/torture.c */
-/*The following definitions come from web/cgi.c */
+/* The following definitions come from web/cgi.c */
void cgi_load_variables(FILE *f1);
char *cgi_variable(char *name);
@@ -4563,12 +4562,12 @@ char *cgi_remote_host(void);
char *cgi_remote_addr(void);
BOOL cgi_waspost(void);
-/*The following definitions come from web/diagnose.c */
+/* The following definitions come from web/diagnose.c */
BOOL nmbd_running(void);
BOOL smbd_running(void);
-/*The following definitions come from web/startstop.c */
+/* The following definitions come from web/startstop.c */
void start_smbd(void);
void start_nmbd(void);
@@ -4576,10 +4575,10 @@ void stop_smbd(void);
void stop_nmbd(void);
void kill_pid(pid_t pid);
-/*The following definitions come from web/statuspage.c */
+/* The following definitions come from web/statuspage.c */
void status_page(void);
-/*The following definitions come from web/swat.c */
+/* The following definitions come from web/swat.c */
#endif /* _PROTO_H_ */