Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

errno(3pm) [osx man page]

Errno(3pm)						 Perl Programmers Reference Guide						Errno(3pm)

Errno - System errno constants SYNOPSIS
"Errno" defines and conditionally exports all the error constants defined in your system "errno.h" include file. It has a single export tag, ":POSIX", which will export all POSIX defined error numbers. "Errno" also makes "%!" magic such that each element of "%!" has a non-zero value only if $! is set to that value. For example: use Errno; unless (open(FH, "/fangorn/spouse")) { if ($!{ENOENT}) { warn "Get a wife! "; } else { warn "This path is barred: $!"; } } If a specified constant "EFOO" does not exist on the system, $!{EFOO} returns "". You may use "exists $!{EFOO}" to check whether the constant is available on the system. CAVEATS
Importing a particular constant may not be very portable, because the import will fail on platforms that do not have that constant. A more portable way to set $! to a valid value is to use: if (exists &Errno::EFOO) { $! = &Errno::EFOO; } AUTHOR
Graham Barr <> COPYRIGHT
Copyright (c) 1997-8 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.2 2013-08-25 Errno(3pm)

Check Out this Related Man Page

IO::Poll(3pm)						 Perl Programmers Reference Guide					     IO::Poll(3pm)

IO::Poll - Object interface to system poll call SYNOPSIS
use IO::Poll qw(POLLRDNORM POLLWRNORM POLLIN POLLHUP); $poll = IO::Poll->new(); $poll->mask($input_handle => POLLIN); $poll->mask($output_handle => POLLOUT); $poll->poll($timeout); $ev = $poll->events($input); DESCRIPTION
"IO::Poll" is a simple interface to the system level poll routine. METHODS
mask ( IO [, EVENT_MASK ] ) If EVENT_MASK is given, then, if EVENT_MASK is non-zero, IO is added to the list of file descriptors and the next call to poll will check for any event specified in EVENT_MASK. If EVENT_MASK is zero then IO will be removed from the list of file descriptors. If EVENT_MASK is not given then the return value will be the current event mask value for IO. poll ( [ TIMEOUT ] ) Call the system level poll routine. If TIMEOUT is not specified then the call will block. Returns the number of handles which had events happen, or -1 on error. events ( IO ) Returns the event mask which represents the events that happened on IO during the last call to "poll". remove ( IO ) Remove IO from the list of file descriptors for the next poll. handles( [ EVENT_MASK ] ) Returns a list of handles. If EVENT_MASK is not given then a list of all handles known will be returned. If EVENT_MASK is given then a list of handles will be returned which had one of the events specified by EVENT_MASK happen during the last call ti "poll" SEE ALSO
poll(2), IO::Handle, IO::Select AUTHOR
Graham Barr. Currently maintained by the Perl Porters. Please report all bugs to <>. COPYRIGHT
Copyright (c) 1997-8 Graham Barr <>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2013-03-04 IO::Poll(3pm)
Man Page

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

And now for something completely the same

In honor of the anniversary of one of the best British shows (and memoriam of Graham Chapman)... npjOSLCR2hE 9ZlBUglE6Hc (1 Reply)
Discussion started by: pludi
1 Replies

2. AIX

Subprocess errors

Hi Guys, Just a question about subprocesses.. Lately one of our servers has started to throw out the following error: SYSTEM ERROR: Too many subprocesses, cannot fork. Errno=12 We've already increased the threshold twice. Its now up to 8000 and the swap space has also been increased. We... (6 Replies)
Discussion started by: Jazmania
6 Replies

3. What is on Your Mind?

Does your spouse nag you while you passionately code?

Well I don't know how often it happens with you guys, but whenever I am close to solving the issues in the code that time the nagging of my girlfriend becomes excessive. Which makes me think have I actually been spending so much time coding, or my girlfriend is jealous of my love for unix ;) ... (10 Replies)
Discussion started by: sidnow
10 Replies

4. AIX

Errno.h symbols

Hi, I need to look at a recent copy of /usr/include/errno.h from AIX 7.2 to check some symbols. In particular, I'm curious if it defines EOWNERDEAD and ENOTRECOVERABLE. Can someone who has access to 7.2 please check for me? Thanks! (1 Reply)
Discussion started by: topcat
1 Replies