Changeset 1135 for trunk/xcache/xc_shm_mmap.c
- Timestamp:
- 2012-08-09T11:04:02+02:00 (10 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
xcache/xc_shm_mmap.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
trunk/xcache/xc_shm_mmap.c
r983 r1135 295 295 static XC_SHM_MEMINIT(xc_mmap_meminit) /* {{{ */ 296 296 { 297 xc_mem_t*mem;297 void *mem; 298 298 if (shm->memoffset + size > shm->size) { 299 299 zend_error(E_ERROR, "XCache: internal error at %s#%d", __FILE__, __LINE__); 300 300 return NULL; 301 301 } 302 mem = (xc_mem_t *)PTR_ADD(shm->ptr, shm->memoffset);302 mem = PTR_ADD(shm->ptr, shm->memoffset); 303 303 shm->memoffset += size; 304 mem->handlers = shm->handlers->memhandlers;305 mem->handlers->init(shm, mem, size);306 304 return mem; 307 305 } … … 315 313 void xc_shm_mmap_register() /* {{{ */ 316 314 { 317 CHECK(xc_shm_mmap_handlers.memhandlers = xc_mem_scheme_find("mem"), "cannot find mem handlers");318 315 if (xc_shm_scheme_register("mmap", &xc_shm_mmap_handlers) == 0) { 319 316 zend_error(E_ERROR, "XCache: failed to register mmap shm_scheme"); 320 317 } 321 err:322 318 return; 323 319 }
Note: See TracChangeset
for help on using the changeset viewer.

