Prima::Utils - miscellanneous routines |
Prima::Utils - miscellanneous routines
The module contains several routines, implemented in C. These
routines can be accessed via Prima::Utils::
prefix.
mb::Error mb::Warning mb::Information mb::Question
gui::XXX
constants, reflecting the graphic
user interface used in the system:
gui::Default gui::PM gui::Windows gui::XLib gui::OpenLook gui::Motif
The meaning of the return value is somewhat vague, and might be deprecated in future releases.
apc::XXX
constants, reflecting the platfrom.
Currently, the list of the supported platforms is:
apc::Os2 apc::Win32 apc::Unix
Returns stdlib's ceil()
of DOUBLE
Returns stdlib's floor()
of DOUBLE
The file type is a string, one of the following:
"fifo" - named pipe "chr" - character special file "dir" - directory "blk" - block special file "reg" - regular file "lnk" - symbolic link "sock" - socket "wht" - whiteout
This function was implemented for faster directory reading,
to avoid successive call of stat
for every file.
C:
string.
If the system supports no drive letters, empty array reference is returned ( unix ).
dt::XXX
constants, describing the type of drive,
where DRIVE is a 1-character string. If there is no such drive, or
the system supports no drive letters ( unix ), dt::None
is returned.
dt::None dt::Unknown dt::Floppy dt::HDD dt::Network dt::CDROM dt::Memory
getlogin
( see getlogin in the perlfunc manpage ) .
#rgb #rrggbb #rrrgggbbb
and returns 24-bit RGB integer value.
Dmitry Karasik, <dmitry@karasik.eu.org>.
Prima
Prima::Utils - miscellanneous routines |