diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-23 01:48:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-23 01:48:45 +0000 |
commit | aab2fe021643417854451c65e564932f4ac25f10 (patch) | |
tree | 2377d1c7ea68759507f471beb1ab1d101a067552 /source3/include/proto.h | |
parent | 3b7cee95ac741ee24b8edd36095cc30e3377a23c (diff) | |
download | samba-aab2fe021643417854451c65e564932f4ac25f10.tar.gz samba-aab2fe021643417854451c65e564932f4ac25f10.tar.bz2 samba-aab2fe021643417854451c65e564932f4ac25f10.zip |
First cut at kernel oplocks. This should have no effect unless runnin
on a machine that supports them in autoconf.
Move various functions out of lib/util.c into smbd/process.c
and smbd/oplock.c where they belong.
Jeremy.
(This used to be commit c3c5e13f85c97939746070132dad941e79c546fb)
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r-- | source3/include/proto.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index c2d5c0e1ff..cbd4f07b2f 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -276,11 +276,6 @@ SMB_OFF_T transfer_file(int infd,int outfd,SMB_OFF_T n,char *header,int headlen, ssize_t read_smb_length(int fd,char *inbuf,unsigned int timeout); BOOL receive_smb(int fd,char *buffer, unsigned int timeout); BOOL client_receive_smb(int fd,char *buffer, unsigned int timeout); -BOOL receive_local_message(int fd, char *buffer, int buffer_len, unsigned int timeout); -BOOL push_oplock_pending_smb_message(char *buf, int msg_len); -BOOL receive_message_or_smb(int smbfd, int oplock_fd, - char *buffer, int buffer_len, - int timeout, BOOL *got_smb); BOOL send_smb(int fd,char *buffer); int name_extract(char *buf,int ofs,char *name); int name_len( char *s ); @@ -1809,11 +1804,14 @@ BOOL check_file_sharing(connection_struct *conn,char *fname, BOOL rename_op); /*The following definitions come from smbd/oplock.c */ BOOL open_oplock_ipc(void); -BOOL process_local_message(int sock, char *buffer, int buf_size); +BOOL receive_local_message(fd_set *fds, char *buffer, int buffer_len, int timeout); +BOOL set_file_oplock(files_struct *fsp); +int setup_oplock_select_set( fd_set *fds); +BOOL process_local_message(char *buffer, int buf_size); BOOL request_oplock_break(share_mode_entry *share_entry, SMB_DEV_T dev, SMB_INO_T inode); BOOL attempt_close_oplocked_file(files_struct *fsp); -void check_kernel_oplocks(BOOL *have_oplocks); +void check_kernel_oplocks(void); /*The following definitions come from smbd/password.c */ @@ -1857,7 +1855,8 @@ void invalidate_read_prediction(int fd); /*The following definitions come from smbd/process.c */ -BOOL receive_next_smb(int smbfd, int oplockfd, char *inbuf, int bufsize, int timeout); +BOOL push_oplock_pending_smb_message(char *buf, int msg_len); +BOOL receive_next_smb(char *inbuf, int bufsize, int timeout); void process_smb(char *inbuf, char *outbuf); char *smb_fn_name(int type); void construct_reply_common(char *inbuf,char *outbuf); |