mirror of
https://github.com/samba-team/samba.git
synced 2025-12-03 04:23:50 +03:00
This adds a pvfs_wait_message() routine which uses the new messaging system, event timers and talloc destructors to give a nice generic async event handling system with a easy to use interface. The extensions to pvfs_lock.c are based on calls to pvfs_wait_message() routines. We now pass all of our smbtorture locking tests, although while writing this code I have thought of some additonal tests that should be added, particularly for lock cancel operations. I'll work on that soon. This commit also extends the smbtorture lock tests to test the rather weird 0xEEFFFFFF locking semantics that I have discovered in win2003. Win2003 treats the 0xEEFFFFFF boundary as special, and will give different error codes on either side of it. Locks on both sides are allowed, the only difference is which error code is given when a lock is denied. Anyone like to hazard a guess as to why? It has me stumped.
32 lines
1006 B
C
32 lines
1006 B
C
/*
|
|
Unix SMB/CIFS implementation.
|
|
messages.c header
|
|
Copyright (C) Andrew Tridgell 2000
|
|
Copyright (C) 2001, 2002 by Martin Pool
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#ifndef _MESSAGES_H_
|
|
#define _MESSAGES_H_
|
|
|
|
/* general messages */
|
|
#define MSG_DEBUG 1
|
|
#define MSG_PING 2
|
|
#define MSG_PONG 3
|
|
#define MSG_BRL_RETRY 4
|
|
|
|
#endif
|