|
cvs: pecl /apc apc_fcntl_win32.c: msg#00263php.pecl.cvs
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> |
|---|---|---|
| Previous by Date: | cvs: pecl /apc apc_sma.c: 00263, Frank M. Kromann |
|---|---|
| Next by Date: | cvs: pecl /apc INSTALL apc_cache.c apc_globals.h php_apc.c: 00263, Rasmus Lerdorf |
| Previous by Thread: | cvs: pecl /apc apc_fcntl_win32.ci: 00263, Edin Kadribasic |
| Next by Thread: | cvs: pecl /sdo php_sdo_int.h: 00263, Anantoju Veera Srinivas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |