perl_mlb
view release on metacpan or search on metacpan
os2/POSIX.pm view on Meta::CPAN
sub fcntl {
usage "fcntl(filehandle, cmd, arg)" if @_ != 3;
CORE::fcntl($_[0], $_[1], $_[2]);
}
sub getgrgid {
usage "getgrgid(gid)" if @_ != 1;
CORE::getgrgid($_[0]);
}
sub getgrnam {
usage "getgrnam(name)" if @_ != 1;
CORE::getgrnam($_[0]);
}
sub atan2 {
usage "atan2(x,y)" if @_ != 2;
CORE::atan2($_[0], $_[1]);
}
sub cos {
usage "cos(x)" if @_ != 1;
CORE::cos($_[0]);
}
sub exp {
usage "exp(x)" if @_ != 1;
CORE::exp($_[0]);
}
sub fabs {
usage "fabs(x)" if @_ != 1;
CORE::abs($_[0]);
}
sub log {
usage "log(x)" if @_ != 1;
CORE::log($_[0]);
}
sub pow {
usage "pow(x,exponent)" if @_ != 2;
$_[0] ** $_[1];
}
sub sin {
usage "sin(x)" if @_ != 1;
CORE::sin($_[0]);
}
sub sqrt {
usage "sqrt(x)" if @_ != 1;
CORE::sqrt($_[0]);
}
sub getpwnam {
usage "getpwnam(name)" if @_ != 1;
CORE::getpwnam($_[0]);
}
sub getpwuid {
usage "getpwuid(uid)" if @_ != 1;
CORE::getpwuid($_[0]);
}
sub longjmp {
unimpl "longjmp() is C-specific: use die instead";
}
sub setjmp {
unimpl "setjmp() is C-specific: use eval {} instead";
}
sub siglongjmp {
unimpl "siglongjmp() is C-specific: use die instead";
}
sub sigsetjmp {
unimpl "sigsetjmp() is C-specific: use eval {} instead";
}
sub kill {
usage "kill(pid, sig)" if @_ != 2;
CORE::kill $_[1], $_[0];
}
sub raise {
usage "raise(sig)" if @_ != 1;
CORE::kill $_[0], $$; # Is this good enough?
}
sub offsetof {
unimpl "offsetof() is C-specific, stopped";
}
sub clearerr {
redef "IO::Handle::clearerr()";
}
sub fclose {
redef "IO::Handle::close()";
}
sub fdopen {
redef "IO::Handle::new_from_fd()";
}
sub feof {
redef "IO::Handle::eof()";
}
sub fgetc {
redef "IO::Handle::getc()";
}
sub fgets {
redef "IO::Handle::gets()";
}
sub fileno {
redef "IO::Handle::fileno()";
}
os2/POSIX.pm view on Meta::CPAN
CREAD CS5 CS6 CS7 CS8 CSIZE CSTOPB ECHO ECHOE ECHOK
ECHONL HUPCL ICANON ICRNL IEXTEN IGNBRK IGNCR IGNPAR
INLCR INPCK ISIG ISTRIP IXOFF IXON NCCS NOFLSH OPOST
PARENB PARMRK PARODD TCIFLUSH TCIOFF TCIOFLUSH TCION
TCOFLUSH TCOOFF TCOON TCSADRAIN TCSAFLUSH TCSANOW
TOSTOP VEOF VEOL VERASE VINTR VKILL VMIN VQUIT VSTART
VSTOP VSUSP VTIME
cfgetispeed cfgetospeed cfsetispeed cfsetospeed tcdrain
tcflow tcflush tcgetattr tcsendbreak tcsetattr )],
time_h => [qw(CLK_TCK CLOCKS_PER_SEC NULL asctime clock ctime
difftime mktime strftime tzset tzname)],
unistd_h => [qw(F_OK NULL R_OK SEEK_CUR SEEK_END SEEK_SET
STDERR_FILENO STDIN_FILENO STDOUT_FILENO W_OK X_OK
_PC_CHOWN_RESTRICTED _PC_LINK_MAX _PC_MAX_CANON
_PC_MAX_INPUT _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX
_PC_PIPE_BUF _PC_VDISABLE _POSIX_CHOWN_RESTRICTED
_POSIX_JOB_CONTROL _POSIX_NO_TRUNC _POSIX_SAVED_IDS
_POSIX_VDISABLE _POSIX_VERSION _SC_ARG_MAX
_SC_CHILD_MAX _SC_CLK_TCK _SC_JOB_CONTROL
_SC_NGROUPS_MAX _SC_OPEN_MAX _SC_PAGESIZE _SC_SAVED_IDS
_SC_STREAM_MAX _SC_TZNAME_MAX _SC_VERSION
_exit access ctermid cuserid
dup2 dup execl execle execlp execv execve execvp
fpathconf fsync getcwd getegid geteuid getgid getgroups
getpid getuid isatty lseek pathconf pause setgid setpgid
setsid setuid sysconf tcgetpgrp tcsetpgrp ttyname)],
utime_h => [],
);
# Exporter::export_tags();
for (values %EXPORT_TAGS) {
push @EXPORT, @$_;
}
@EXPORT_OK = qw(
abs
alarm
atan2
chdir
chmod
chown
close
closedir
cos
exit
exp
fcntl
fileno
fork
getc
getgrgid
getgrnam
getlogin
getpgrp
getppid
getpwnam
getpwuid
gmtime
isatty
kill
link
localtime
log
mkdir
nice
open
opendir
pipe
printf
rand
read
readdir
rename
rewinddir
rmdir
sin
sleep
sprintf
sqrt
srand
stat
system
time
times
umask
unlink
utime
wait
waitpid
write
);
require Exporter;
}
package POSIX::SigAction;
sub handler { $_[0]->{HANDLER} = $_[1] if @_ > 1; $_[0]->{HANDLER} };
sub mask { $_[0]->{MASK} = $_[1] if @_ > 1; $_[0]->{MASK} };
sub flags { $_[0]->{FLAGS} = $_[1] if @_ > 1; $_[0]->{FLAGS} };
sub safe { $_[0]->{SAFE} = $_[1] if @_ > 1; $_[0]->{SAFE} };
( run in 1.547 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )