003 File Manager
Current Path:
/usr/local/lib/perl5/site_perl/mach/5.32/sys
usr
/
local
/
lib
/
perl5
/
site_perl
/
mach
/
5.32
/
sys
/
📁
..
📄
_atomic64e.ph
(1.7 KB)
📄
_atomic_subword.ph
(5.32 KB)
📄
_bitset.ph
(834 B)
📄
_blockcount.ph
(809 B)
📄
_bus_dma.ph
(324 B)
📄
_callout.ph
(199 B)
📄
_cpuset.ph
(487 B)
📄
_cscan_atomic.ph
(29.03 KB)
📄
_cscan_bus.ph
(13.04 KB)
📄
_domainset.ph
(547 B)
📄
_eventhandler.ph
(738 B)
📄
_ffcounter.ph
(180 B)
📄
_iovec.ph
(316 B)
📄
_lock.ph
(1.19 KB)
📄
_lockmgr.ph
(276 B)
📄
_mutex.ph
(200 B)
📄
_null.ph
(651 B)
📄
_pctrie.ph
(171 B)
📄
_pthreadtypes.ph
(317 B)
📄
_rangeset.ph
(204 B)
📄
_rmlock.ph
(485 B)
📄
_rwlock.ph
(203 B)
📄
_semaphore.ph
(285 B)
📄
_seqc.ph
(165 B)
📄
_sigset.ph
(858 B)
📄
_smr.ph
(908 B)
📄
_sockaddr_storage.ph
(665 B)
📄
_stack.ph
(230 B)
📄
_stdarg.ph
(1.09 KB)
📄
_stdint.ph
(1.62 KB)
📄
_sx.ph
(159 B)
📄
_task.ph
(578 B)
📄
_termios.ph
(7.26 KB)
📄
_timespec.ph
(325 B)
📄
_timeval.ph
(456 B)
📄
_types.ph
(944 B)
📄
_ucontext.ph
(177 B)
📄
_uio.ph
(548 B)
📄
_umtx.ph
(265 B)
📄
_unrhdr.ph
(193 B)
📄
_winsize.ph
(174 B)
📄
aac_ioctl.ph
(7.36 KB)
📄
abi_compat.ph
(1.81 KB)
📄
acct.ph
(859 B)
📄
acl.ph
(6.91 KB)
📄
agpio.ph
(5.3 KB)
📄
aio.ph
(2.17 KB)
📄
alq.ph
(648 B)
📄
apm.ph
(87 B)
📄
arb.ph
(35.53 KB)
📄
assym.ph
(1.5 KB)
📄
ata.ph
(50.51 KB)
📄
atomic_common.ph
(3.28 KB)
📄
auxv.ph
(220 B)
📄
backlight.ph
(903 B)
📄
bio.ph
(2.23 KB)
📄
bitset.ph
(9.24 KB)
📄
bitstring.ph
(1.61 KB)
📄
blist.ph
(552 B)
📄
blockcount.ph
(1.6 KB)
📄
boot.ph
(247 B)
📄
buf.ph
(11.05 KB)
📄
buf_ring.ph
(1.55 KB)
📄
bufobj.ph
(2.18 KB)
📄
bus.ph
(24.54 KB)
📄
bus_dma.ph
(4.55 KB)
📄
bus_dma_internal.ph
(186 B)
📄
busdma_bufalloc.ph
(262 B)
📄
callout.ph
(5.06 KB)
📄
caprights.ph
(534 B)
📄
capsicum.ph
(12.44 KB)
📄
cdefs.ph
(33.03 KB)
📄
cdio.ph
(5.68 KB)
📄
cdrio.ph
(3.6 KB)
📄
cfictl.ph
(741 B)
📄
chio.ph
(6.57 KB)
📄
ck.ph
(503 B)
📄
clock.ph
(990 B)
📄
cnv.ph
(540 B)
📄
compressor.ph
(349 B)
📄
condvar.ph
(1.85 KB)
📄
conf.ph
(4.53 KB)
📄
cons.ph
(1.59 KB)
📄
consio.ph
(17.3 KB)
📄
copyright.ph
(608 B)
📄
counter.ph
(1.61 KB)
📄
coverage.ph
(745 B)
📄
cpu.ph
(2.36 KB)
📄
cpuctl.ph
(1.04 KB)
📄
cpuset.ph
(4.91 KB)
📄
csan.ph
(349 B)
📄
ctf.ph
(8.35 KB)
📄
ctf_api.ph
(1.04 KB)
📄
ctype.ph
(1.51 KB)
📄
devctl.ph
(168 B)
📄
devicestat.ph
(4.25 KB)
📄
devmap.ph
(352 B)
📄
dirent.ph
(1.88 KB)
📄
disk.ph
(2.75 KB)
📄
disk_zone.ph
(4.48 KB)
📄
disklabel.ph
(1.75 KB)
📄
diskmbr.ph
(329 B)
📄
dkstat.ph
(199 B)
📄
dnv.ph
(427 B)
📄
domain.ph
(1.16 KB)
📄
domainset.ph
(5.58 KB)
📄
dtrace.ph
(52.95 KB)
📄
dtrace_bsd.ph
(177 B)
📄
dvdio.ph
(2.61 KB)
📄
efi.ph
(3.33 KB)
📄
efiio.ph
(821 B)
📄
elf.ph
(273 B)
📄
elf32.ph
(1.41 KB)
📄
elf64.ph
(1.91 KB)
📄
elf_common.ph
(85.24 KB)
📄
elf_generic.ph
(2.06 KB)
📄
endian.ph
(5.87 KB)
📄
epoch.ph
(2.43 KB)
📄
errno.ph
(6.93 KB)
📄
eui64.ph
(323 B)
📄
event.ph
(7.54 KB)
📄
eventfd.ph
(458 B)
📄
eventhandler.ph
(4.88 KB)
📄
eventvar.ph
(858 B)
📄
exec.ph
(1.19 KB)
📄
extattr.ph
(1.12 KB)
📄
fail.ph
(5.77 KB)
📄
fbio.ph
(17.58 KB)
📄
fcntl.ph
(9.1 KB)
📄
fdcio.ph
(5.37 KB)
📄
file.ph
(6.54 KB)
📄
filedesc.ph
(6.85 KB)
📄
filio.ph
(1.99 KB)
📄
firmware.ph
(332 B)
📄
fnv_hash.ph
(1.52 KB)
📄
font.ph
(930 B)
📄
gmon.ph
(2.57 KB)
📄
gpio.ph
(3.4 KB)
📄
gpt.ph
(300 B)
📄
gsb_crc32.ph
(744 B)
📄
gtaskqueue.ph
(1.85 KB)
📄
hash.ph
(440 B)
📄
hhook.ph
(1.42 KB)
📄
iconv.ph
(4.33 KB)
📄
imgact.ph
(476 B)
📄
imgact_aout.ph
(4.63 KB)
📄
imgact_binmisc.ph
(1.75 KB)
📄
imgact_elf.ph
(1.45 KB)
📄
interrupt.ph
(1.45 KB)
📄
intr.ph
(1.61 KB)
📄
ioccom.ph
(2.62 KB)
📄
ioctl.ph
(387 B)
📄
ioctl_compat.ph
(5.35 KB)
📄
iov.ph
(1.34 KB)
📄
iov_schema.ph
(358 B)
📄
ipc.ph
(2.21 KB)
📄
ipmi.ph
(6.15 KB)
📄
jail.ph
(7.65 KB)
📄
joystick.ph
(819 B)
📄
kbio.ph
(8.69 KB)
📄
kcov.ph
(1.19 KB)
📄
kdb.ph
(2.3 KB)
📄
kenv.ph
(578 B)
📄
kern_prefetch.ph
(385 B)
📄
kernel.ph
(13.29 KB)
📄
kerneldump.ph
(3.28 KB)
📄
khelp.ph
(325 B)
📄
kobj.ph
(3.16 KB)
📄
kpilite.ph
(860 B)
📄
ksem.ph
(432 B)
📄
kthread.ph
(199 B)
📄
ktls.ph
(1.67 KB)
📄
ktr.ph
(12.26 KB)
📄
ktr_class.ph
(2.53 KB)
📄
ktrace.ph
(4.95 KB)
📄
libkern.ph
(3.61 KB)
📄
limits.ph
(2.99 KB)
📄
link_aout.ph
(4.54 KB)
📄
link_elf.ph
(971 B)
📄
linker.ph
(3.66 KB)
📄
linker_set.ph
(2.81 KB)
📄
lock.ph
(10.56 KB)
📄
lock_profile.ph
(1.31 KB)
📄
lockf.ph
(307 B)
📄
lockmgr.ph
(6.64 KB)
📄
lockstat.ph
(4.38 KB)
📄
loginclass.ph
(180 B)
📄
mac.ph
(740 B)
📄
malloc.ph
(3.64 KB)
📄
mbuf.ph
(33.44 KB)
📄
mchain.ph
(494 B)
📄
md4.ph
(213 B)
📄
md5.ph
(497 B)
📄
mdioctl.ph
(1.7 KB)
📄
memdesc.ph
(2.53 KB)
📄
memrange.ph
(1.99 KB)
📄
mman.ph
(9.09 KB)
📄
module.ph
(4.84 KB)
📄
module_khelp.ph
(1.18 KB)
📄
mount.ph
(22.18 KB)
📄
mouse.ph
(15.1 KB)
📄
mpt_ioctl.ph
(1.95 KB)
📄
mqueue.ph
(202 B)
📄
msg.ph
(1.24 KB)
📄
msgbuf.ph
(993 B)
📄
mtio.ph
(8.56 KB)
📄
mutex.ph
(17.47 KB)
📄
namei.ph
(7.81 KB)
📄
nlist_aout.ph
(1.88 KB)
📄
nv.ph
(2.02 KB)
📄
nvpair.ph
(4.36 KB)
📄
osd.ph
(3.22 KB)
📄
param.ph
(9.24 KB)
📄
pciio.ph
(2.92 KB)
📄
pcpu.ph
(6.97 KB)
📄
pctrie.ph
(2.74 KB)
📄
physmem.ph
(886 B)
📄
pidctrl.ph
(435 B)
📄
pipe.ph
(2.25 KB)
📄
pmc.ph
(22.72 KB)
📄
pmckern.ph
(6.13 KB)
📄
pmclog.ph
(3.2 KB)
📄
poll.ph
(1.58 KB)
📄
posix4.ph
(1.2 KB)
📄
power.ph
(986 B)
📄
priority.ph
(3.44 KB)
📄
priv.ph
(19.61 KB)
📄
prng.ph
(328 B)
📄
proc.ph
(30.83 KB)
📄
procctl.ph
(4.3 KB)
📄
procdesc.ph
(1.48 KB)
📄
procfs.ph
(535 B)
📄
protosw.ph
(4.83 KB)
📄
ptio.ph
(395 B)
📄
ptrace.ph
(4.63 KB)
📄
qmath.ph
(19.54 KB)
📄
queue.ph
(30.6 KB)
📄
racct.ph
(6.48 KB)
📄
random.ph
(4.47 KB)
📄
rangelock.ph
(1.45 KB)
📄
rangeset.ph
(234 B)
📄
rctl.ph
(4.19 KB)
📄
reboot.ph
(1.86 KB)
📄
refcount.ph
(4.03 KB)
📄
regression.ph
(218 B)
📄
resource.ph
(3.04 KB)
📄
resourcevar.ph
(1.14 KB)
📄
rman.ph
(1.89 KB)
📄
rmlock.ph
(4.18 KB)
📄
rtprio.ph
(1.44 KB)
📄
runq.ph
(296 B)
📄
rwlock.ph
(10.78 KB)
📄
sbuf.ph
(1.55 KB)
📄
sched.ph
(3.04 KB)
📄
sdt.ph
(21.91 KB)
📄
select.ph
(2.28 KB)
📄
selinfo.ph
(371 B)
📄
sem.ph
(1.97 KB)
📄
sema.ph
(919 B)
📄
seqc.ph
(2.19 KB)
📄
serial.ph
(2.12 KB)
📄
sf_buf.ph
(2.32 KB)
📄
sglist.ph
(715 B)
📄
shm.ph
(1.8 KB)
📄
sigio.ph
(323 B)
📄
signal.ph
(12.78 KB)
📄
signalvar.ph
(9.63 KB)
📄
sleepqueue.ph
(975 B)
📄
slicer.ph
(1000 B)
📄
smp.ph
(3.05 KB)
📄
smr.ph
(1.49 KB)
📄
smr_types.ph
(2.14 KB)
📄
snoop.ph
(625 B)
📄
sockbuf.ph
(4.14 KB)
📄
socket.ph
(20.01 KB)
📄
socketvar.ph
(7.29 KB)
📄
sockio.ph
(8.23 KB)
📄
sockopt.ph
(375 B)
📄
soundcard.ph
(66.67 KB)
📄
specialfd.ph
(257 B)
📄
spigenio.ph
(1.06 KB)
📄
stack.ph
(845 B)
📄
stat.ph
(9.2 KB)
📄
stats.ph
(30.3 KB)
📄
statvfs.ph
(485 B)
📄
stdatomic.ph
(15.26 KB)
📄
stddef.ph
(518 B)
📄
stdint.ph
(915 B)
📄
sx.ph
(10.75 KB)
📄
syscall.ph
(28.09 KB)
📄
syscallsubr.ph
(521 B)
📄
sysctl.ph
(46.96 KB)
📄
sysent.ph
(6.09 KB)
📄
syslimits.ph
(1.32 KB)
📄
syslog.ph
(4.03 KB)
📄
sysproto.ph
(43.73 KB)
📄
systm.ph
(12.58 KB)
📄
taskqueue.ph
(3.65 KB)
📄
terminal.ph
(5.68 KB)
📄
termios.ph
(223 B)
📄
thr.ph
(691 B)
📄
tiio.ph
(4.04 KB)
📄
tim_filter.ph
(540 B)
📄
time.ph
(12.88 KB)
📄
timeb.ph
(488 B)
📄
timeet.ph
(996 B)
📄
timeffc.ph
(3.86 KB)
📄
timepps.ph
(5.73 KB)
📄
timers.ph
(1.15 KB)
📄
times.ph
(379 B)
📄
timespec.ph
(735 B)
📄
timetc.ph
(444 B)
📄
timex.ph
(3.16 KB)
📄
tree.ph
(29.45 KB)
📄
tslog.ph
(2.24 KB)
📄
tty.ph
(3.84 KB)
📄
ttycom.ph
(5.65 KB)
📄
ttydefaults.ph
(2.62 KB)
📄
ttydevsw.ph
(2.84 KB)
📄
ttydisc.ph
(1.02 KB)
📄
ttyhook.ph
(2.25 KB)
📄
ttyqueue.ph
(2.15 KB)
📄
turnstile.ph
(357 B)
📄
types.ph
(7.97 KB)
📄
ucontext.ph
(695 B)
📄
ucred.ph
(1.19 KB)
📄
uio.ph
(681 B)
📄
umtx.ph
(6.12 KB)
📄
un.ph
(1.07 KB)
📄
unistd.ph
(7.59 KB)
📄
unpcb.ph
(1.19 KB)
📄
user.ph
(8.58 KB)
📄
utsname.ph
(553 B)
📄
uuid.ph
(543 B)
📄
vdso.ph
(1.28 KB)
📄
vmem.ph
(643 B)
📄
vmmeter.ph
(2.21 KB)
📄
vnode.ph
(24.18 KB)
📄
vtoc.ph
(88 B)
📄
wait.ph
(4.11 KB)
📄
watchdog.ph
(2.72 KB)
Editing: param.ph
require '_h2ph_pre.ph'; no warnings qw(redefine misc); unless(defined(&_SYS_PARAM_H_)) { eval 'sub _SYS_PARAM_H_ () {1;}' unless defined(&_SYS_PARAM_H_); require 'sys/_null.ph'; eval 'sub BSD () {199506;}' unless defined(&BSD); eval 'sub BSD4_3 () {1;}' unless defined(&BSD4_3); eval 'sub BSD4_4 () {1;}' unless defined(&BSD4_4); undef(&__FreeBSD_version) if defined(&__FreeBSD_version); eval 'sub __FreeBSD_version () {1300139;}' unless defined(&__FreeBSD_version); undef(&__FreeBSD_kernel__) if defined(&__FreeBSD_kernel__); eval 'sub __FreeBSD_kernel__ () {1;}' unless defined(&__FreeBSD_kernel__); if(defined(&_KERNEL) || defined(&IN_RTLD)) { eval 'sub P_OSREL_SIGWAIT () {700000;}' unless defined(&P_OSREL_SIGWAIT); eval 'sub P_OSREL_SIGSEGV () {700004;}' unless defined(&P_OSREL_SIGSEGV); eval 'sub P_OSREL_MAP_ANON () {800104;}' unless defined(&P_OSREL_MAP_ANON); eval 'sub P_OSREL_MAP_FSTRICT () {1100036;}' unless defined(&P_OSREL_MAP_FSTRICT); eval 'sub P_OSREL_SHUTDOWN_ENOTCONN () {1100077;}' unless defined(&P_OSREL_SHUTDOWN_ENOTCONN); eval 'sub P_OSREL_MAP_GUARD () {1200035;}' unless defined(&P_OSREL_MAP_GUARD); eval 'sub P_OSREL_WRFSBASE () {1200041;}' unless defined(&P_OSREL_WRFSBASE); eval 'sub P_OSREL_CK_CYLGRP () {1200046;}' unless defined(&P_OSREL_CK_CYLGRP); eval 'sub P_OSREL_VMTOTAL64 () {1200054;}' unless defined(&P_OSREL_VMTOTAL64); eval 'sub P_OSREL_CK_SUPERBLOCK () {1300000;}' unless defined(&P_OSREL_CK_SUPERBLOCK); eval 'sub P_OSREL_CK_INODE () {1300005;}' unless defined(&P_OSREL_CK_INODE); eval 'sub P_OSREL_POWERPC_NEW_AUX_ARGS () {1300070;}' unless defined(&P_OSREL_POWERPC_NEW_AUX_ARGS); eval 'sub P_OSREL_MAJOR { my($x) = @_; eval q((($x) / 100000)); }' unless defined(&P_OSREL_MAJOR); } unless(defined(&LOCORE)) { require 'sys/types.ph'; } require 'sys/syslimits.ph'; eval 'sub MAXCOMLEN () {19;}' unless defined(&MAXCOMLEN); eval 'sub MAXINTERP () { &PATH_MAX;}' unless defined(&MAXINTERP); eval 'sub MAXLOGNAME () {33;}' unless defined(&MAXLOGNAME); eval 'sub MAXUPRC () { &CHILD_MAX;}' unless defined(&MAXUPRC); eval 'sub NCARGS () { &ARG_MAX;}' unless defined(&NCARGS); eval 'sub NGROUPS () {( &NGROUPS_MAX+1);}' unless defined(&NGROUPS); eval 'sub NOFILE () { &OPEN_MAX;}' unless defined(&NOFILE); eval 'sub NOGROUP () {65535;}' unless defined(&NOGROUP); eval 'sub MAXHOSTNAMELEN () {256;}' unless defined(&MAXHOSTNAMELEN); eval 'sub SPECNAMELEN () {255;}' unless defined(&SPECNAMELEN); if(defined(&_KERNEL)) { require 'sys/cdefs.ph'; require 'sys/errno.ph'; unless(defined(&LOCORE)) { require 'sys/time.ph'; require 'sys/priority.ph'; } unless(defined(&FALSE)) { eval 'sub FALSE () {0;}' unless defined(&FALSE); } unless(defined(&TRUE)) { eval 'sub TRUE () {1;}' unless defined(&TRUE); } } unless(defined(&_KERNEL)) { unless(defined(&LOCORE)) { require 'sys/signal.ph'; } } require 'machine/param.ph'; unless(defined(&_KERNEL)) { require 'sys/limits.ph'; } unless(defined(&DEV_BSHIFT)) { eval 'sub DEV_BSHIFT () {9;}' unless defined(&DEV_BSHIFT); } eval 'sub DEV_BSIZE () {(1<< &DEV_BSHIFT);}' unless defined(&DEV_BSIZE); unless(defined(&BLKDEV_IOSIZE)) { eval 'sub BLKDEV_IOSIZE () { &PAGE_SIZE;}' unless defined(&BLKDEV_IOSIZE); } unless(defined(&DFLTPHYS)) { eval 'sub DFLTPHYS () {(64* 1024);}' unless defined(&DFLTPHYS); } unless(defined(&MAXPHYS)) { if(defined(&__ILP32__)) { eval 'sub MAXPHYS () {(128* 1024);}' unless defined(&MAXPHYS); } else { eval 'sub MAXPHYS () {(1024* 1024);}' unless defined(&MAXPHYS); } } unless(defined(&MAXDUMPPGS)) { eval 'sub MAXDUMPPGS () {( &DFLTPHYS/ &PAGE_SIZE);}' unless defined(&MAXDUMPPGS); } unless(defined(&MSIZE)) { eval 'sub MSIZE () {256;}' unless defined(&MSIZE); } unless(defined(&MCLSHIFT)) { eval 'sub MCLSHIFT () {11;}' unless defined(&MCLSHIFT); } eval 'sub MCLBYTES () {(1<< &MCLSHIFT);}' unless defined(&MCLBYTES); if((defined(&PAGE_SIZE) ? &PAGE_SIZE : undef) < 2048) { eval 'sub MJUMPAGESIZE () { &MCLBYTES;}' unless defined(&MJUMPAGESIZE); } elsif((defined(&PAGE_SIZE) ? &PAGE_SIZE : undef) <= 8192) { eval 'sub MJUMPAGESIZE () { &PAGE_SIZE;}' unless defined(&MJUMPAGESIZE); } else { eval 'sub MJUMPAGESIZE () {(8* 1024);}' unless defined(&MJUMPAGESIZE); } eval 'sub MJUM9BYTES () {(9* 1024);}' unless defined(&MJUM9BYTES); eval 'sub MJUM16BYTES () {(16* 1024);}' unless defined(&MJUM16BYTES); unless(defined(&ctob)) { eval 'sub ctob { my($x) = @_; eval q((($x)<< &PAGE_SHIFT)); }' unless defined(&ctob); } unless(defined(&btoc)) { eval 'sub btoc { my($x) = @_; eval q(((( &vm_offset_t)($x)+ &PAGE_MASK)>> &PAGE_SHIFT)); }' unless defined(&btoc); } unless(defined(&btodb)) { eval 'sub btodb { my($bytes) = @_; eval q(($sizeof{$bytes} > $sizeof{\'long\'} ? ( &daddr_t)(($bytes) >> &DEV_BSHIFT) : ( &daddr_t)(($bytes) >> &DEV_BSHIFT))); }' unless defined(&btodb); } unless(defined(&dbtob)) { eval 'sub dbtob { my($db) = @_; eval q((( &off_t)($db) << &DEV_BSHIFT)); }' unless defined(&dbtob); } eval 'sub PRIMASK () {0xff;}' unless defined(&PRIMASK); eval 'sub PCATCH () {0x100;}' unless defined(&PCATCH); eval 'sub PDROP () {0x200;}' unless defined(&PDROP); eval 'sub NZERO () {0;}' unless defined(&NZERO); eval 'sub NBBY () {8;}' unless defined(&NBBY); eval 'sub NBPW () {$sizeof{\'int\'};}' unless defined(&NBPW); eval 'sub CMASK () {022;}' unless defined(&CMASK); eval 'sub NODEV () {( &dev_t)(-1);}' unless defined(&NODEV); eval 'sub MAXBSIZE () {65536;}' unless defined(&MAXBSIZE); unless(defined(&MAXBCACHEBUF)) { eval 'sub MAXBCACHEBUF () { &MAXBSIZE;}' unless defined(&MAXBCACHEBUF); } unless(defined(&BKVASIZE)) { eval 'sub BKVASIZE () {16384;}' unless defined(&BKVASIZE); } eval 'sub BKVAMASK () {( &BKVASIZE-1);}' unless defined(&BKVAMASK); eval 'sub MAXPATHLEN () { &PATH_MAX;}' unless defined(&MAXPATHLEN); eval 'sub MAXSYMLINKS () {32;}' unless defined(&MAXSYMLINKS); eval 'sub setbit { my($a,$i) = @_; eval q(((($a))[($i)/ &NBBY] |= 1<<(($i)% &NBBY))); }' unless defined(&setbit); eval 'sub clrbit { my($a,$i) = @_; eval q(((($a))[($i)/ &NBBY] &= ~(1<<(($i)% &NBBY)))); }' unless defined(&clrbit); eval 'sub isset { my($a,$i) = @_; eval q(((( &const \'unsigned char\' *)($a))[($i)/ &NBBY] & (1<<(($i)% &NBBY)))); }' unless defined(&isset); eval 'sub isclr { my($a,$i) = @_; eval q((((( &const \'unsigned char\' *)($a))[($i)/ &NBBY] & (1<<(($i)% &NBBY))) == 0)); }' unless defined(&isclr); unless(defined(&howmany)) { eval 'sub howmany { my($x, $y) = @_; eval q(((($x)+(($y)-1))/($y))); }' unless defined(&howmany); } eval 'sub nitems { my($x) = @_; eval q(($sizeof{($x)} / $sizeof{($x)[0]})); }' unless defined(&nitems); eval 'sub rounddown { my($x, $y) = @_; eval q(((($x)/($y))*($y))); }' unless defined(&rounddown); eval 'sub rounddown2 { my($x, $y) = @_; eval q((($x)(~(($y)-1)))); }' unless defined(&rounddown2); eval 'sub roundup { my($x, $y) = @_; eval q((((($x)+(($y)-1))/($y))*($y))); }' unless defined(&roundup); eval 'sub roundup2 { my($x, $y) = @_; eval q(((($x)+(($y)-1))(~(($y)-1)))); }' unless defined(&roundup2); eval 'sub powerof2 { my($x) = @_; eval q((((($x)-1)($x))==0)); }' unless defined(&powerof2); eval 'sub MIN { my($a,$b) = @_; eval q(((($a)<($b))?($a):($b))); }' unless defined(&MIN); eval 'sub MAX { my($a,$b) = @_; eval q(((($a)>($b))?($a):($b))); }' unless defined(&MAX); if(defined(&_KERNEL)) { unless(defined(&LOCORE)) { unless(defined(&_BYTEORDER_PROTOTYPED)) { eval 'sub _BYTEORDER_PROTOTYPED () {1;}' unless defined(&_BYTEORDER_PROTOTYPED); } } unless(defined(&_BYTEORDER_FUNC_DEFINED)) { eval 'sub _BYTEORDER_FUNC_DEFINED () {1;}' unless defined(&_BYTEORDER_FUNC_DEFINED); eval 'sub htonl { my($x) = @_; eval q( &__htonl($x)); }' unless defined(&htonl); eval 'sub htons { my($x) = @_; eval q( &__htons($x)); }' unless defined(&htons); eval 'sub ntohl { my($x) = @_; eval q( &__ntohl($x)); }' unless defined(&ntohl); eval 'sub ntohs { my($x) = @_; eval q( &__ntohs($x)); }' unless defined(&ntohs); } } eval 'sub FSHIFT () {11;}' unless defined(&FSHIFT); eval 'sub FSCALE () {(1<< &FSHIFT);}' unless defined(&FSCALE); eval 'sub dbtoc { my($db) = @_; eval q((($db + ( &ctodb(1) - 1)) >> ( &PAGE_SHIFT - &DEV_BSHIFT))); }' unless defined(&dbtoc); eval 'sub ctodb { my($db) = @_; eval q((($db) << ( &PAGE_SHIFT - &DEV_BSHIFT))); }' unless defined(&ctodb); eval 'sub member2struct { my($s, $m, $x) = @_; eval q((( &void *)(($x) - &offsetof(\'struct s\', $m)))); }' unless defined(&member2struct); eval 'sub __PAST_END { my($array, $offset) = @_; eval q(((( &__typeof__(*($array)) *)($array))[$offset])); }' unless defined(&__PAST_END); } 1;
Upload File
Create Folder