Well I don't expect functions whose purpose is to use a system call/function to be completely system-independant. I had in mind the "core language" only, like the original question in this thread.
There's no
select in C because it's actually in POSIX/Unix-related libraries, it's not in standard C (C89, C99...) It may be in the same library on your system though, if this library implements both C library and Unix functions.
There are unspecified behaviours in C which really depend on the core language, not the library. For example, in
y = f(x) + g(x), you don't know if f is called before g or not, I think it's specified by a compiler, but it's not in the standard. Here I see people say "Try it to see what it's doing", so I suppose in such a case, there's no unspecified behaviour in Perl, because in C testing is not enough to know (f is called before g on Sparc with gcc, g is called before f on x86 with gcc).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.