diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/config.h.in | 3 | ||||
-rw-r--r-- | source3/include/nterr.h | 2 | ||||
-rw-r--r-- | source3/include/proto.h | 30 | ||||
-rw-r--r-- | source3/include/smb.h | 10 |
4 files changed, 40 insertions, 5 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in index b4a4f134e4..e3afd6a66a 100644 --- a/source3/include/config.h.in +++ b/source3/include/config.h.in @@ -544,6 +544,9 @@ /* Define if you have the pipe function. */ #undef HAVE_PIPE +/* Define if you have the poll function. */ +#undef HAVE_POLL + /* Define if you have the pread function. */ #undef HAVE_PREAD diff --git a/source3/include/nterr.h b/source3/include/nterr.h index 08e7457376..07e874dce0 100644 --- a/source3/include/nterr.h +++ b/source3/include/nterr.h @@ -5,6 +5,7 @@ #define ERROR_INVALID_PARAMETER (87) #define ERROR_INSUFFICIENT_BUFFER (122) #define STATUS_1804 (1804) +#define STATUS_NOTIFY_ENUM_DIR (0x10C) /* these are the NT error codes less than 1000. They are here for when @@ -514,5 +515,4 @@ #define NT_STATUS_TOO_MANY_LINKS (0xC0000000 | 613) #define NT_STATUS_QUOTA_LIST_INCONSISTENT (0xC0000000 | 614) #define NT_STATUS_FILE_IS_OFFLINE (0xC0000000 | 615) -#define NT_STATUS_NOTIFY_ENUM_DIR (0xC0000000 | 0x10C) #define NT_STATUS_NO_SUCH_JOB (0xC0000000 | 0xEDE) /* scheduler */ diff --git a/source3/include/proto.h b/source3/include/proto.h index 4f5f3d42d3..eabacd4d21 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -183,6 +183,12 @@ void pidfile_create(char *name); char *rep_inet_ntoa(struct in_addr ip); +/*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 */ void BlockSignals(BOOL block,int signum); @@ -212,9 +218,6 @@ void standard_sub_vsnum(char *str, user_struct *vuser, int snum); /*The following definitions come from lib/system.c */ -int sys_select(int maxfd, fd_set *fds,struct timeval *tval); -int sys_select(int maxfd, fd_set *fds,struct timeval *tval); -int sys_select_intr(int maxfd, fd_set *fds,struct timeval *tval); int sys_usleep(long usecs); int sys_stat(const char *fname,SMB_STRUCT_STAT *sbuf); int sys_fstat(int fd,SMB_STRUCT_STAT *sbuf); @@ -3251,9 +3254,16 @@ BOOL disk_quotas(char *path,SMB_BIG_UINT *bsize,SMB_BIG_UINT *dfree,SMB_BIG_UINT void remove_pending_change_notify_requests_by_fid(files_struct *fsp); void remove_pending_change_notify_requests_by_mid(int mid); void remove_pending_change_notify_requests_by_filename(files_struct *fsp); -BOOL process_pending_change_notify_queue(time_t t); BOOL change_notifies_pending(void); +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); +#endif + +/*The following definitions come from smbd/notify_hash.c */ + +#if OLD_NTDOMAIN +struct cnotify_fns *hash_notify_init(void) ; #endif /*The following definitions come from smbd/nttrans.c */ @@ -3301,6 +3311,18 @@ BOOL attempt_close_oplocked_file(files_struct *fsp); BOOL init_oplocks(void); #endif +/*The following definitions come from smbd/oplock_irix.c */ + +#if OLD_NTDOMAIN +struct kernel_oplocks *irix_init_kernel_oplocks(void) ; +#endif + +/*The following definitions come from smbd/oplock_linux.c */ + +#if OLD_NTDOMAIN +struct kernel_oplocks *linux_init_kernel_oplocks(void) ; +#endif + /*The following definitions come from smbd/password.c */ #if OLD_NTDOMAIN diff --git a/source3/include/smb.h b/source3/include/smb.h index 68df3f250c..b64fa0bd02 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1636,6 +1636,16 @@ struct kernel_oplocks { #define CMD_REPLY 0x8000 +/* this structure defines the functions for doing change notify in + various implementations */ +struct cnotify_fns { + void * (*register_notify)(connection_struct *conn, char *path, uint32 flags); + BOOL (*check_notify)(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *data, time_t t); + void (*remove_notify)(void *data); +}; + + + #include "smb_macros.h" /* A netbios name structure. */ |