r3507: - added deferred replies on sharing violation in pvfs open. The
authorAndrew Tridgell <tridge@samba.org>
Wed, 3 Nov 2004 10:09:48 +0000 (10:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:23 +0000 (13:05 -0500)
commit0d51511d408d91eb5f68a35e980e0875299b1831
tree1465f356ff534d3ee5fd1185df505af64733e263
parent354068aae16b7e0c13416cfcdf9bdef5138dccc0
r3507: - added deferred replies on sharing violation in pvfs open. The
  deferred reply is short-circuited immediately when the file is
  closed by another user, allowing it to be opened by the waiting user.

- added a sane set of timeval manipulation routines

- converted all the events code and code that uses it to use struct
  timeval instead of time_t, which allows for microsecond resolution
  instead of 1 second resolution. This was needed for doing the pvfs
  deferred open code, and is why the patch is so big.
36 files changed:
source/include/events.h
source/include/messages.h
source/ldap_server/ldap_server.c
source/lib/basic.mk
source/lib/events.c
source/lib/messaging/messaging.c
source/lib/time.c
source/lib/unix_privs.c [new file with mode: 0644]
source/libcli/raw/clitransport.c
source/libcli/raw/libcliraw.h
source/librpc/rpc/dcerpc_sock.c
source/ntvfs/cifs/vfs_cifs.c
source/ntvfs/common/brlock.c
source/ntvfs/common/opendb.c
source/ntvfs/posix/pvfs_lock.c
source/ntvfs/posix/pvfs_open.c
source/ntvfs/posix/pvfs_wait.c
source/ntvfs/posix/vfs_posix.h
source/rpc_server/dcerpc_server.c
source/rpc_server/dcerpc_sock.c
source/smb_server/smb_server.c
source/smbd/process_model.h
source/smbd/process_single.c
source/smbd/process_standard.c
source/smbd/service.c
source/smbd/service.h
source/torture/basic/dir.c
source/torture/gentest.c
source/torture/local/messaging.c
source/torture/local/talloc.c
source/torture/nbench/nbench.c
source/torture/nbench/nbio.c
source/torture/raw/mux.c
source/torture/raw/open.c
source/torture/torture.c
source/torture/torture_util.c