Current Path : /usr/local/lib/perl5/site_perl/5.8.9/mach/sys/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/perl5/site_perl/5.8.9/mach/sys/rmlock.ph |
require '_h2ph_pre.ph'; no warnings 'redefine'; unless(defined(&_SYS_RMLOCK_H_)) { eval 'sub _SYS_RMLOCK_H_ () {1;}' unless defined(&_SYS_RMLOCK_H_); require 'sys/mutex.ph'; require 'sys/sx.ph'; require 'sys/_lock.ph'; require 'sys/_rmlock.ph'; if(defined(&_KERNEL)) { eval 'sub RM_NOWITNESS () {0x1;}' unless defined(&RM_NOWITNESS); eval 'sub RM_RECURSE () {0x2;}' unless defined(&RM_RECURSE); eval 'sub RM_SLEEPABLE () {0x4;}' unless defined(&RM_SLEEPABLE); unless(defined(&LOCK_DEBUG)) { die("LOCK_DEBUG\ not\ defined\,\ include\ \<sys\/lock\.h\>\ before\ \<sys\/rmlock\.h\>"); } if((defined(&LOCK_DEBUG) ? &LOCK_DEBUG : undef) > 0) { eval 'sub rm_wlock { my($rm) = @_; eval q( &_rm_wlock_debug(($rm), &LOCK_FILE, &LOCK_LINE)); }' unless defined(&rm_wlock); eval 'sub rm_wunlock { my($rm) = @_; eval q( &_rm_wunlock_debug(($rm), &LOCK_FILE, &LOCK_LINE)); }' unless defined(&rm_wunlock); eval 'sub rm_rlock { my($rm,$tracker) = @_; eval q((( &void) &_rm_rlock_debug(($rm),($tracker), 0, &LOCK_FILE, &LOCK_LINE ))); }' unless defined(&rm_rlock); eval 'sub rm_try_rlock { my($rm,$tracker) = @_; eval q( &_rm_rlock_debug(($rm),($tracker), 1, &LOCK_FILE, &LOCK_LINE )); }' unless defined(&rm_try_rlock); eval 'sub rm_runlock { my($rm,$tracker) = @_; eval q( &_rm_runlock_debug(($rm), ($tracker), &LOCK_FILE, &LOCK_LINE )); }' unless defined(&rm_runlock); } else { eval 'sub rm_wlock { my($rm) = @_; eval q( &_rm_wlock(($rm))); }' unless defined(&rm_wlock); eval 'sub rm_wunlock { my($rm) = @_; eval q( &_rm_wunlock(($rm))); }' unless defined(&rm_wunlock); eval 'sub rm_rlock { my($rm,$tracker) = @_; eval q((( &void) &_rm_rlock(($rm),($tracker), 0))); }' unless defined(&rm_rlock); eval 'sub rm_try_rlock { my($rm,$tracker) = @_; eval q( &_rm_rlock(($rm),($tracker), 1)); }' unless defined(&rm_try_rlock); eval 'sub rm_runlock { my($rm,$tracker) = @_; eval q( &_rm_runlock(($rm), ($tracker))); }' unless defined(&rm_runlock); } eval 'sub RM_SYSINIT { my($name, $rm, $desc) = @_; eval q( &static \'struct rm_args\' $name &_args = { ($rm), ($desc), }; &SYSINIT($name &_rm_sysinit, &SI_SUB_LOCK, &SI_ORDER_MIDDLE, &rm_sysinit, $name &_args); &SYSUNINIT($name &_rm_sysuninit, &SI_SUB_LOCK, &SI_ORDER_MIDDLE, &rm_destroy, ($rm))); }' unless defined(&RM_SYSINIT); eval 'sub RM_SYSINIT_FLAGS { my($name, $rm, $desc, $opts) = @_; eval q( &static \'struct rm_args\' $name &_args = { ($rm), ($desc), ($opts), }; &SYSINIT($name &_rm_sysinit, &SI_SUB_LOCK, &SI_ORDER_MIDDLE, &rm_sysinit_flags, $name &_args); &SYSUNINIT($name &_rm_sysuninit, &SI_SUB_LOCK, &SI_ORDER_MIDDLE, &rm_destroy, ($rm))); }' unless defined(&RM_SYSINIT_FLAGS); } } 1;