Changeset 1198 in svn


Ignore:
Timestamp:
2012-12-17T06:11:34Z (3 years ago)
Author:
Xuefer
Message:

ws fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache/xc_lock.c

    r1186 r1198  
    3939#   define LCK_NB 0
    4040static inline int dolock(xc_lock_t *lck, int type) /* {{{ */
    41 { 
     41{
    4242    int ret;
    4343    struct flock lock;
     
    7070#   define LCK_NB LOCKFILE_FAIL_IMMEDIATELY
    7171static inline int dolock(xc_lock_t *lck, int type) /* {{{ */
    72 { 
     72{
    7373    static OVERLAPPED offset = {0, 0, 0, 0, NULL};
    7474
     
    137137/* }}} */
    138138void xc_fcntl_destroy(xc_lock_t *lck) /* {{{ */
    139 {   
     139{
    140140    close(lck->fd);
    141141#ifdef __CYGWIN__
     
    147147/* }}} */
    148148void xc_fcntl_lock(xc_lock_t *lck) /* {{{ */
    149 {   
     149{
    150150    if (dolock(lck, LCK_WR) < 0) {
    151151        zend_error(E_ERROR, "xc_fcntl_lock failed errno:%d", errno);
     
    154154/* }}} */
    155155void xc_fcntl_rdlock(xc_lock_t *lck) /* {{{ */
    156 {   
     156{
    157157    if (dolock(lck, LCK_RD) < 0) {
    158158        zend_error(E_ERROR, "xc_fcntl_lock failed errno:%d", errno);
     
    161161/* }}} */
    162162void xc_fcntl_unlock(xc_lock_t *lck) /* {{{ */
    163 {   
     163{
    164164    if (dolock(lck, LCK_UN) < 0) {
    165165        zend_error(E_ERROR, "xc_fcntl_unlock failed errno:%d", errno);
Note: See TracChangeset for help on using the changeset viewer.