Changeset e140327 in git for xcache/xc_lock.c


Ignore:
Timestamp:
2012-12-17T06:11:34Z (7 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
beeb22d
Parents:
df286b7
Message:

ws fix

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1198 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache/xc_lock.c

    re8600bb8 re140327  
    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.