logo       

cvs: pecl /apc apc_fcntl_win32.c: msg#00263

php.pecl.cvs

Subject: cvs: pecl /apc apc_fcntl_win32.c

fmk Fri Jul 29 16:48:59 2005 EDT

Modified files:
/pecl/apc apc_fcntl_win32.c
Log:
add missing rdlock function for win32

http://cvs.php.net/diff.php/pecl/apc/apc_fcntl_win32.c?r1=3.2&r2=3.3&ty=u
Index: pecl/apc/apc_fcntl_win32.c
diff -u pecl/apc/apc_fcntl_win32.c:3.2 pecl/apc/apc_fcntl_win32.c:3.3
--- pecl/apc/apc_fcntl_win32.c:3.2 Mon Jul 18 12:10:19 2005
+++ pecl/apc/apc_fcntl_win32.c Fri Jul 29 16:48:59 2005
@@ -25,7 +25,7 @@

*/

-/* $Id: apc_fcntl_win32.c,v 3.2 2005/07/18 16:10:19 edink Exp $ */
+/* $Id: apc_fcntl_win32.c,v 3.3 2005/07/29 20:48:59 fmk Exp $ */

#include "apc_fcntl.h"
#include "apc.h"
@@ -77,6 +77,15 @@
}
}

+void apc_fcntl_rdlock(int fd)
+{
+ OVERLAPPED offset = {0, 0, 0, 0, NULL};
+
+ if (!LockFileEx((HANDLE)fd, 0, 0, 1, 0, &offset)) {
+ apc_eprint("apc_fcntl_rdlock failed errno:%d", GetLastError());
+ }
+}
+
void apc_fcntl_unlock(int fd)
{
OVERLAPPED offset = {0, 0, 0, 0, NULL};



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise