home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / zkuste / Perl / ActivePerl-5.6.0.613.msi / 䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥 / _a629e5b17c63ff5ec5b4290792940013 < prev    next >
Text File  |  2000-03-23  |  69KB  |  1,691 lines

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>POSIX - Perl interface to IEEE Std 1003.1</TITLE>
  5. <LINK REL="stylesheet" HREF="../Active.css" TYPE="text/css">
  6. <LINK REV="made" HREF="mailto:">
  7. </HEAD>
  8.  
  9. <BODY>
  10. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  11. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  12. <STRONG><P CLASS=block> POSIX - Perl interface to IEEE Std 1003.1</P></STRONG>
  13. </TD></TR>
  14. </TABLE>
  15.  
  16. <A NAME="__index__"></A>
  17. <!-- INDEX BEGIN -->
  18.  
  19. <UL>
  20.  
  21.     <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
  22.  
  23.     <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
  24.     <LI><A HREF="#description">DESCRIPTION</A></LI>
  25.     <LI><A HREF="#note">NOTE</A></LI>
  26.     <LI><A HREF="#caveats">CAVEATS</A></LI>
  27.     <LI><A HREF="#functions">FUNCTIONS</A></LI>
  28.     <LI><A HREF="#classes">CLASSES</A></LI>
  29.     <UL>
  30.  
  31.         <LI><A HREF="#posix::sigaction">POSIX::SigAction</A></LI>
  32.         <LI><A HREF="#posix::sigset">POSIX::SigSet</A></LI>
  33.         <LI><A HREF="#posix::termios">POSIX::Termios</A></LI>
  34.     </UL>
  35.  
  36.     <LI><A HREF="#pathname constants">PATHNAME CONSTANTS</A></LI>
  37.     <LI><A HREF="#posix constants">POSIX CONSTANTS</A></LI>
  38.     <LI><A HREF="#system configuration">SYSTEM CONFIGURATION</A></LI>
  39.     <LI><A HREF="#errno">ERRNO</A></LI>
  40.     <LI><A HREF="#fcntl">FCNTL</A></LI>
  41.     <LI><A HREF="#float">FLOAT</A></LI>
  42.     <LI><A HREF="#limits">LIMITS</A></LI>
  43.     <LI><A HREF="#locale">LOCALE</A></LI>
  44.     <LI><A HREF="#math">MATH</A></LI>
  45.     <LI><A HREF="#signal">SIGNAL</A></LI>
  46.     <LI><A HREF="#stat">STAT</A></LI>
  47.     <LI><A HREF="#stdlib">STDLIB</A></LI>
  48.     <LI><A HREF="#stdio">STDIO</A></LI>
  49.     <LI><A HREF="#time">TIME</A></LI>
  50.     <LI><A HREF="#unistd">UNISTD</A></LI>
  51.     <LI><A HREF="#wait">WAIT</A></LI>
  52.     <LI><A HREF="#creation">CREATION</A></LI>
  53. </UL>
  54. <!-- INDEX END -->
  55.  
  56. <HR>
  57. <P>
  58. <H1><A NAME="name">NAME</A></H1>
  59. <P>POSIX - Perl interface to IEEE Std 1003.1</P>
  60. <P>
  61. <HR>
  62. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  63. <UL>
  64. <LI>Linux</LI>
  65. <LI>Solaris</LI>
  66. <LI>Windows</LI>
  67. </UL>
  68. <HR>
  69. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  70. <PRE>
  71.     use POSIX;
  72.     use POSIX qw(setsid);
  73.     use POSIX qw(:errno_h :fcntl_h);</PRE>
  74. <PRE>
  75.     printf "EINTR is %d\n", EINTR;</PRE>
  76. <PRE>
  77.     $sess_id = POSIX::setsid();</PRE>
  78. <PRE>
  79.     $fd = POSIX::open($path, O_CREAT|O_EXCL|O_WRONLY, 0644);
  80.         # note: that's a filedescriptor, *NOT* a filehandle</PRE>
  81. <P>
  82. <HR>
  83. <H1><A NAME="description">DESCRIPTION</A></H1>
  84. <P>The POSIX module permits you to access all (or nearly all) the standard
  85. POSIX 1003.1 identifiers.  Many of these identifiers have been given Perl-ish
  86. interfaces.  Things which are <CODE>#defines</CODE> in C, like EINTR or O_NDELAY, are
  87. automatically exported into your namespace.  All functions are only exported
  88. if you ask for them explicitly.  Most likely people will prefer to use the
  89. fully-qualified function names.</P>
  90. <P>This document gives a condensed list of the features available in the POSIX
  91. module.  Consult your operating system's manpages for general information on
  92. most features.  Consult <A HREF="../lib/Pod/perlfunc.html">the perlfunc manpage</A> for functions which are noted as being
  93. identical to Perl's builtin functions.</P>
  94. <P>The first section describes POSIX functions from the 1003.1 specification.
  95. The second section describes some classes for signal objects, TTY objects,
  96. and other miscellaneous objects.  The remaining sections list various
  97. constants and macros in an organization which roughly follows IEEE Std
  98. 1003.1b-1993.</P>
  99. <P>
  100. <HR>
  101. <H1><A NAME="note">NOTE</A></H1>
  102. <P>The POSIX module is probably the most complex Perl module supplied with
  103. the standard distribution.  It incorporates autoloading, namespace games,
  104. and dynamic loading of code that's in Perl, C, or both.  It's a great
  105. source of wisdom.</P>
  106. <P>
  107. <HR>
  108. <H1><A NAME="caveats">CAVEATS</A></H1>
  109. <P>A few functions are not implemented because they are C specific.  If you
  110. attempt to call these, they will print a message telling you that they
  111. aren't implemented, and suggest using the Perl equivalent should one
  112. exist.  For example, trying to access the <A HREF="#item_setjmp"><CODE>setjmp()</CODE></A> call will elicit the
  113. message ``setjmp() is C-specific: use eval {} instead''.</P>
  114. <P>Furthermore, some evil vendors will claim 1003.1 compliance, but in fact
  115. are not so: they will not pass the PCTS (POSIX Compliance Test Suites).
  116. For example, one vendor may not define EDEADLK, or the semantics of the
  117. errno values set by <A HREF="#item_open"><CODE>open(2)</CODE></A> might not be quite right.  Perl does not
  118. attempt to verify POSIX compliance.  That means you can currently
  119. successfully say ``use POSIX'',  and then later in your program you find
  120. that your vendor has been lax and there's no usable ICANON macro after
  121. all.  This could be construed to be a bug.</P>
  122. <P>
  123. <HR>
  124. <H1><A NAME="functions">FUNCTIONS</A></H1>
  125. <DL>
  126. <DT><STRONG><A NAME="item__exit">_exit</A></STRONG><BR>
  127. <DD>
  128. This is identical to the C function <A HREF="#item__exit"><CODE>_exit()</CODE></A>.
  129. <P></P>
  130. <DT><STRONG><A NAME="item_abort">abort</A></STRONG><BR>
  131. <DD>
  132. This is identical to the C function <A HREF="#item_abort"><CODE>abort()</CODE></A>.
  133. <P></P>
  134. <DT><STRONG><A NAME="item_abs">abs</A></STRONG><BR>
  135. <DD>
  136. This is identical to Perl's builtin <A HREF="#item_abs"><CODE>abs()</CODE></A> function.
  137. <P></P>
  138. <DT><STRONG><A NAME="item_access">access</A></STRONG><BR>
  139. <DD>
  140. Determines the accessibility of a file.
  141. <PRE>
  142.         if( POSIX::access( "/", &POSIX::R_OK ) ){
  143.                 print "have read permission\n";
  144.         }</PRE>
  145. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  146. <P></P>
  147. <DT><STRONG><A NAME="item_acos">acos</A></STRONG><BR>
  148. <DD>
  149. This is identical to the C function <A HREF="#item_acos"><CODE>acos()</CODE></A>.
  150. <P></P>
  151. <DT><STRONG><A NAME="item_alarm">alarm</A></STRONG><BR>
  152. <DD>
  153. This is identical to Perl's builtin <A HREF="#item_alarm"><CODE>alarm()</CODE></A> function.
  154. <P></P>
  155. <DT><STRONG><A NAME="item_asctime">asctime</A></STRONG><BR>
  156. <DD>
  157. This is identical to the C function <A HREF="#item_asctime"><CODE>asctime()</CODE></A>.
  158. <P></P>
  159. <DT><STRONG><A NAME="item_asin">asin</A></STRONG><BR>
  160. <DD>
  161. This is identical to the C function <A HREF="#item_asin"><CODE>asin()</CODE></A>.
  162. <P></P>
  163. <DT><STRONG><A NAME="item_assert">assert</A></STRONG><BR>
  164. <DD>
  165. Unimplemented.
  166. <P></P>
  167. <DT><STRONG><A NAME="item_atan">atan</A></STRONG><BR>
  168. <DD>
  169. This is identical to the C function <A HREF="#item_atan"><CODE>atan()</CODE></A>.
  170. <P></P>
  171. <DT><STRONG><A NAME="item_atan2">atan2</A></STRONG><BR>
  172. <DD>
  173. This is identical to Perl's builtin <A HREF="#item_atan2"><CODE>atan2()</CODE></A> function.
  174. <P></P>
  175. <DT><STRONG><A NAME="item_atexit">atexit</A></STRONG><BR>
  176. <DD>
  177. <A HREF="#item_atexit"><CODE>atexit()</CODE></A> is C-specific: use END {} instead.
  178. <P></P>
  179. <DT><STRONG><A NAME="item_atof">atof</A></STRONG><BR>
  180. <DD>
  181. <A HREF="#item_atof"><CODE>atof()</CODE></A> is C-specific.
  182. <P></P>
  183. <DT><STRONG><A NAME="item_atoi">atoi</A></STRONG><BR>
  184. <DD>
  185. <A HREF="#item_atoi"><CODE>atoi()</CODE></A> is C-specific.
  186. <P></P>
  187. <DT><STRONG><A NAME="item_atol">atol</A></STRONG><BR>
  188. <DD>
  189. <A HREF="#item_atol"><CODE>atol()</CODE></A> is C-specific.
  190. <P></P>
  191. <DT><STRONG><A NAME="item_bsearch">bsearch</A></STRONG><BR>
  192. <DD>
  193. <A HREF="#item_bsearch"><CODE>bsearch()</CODE></A> not supplied.
  194. <P></P>
  195. <DT><STRONG><A NAME="item_calloc">calloc</A></STRONG><BR>
  196. <DD>
  197. <A HREF="#item_calloc"><CODE>calloc()</CODE></A> is C-specific.
  198. <P></P>
  199. <DT><STRONG><A NAME="item_ceil">ceil</A></STRONG><BR>
  200. <DD>
  201. This is identical to the C function <A HREF="#item_ceil"><CODE>ceil()</CODE></A>.
  202. <P></P>
  203. <DT><STRONG><A NAME="item_chdir">chdir</A></STRONG><BR>
  204. <DD>
  205. This is identical to Perl's builtin <A HREF="#item_chdir"><CODE>chdir()</CODE></A> function.
  206. <P></P>
  207. <DT><STRONG><A NAME="item_chmod">chmod</A></STRONG><BR>
  208. <DD>
  209. This is identical to Perl's builtin <A HREF="#item_chmod"><CODE>chmod()</CODE></A> function.
  210. <P></P>
  211. <DT><STRONG><A NAME="item_chown">chown</A></STRONG><BR>
  212. <DD>
  213. This is identical to Perl's builtin <A HREF="#item_chown"><CODE>chown()</CODE></A> function.
  214. <P></P>
  215. <DT><STRONG><A NAME="item_clearerr">clearerr</A></STRONG><BR>
  216. <DD>
  217. Use method <A HREF="#item_clearerr"><CODE>IO::Handle::clearerr()</CODE></A> instead.
  218. <P></P>
  219. <DT><STRONG><A NAME="item_clock">clock</A></STRONG><BR>
  220. <DD>
  221. This is identical to the C function <A HREF="#item_clock"><CODE>clock()</CODE></A>.
  222. <P></P>
  223. <DT><STRONG><A NAME="item_close">close</A></STRONG><BR>
  224. <DD>
  225. Close the file.  This uses file descriptors such as those obtained by calling
  226. <CODE>POSIX::open</CODE>.
  227. <PRE>
  228.         $fd = POSIX::open( "foo", &POSIX::O_RDONLY );
  229.         POSIX::close( $fd );</PRE>
  230. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  231. <P></P>
  232. <DT><STRONG><A NAME="item_closedir">closedir</A></STRONG><BR>
  233. <DD>
  234. This is identical to Perl's builtin <A HREF="#item_closedir"><CODE>closedir()</CODE></A> function.
  235. <P></P>
  236. <DT><STRONG><A NAME="item_cos">cos</A></STRONG><BR>
  237. <DD>
  238. This is identical to Perl's builtin <A HREF="#item_cos"><CODE>cos()</CODE></A> function.
  239. <P></P>
  240. <DT><STRONG><A NAME="item_cosh">cosh</A></STRONG><BR>
  241. <DD>
  242. This is identical to the C function <A HREF="#item_cosh"><CODE>cosh()</CODE></A>.
  243. <P></P>
  244. <DT><STRONG><A NAME="item_creat">creat</A></STRONG><BR>
  245. <DD>
  246. Create a new file.  This returns a file descriptor like the ones returned by
  247. <CODE>POSIX::open</CODE>.  Use <CODE>POSIX::close</CODE> to close the file.
  248. <PRE>
  249.         $fd = POSIX::creat( "foo", 0611 );
  250.         POSIX::close( $fd );</PRE>
  251. <P></P>
  252. <DT><STRONG><A NAME="item_ctermid">ctermid</A></STRONG><BR>
  253. <DD>
  254. Generates the path name for the controlling terminal.
  255. <PRE>
  256.         $path = POSIX::ctermid();</PRE>
  257. <P></P>
  258. <DT><STRONG><A NAME="item_ctime">ctime</A></STRONG><BR>
  259. <DD>
  260. This is identical to the C function <A HREF="#item_ctime"><CODE>ctime()</CODE></A>.
  261. <P></P>
  262. <DT><STRONG><A NAME="item_cuserid">cuserid</A></STRONG><BR>
  263. <DD>
  264. Get the character login name of the user.
  265. <PRE>
  266.         $name = POSIX::cuserid();</PRE>
  267. <P></P>
  268. <DT><STRONG><A NAME="item_difftime">difftime</A></STRONG><BR>
  269. <DD>
  270. This is identical to the C function <A HREF="#item_difftime"><CODE>difftime()</CODE></A>.
  271. <P></P>
  272. <DT><STRONG><A NAME="item_div">div</A></STRONG><BR>
  273. <DD>
  274. <A HREF="#item_div"><CODE>div()</CODE></A> is C-specific.
  275. <P></P>
  276. <DT><STRONG><A NAME="item_dup">dup</A></STRONG><BR>
  277. <DD>
  278. This is similar to the C function <A HREF="#item_dup"><CODE>dup()</CODE></A>.
  279. <P>This uses file descriptors such as those obtained by calling
  280. <CODE>POSIX::open</CODE>.</P>
  281. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  282. <P></P>
  283. <DT><STRONG><A NAME="item_dup2">dup2</A></STRONG><BR>
  284. <DD>
  285. This is similar to the C function <A HREF="#item_dup2"><CODE>dup2()</CODE></A>.
  286. <P>This uses file descriptors such as those obtained by calling
  287. <CODE>POSIX::open</CODE>.</P>
  288. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  289. <P></P>
  290. <DT><STRONG><A NAME="item_errno">errno</A></STRONG><BR>
  291. <DD>
  292. Returns the value of errno.
  293. <PRE>
  294.         $errno = POSIX::errno();</PRE>
  295. <P></P>
  296. <DT><STRONG><A NAME="item_execl">execl</A></STRONG><BR>
  297. <DD>
  298. <A HREF="#item_execl"><CODE>execl()</CODE></A> is C-specific.
  299. <P></P>
  300. <DT><STRONG><A NAME="item_execle">execle</A></STRONG><BR>
  301. <DD>
  302. <A HREF="#item_execle"><CODE>execle()</CODE></A> is C-specific.
  303. <P></P>
  304. <DT><STRONG><A NAME="item_execlp">execlp</A></STRONG><BR>
  305. <DD>
  306. <A HREF="#item_execlp"><CODE>execlp()</CODE></A> is C-specific.
  307. <P></P>
  308. <DT><STRONG><A NAME="item_execv">execv</A></STRONG><BR>
  309. <DD>
  310. <A HREF="#item_execv"><CODE>execv()</CODE></A> is C-specific.
  311. <P></P>
  312. <DT><STRONG><A NAME="item_execve">execve</A></STRONG><BR>
  313. <DD>
  314. <A HREF="#item_execve"><CODE>execve()</CODE></A> is C-specific.
  315. <P></P>
  316. <DT><STRONG><A NAME="item_execvp">execvp</A></STRONG><BR>
  317. <DD>
  318. <A HREF="#item_execvp"><CODE>execvp()</CODE></A> is C-specific.
  319. <P></P>
  320. <DT><STRONG><A NAME="item_exit">exit</A></STRONG><BR>
  321. <DD>
  322. This is identical to Perl's builtin <A HREF="#item_exit"><CODE>exit()</CODE></A> function.
  323. <P></P>
  324. <DT><STRONG><A NAME="item_exp">exp</A></STRONG><BR>
  325. <DD>
  326. This is identical to Perl's builtin <A HREF="#item_exp"><CODE>exp()</CODE></A> function.
  327. <P></P>
  328. <DT><STRONG><A NAME="item_fabs">fabs</A></STRONG><BR>
  329. <DD>
  330. This is identical to Perl's builtin <A HREF="#item_abs"><CODE>abs()</CODE></A> function.
  331. <P></P>
  332. <DT><STRONG><A NAME="item_fclose">fclose</A></STRONG><BR>
  333. <DD>
  334. Use method <A HREF="#item_close"><CODE>IO::Handle::close()</CODE></A> instead.
  335. <P></P>
  336. <DT><STRONG><A NAME="item_fcntl">fcntl</A></STRONG><BR>
  337. <DD>
  338. This is identical to Perl's builtin <A HREF="#item_fcntl"><CODE>fcntl()</CODE></A> function.
  339. <P></P>
  340. <DT><STRONG><A NAME="item_fdopen">fdopen</A></STRONG><BR>
  341. <DD>
  342. Use method <CODE>IO::Handle::new_from_fd()</CODE> instead.
  343. <P></P>
  344. <DT><STRONG><A NAME="item_feof">feof</A></STRONG><BR>
  345. <DD>
  346. Use method <A HREF="../lib/Pod/perlfunc.html#item_eof"><CODE>IO::Handle::eof()</CODE></A> instead.
  347. <P></P>
  348. <DT><STRONG><A NAME="item_ferror">ferror</A></STRONG><BR>
  349. <DD>
  350. Use method <CODE>IO::Handle::error()</CODE> instead.
  351. <P></P>
  352. <DT><STRONG><A NAME="item_fflush">fflush</A></STRONG><BR>
  353. <DD>
  354. Use method <CODE>IO::Handle::flush()</CODE> instead.
  355. <P></P>
  356. <DT><STRONG><A NAME="item_fgetc">fgetc</A></STRONG><BR>
  357. <DD>
  358. Use method <A HREF="#item_getc"><CODE>IO::Handle::getc()</CODE></A> instead.
  359. <P></P>
  360. <DT><STRONG><A NAME="item_fgetpos">fgetpos</A></STRONG><BR>
  361. <DD>
  362. Use method <CODE>IO::Seekable::getpos()</CODE> instead.
  363. <P></P>
  364. <DT><STRONG><A NAME="item_fgets">fgets</A></STRONG><BR>
  365. <DD>
  366. Use method <A HREF="#item_gets"><CODE>IO::Handle::gets()</CODE></A> instead.
  367. <P></P>
  368. <DT><STRONG><A NAME="item_fileno">fileno</A></STRONG><BR>
  369. <DD>
  370. Use method <A HREF="#item_fileno"><CODE>IO::Handle::fileno()</CODE></A> instead.
  371. <P></P>
  372. <DT><STRONG><A NAME="item_floor">floor</A></STRONG><BR>
  373. <DD>
  374. This is identical to the C function <A HREF="#item_floor"><CODE>floor()</CODE></A>.
  375. <P></P>
  376. <DT><STRONG><A NAME="item_fmod">fmod</A></STRONG><BR>
  377. <DD>
  378. This is identical to the C function <A HREF="#item_fmod"><CODE>fmod()</CODE></A>.
  379. <P></P>
  380. <DT><STRONG><A NAME="item_fopen">fopen</A></STRONG><BR>
  381. <DD>
  382. Use method <A HREF="#item_open"><CODE>IO::File::open()</CODE></A> instead.
  383. <P></P>
  384. <DT><STRONG><A NAME="item_fork">fork</A></STRONG><BR>
  385. <DD>
  386. This is identical to Perl's builtin <A HREF="#item_fork"><CODE>fork()</CODE></A> function.
  387. <P></P>
  388. <DT><STRONG><A NAME="item_fpathconf">fpathconf</A></STRONG><BR>
  389. <DD>
  390. Retrieves the value of a configurable limit on a file or directory.  This
  391. uses file descriptors such as those obtained by calling <CODE>POSIX::open</CODE>.
  392. <P>The following will determine the maximum length of the longest allowable
  393. pathname on the filesystem which holds <CODE>/tmp/foo</CODE>.</P>
  394. <PRE>
  395.         $fd = POSIX::open( "/tmp/foo", &POSIX::O_RDONLY );
  396.         $path_max = POSIX::fpathconf( $fd, &POSIX::_PC_PATH_MAX );</PRE>
  397. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  398. <P></P>
  399. <DT><STRONG><A NAME="item_fprintf">fprintf</A></STRONG><BR>
  400. <DD>
  401. <A HREF="#item_fprintf"><CODE>fprintf()</CODE></A> is C-specific--use printf instead.
  402. <P></P>
  403. <DT><STRONG><A NAME="item_fputc">fputc</A></STRONG><BR>
  404. <DD>
  405. <A HREF="#item_fputc"><CODE>fputc()</CODE></A> is C-specific--use print instead.
  406. <P></P>
  407. <DT><STRONG><A NAME="item_fputs">fputs</A></STRONG><BR>
  408. <DD>
  409. <A HREF="#item_fputs"><CODE>fputs()</CODE></A> is C-specific--use print instead.
  410. <P></P>
  411. <DT><STRONG><A NAME="item_fread">fread</A></STRONG><BR>
  412. <DD>
  413. <A HREF="#item_fread"><CODE>fread()</CODE></A> is C-specific--use read instead.
  414. <P></P>
  415. <DT><STRONG><A NAME="item_free">free</A></STRONG><BR>
  416. <DD>
  417. <A HREF="#item_free"><CODE>free()</CODE></A> is C-specific.
  418. <P></P>
  419. <DT><STRONG><A NAME="item_freopen">freopen</A></STRONG><BR>
  420. <DD>
  421. <A HREF="#item_freopen"><CODE>freopen()</CODE></A> is C-specific--use open instead.
  422. <P></P>
  423. <DT><STRONG><A NAME="item_frexp">frexp</A></STRONG><BR>
  424. <DD>
  425. Return the mantissa and exponent of a floating-point number.
  426. <PRE>
  427.         ($mantissa, $exponent) = POSIX::frexp( 3.14 );</PRE>
  428. <P></P>
  429. <DT><STRONG><A NAME="item_fscanf">fscanf</A></STRONG><BR>
  430. <DD>
  431. <A HREF="#item_fscanf"><CODE>fscanf()</CODE></A> is C-specific--use <> and regular expressions instead.
  432. <P></P>
  433. <DT><STRONG><A NAME="item_fseek">fseek</A></STRONG><BR>
  434. <DD>
  435. Use method <A HREF="../lib/Pod/perlfunc.html#item_seek"><CODE>IO::Seekable::seek()</CODE></A> instead.
  436. <P></P>
  437. <DT><STRONG><A NAME="item_fsetpos">fsetpos</A></STRONG><BR>
  438. <DD>
  439. Use method <CODE>IO::Seekable::setpos()</CODE> instead.
  440. <P></P>
  441. <DT><STRONG><A NAME="item_fstat">fstat</A></STRONG><BR>
  442. <DD>
  443. Get file status.  This uses file descriptors such as those obtained by
  444. calling <CODE>POSIX::open</CODE>.  The data returned is identical to the data from
  445. Perl's builtin <A HREF="#item_stat"><CODE>stat</CODE></A> function.
  446. <PRE>
  447.         $fd = POSIX::open( "foo", &POSIX::O_RDONLY );
  448.         @stats = POSIX::fstat( $fd );</PRE>
  449. <P></P>
  450. <DT><STRONG><A NAME="item_ftell">ftell</A></STRONG><BR>
  451. <DD>
  452. Use method <A HREF="../lib/Pod/perlfunc.html#item_tell"><CODE>IO::Seekable::tell()</CODE></A> instead.
  453. <P></P>
  454. <DT><STRONG><A NAME="item_fwrite">fwrite</A></STRONG><BR>
  455. <DD>
  456. <A HREF="#item_fwrite"><CODE>fwrite()</CODE></A> is C-specific--use print instead.
  457. <P></P>
  458. <DT><STRONG><A NAME="item_getc">getc</A></STRONG><BR>
  459. <DD>
  460. This is identical to Perl's builtin <A HREF="#item_getc"><CODE>getc()</CODE></A> function.
  461. <P></P>
  462. <DT><STRONG><A NAME="item_getchar">getchar</A></STRONG><BR>
  463. <DD>
  464. Returns one character from STDIN.
  465. <P></P>
  466. <DT><STRONG><A NAME="item_getcwd">getcwd</A></STRONG><BR>
  467. <DD>
  468. Returns the name of the current working directory.
  469. <P></P>
  470. <DT><STRONG><A NAME="item_getegid">getegid</A></STRONG><BR>
  471. <DD>
  472. Returns the effective group id.
  473. <P></P>
  474. <DT><STRONG><A NAME="item_getenv">getenv</A></STRONG><BR>
  475. <DD>
  476. Returns the value of the specified enironment variable.
  477. <P></P>
  478. <DT><STRONG><A NAME="item_geteuid">geteuid</A></STRONG><BR>
  479. <DD>
  480. Returns the effective user id.
  481. <P></P>
  482. <DT><STRONG><A NAME="item_getgid">getgid</A></STRONG><BR>
  483. <DD>
  484. Returns the user's real group id.
  485. <P></P>
  486. <DT><STRONG><A NAME="item_getgrgid">getgrgid</A></STRONG><BR>
  487. <DD>
  488. This is identical to Perl's builtin <A HREF="#item_getgrgid"><CODE>getgrgid()</CODE></A> function.
  489. <P></P>
  490. <DT><STRONG><A NAME="item_getgrnam">getgrnam</A></STRONG><BR>
  491. <DD>
  492. This is identical to Perl's builtin <A HREF="#item_getgrnam"><CODE>getgrnam()</CODE></A> function.
  493. <P></P>
  494. <DT><STRONG><A NAME="item_getgroups">getgroups</A></STRONG><BR>
  495. <DD>
  496. Returns the ids of the user's supplementary groups.
  497. <P></P>
  498. <DT><STRONG><A NAME="item_getlogin">getlogin</A></STRONG><BR>
  499. <DD>
  500. This is identical to Perl's builtin <A HREF="#item_getlogin"><CODE>getlogin()</CODE></A> function.
  501. <P></P>
  502. <DT><STRONG><A NAME="item_getpgrp">getpgrp</A></STRONG><BR>
  503. <DD>
  504. This is identical to Perl's builtin <A HREF="#item_getpgrp"><CODE>getpgrp()</CODE></A> function.
  505. <P></P>
  506. <DT><STRONG><A NAME="item_getpid">getpid</A></STRONG><BR>
  507. <DD>
  508. Returns the process's id.
  509. <P></P>
  510. <DT><STRONG><A NAME="item_getppid">getppid</A></STRONG><BR>
  511. <DD>
  512. This is identical to Perl's builtin <A HREF="#item_getppid"><CODE>getppid()</CODE></A> function.
  513. <P></P>
  514. <DT><STRONG><A NAME="item_getpwnam">getpwnam</A></STRONG><BR>
  515. <DD>
  516. This is identical to Perl's builtin <A HREF="#item_getpwnam"><CODE>getpwnam()</CODE></A> function.
  517. <P></P>
  518. <DT><STRONG><A NAME="item_getpwuid">getpwuid</A></STRONG><BR>
  519. <DD>
  520. This is identical to Perl's builtin <A HREF="#item_getpwuid"><CODE>getpwuid()</CODE></A> function.
  521. <P></P>
  522. <DT><STRONG><A NAME="item_gets">gets</A></STRONG><BR>
  523. <DD>
  524. Returns one line from STDIN.
  525. <P></P>
  526. <DT><STRONG><A NAME="item_getuid">getuid</A></STRONG><BR>
  527. <DD>
  528. Returns the user's id.
  529. <P></P>
  530. <DT><STRONG><A NAME="item_gmtime">gmtime</A></STRONG><BR>
  531. <DD>
  532. This is identical to Perl's builtin <A HREF="#item_gmtime"><CODE>gmtime()</CODE></A> function.
  533. <P></P>
  534. <DT><STRONG><A NAME="item_isalnum">isalnum</A></STRONG><BR>
  535. <DD>
  536. This is identical to the C function, except that it can apply to a single
  537. character or to a whole string.
  538. <P></P>
  539. <DT><STRONG><A NAME="item_isalpha">isalpha</A></STRONG><BR>
  540. <DD>
  541. This is identical to the C function, except that it can apply to a single
  542. character or to a whole string.
  543. <P></P>
  544. <DT><STRONG><A NAME="item_isatty">isatty</A></STRONG><BR>
  545. <DD>
  546. Returns a boolean indicating whether the specified filehandle is connected
  547. to a tty.
  548. <P></P>
  549. <DT><STRONG><A NAME="item_iscntrl">iscntrl</A></STRONG><BR>
  550. <DD>
  551. This is identical to the C function, except that it can apply to a single
  552. character or to a whole string.
  553. <P></P>
  554. <DT><STRONG><A NAME="item_isdigit">isdigit</A></STRONG><BR>
  555. <DD>
  556. This is identical to the C function, except that it can apply to a single
  557. character or to a whole string.
  558. <P></P>
  559. <DT><STRONG><A NAME="item_isgraph">isgraph</A></STRONG><BR>
  560. <DD>
  561. This is identical to the C function, except that it can apply to a single
  562. character or to a whole string.
  563. <P></P>
  564. <DT><STRONG><A NAME="item_islower">islower</A></STRONG><BR>
  565. <DD>
  566. This is identical to the C function, except that it can apply to a single
  567. character or to a whole string.
  568. <P></P>
  569. <DT><STRONG><A NAME="item_isprint">isprint</A></STRONG><BR>
  570. <DD>
  571. This is identical to the C function, except that it can apply to a single
  572. character or to a whole string.
  573. <P></P>
  574. <DT><STRONG><A NAME="item_ispunct">ispunct</A></STRONG><BR>
  575. <DD>
  576. This is identical to the C function, except that it can apply to a single
  577. character or to a whole string.
  578. <P></P>
  579. <DT><STRONG><A NAME="item_isspace">isspace</A></STRONG><BR>
  580. <DD>
  581. This is identical to the C function, except that it can apply to a single
  582. character or to a whole string.
  583. <P></P>
  584. <DT><STRONG><A NAME="item_isupper">isupper</A></STRONG><BR>
  585. <DD>
  586. This is identical to the C function, except that it can apply to a single
  587. character or to a whole string.
  588. <P></P>
  589. <DT><STRONG><A NAME="item_isxdigit">isxdigit</A></STRONG><BR>
  590. <DD>
  591. This is identical to the C function, except that it can apply to a single
  592. character or to a whole string.
  593. <P></P>
  594. <DT><STRONG><A NAME="item_kill">kill</A></STRONG><BR>
  595. <DD>
  596. This is identical to Perl's builtin <A HREF="#item_kill"><CODE>kill()</CODE></A> function.
  597. <P></P>
  598. <DT><STRONG><A NAME="item_labs">labs</A></STRONG><BR>
  599. <DD>
  600. <A HREF="#item_labs"><CODE>labs()</CODE></A> is C-specific, use abs instead.
  601. <P></P>
  602. <DT><STRONG><A NAME="item_ldexp">ldexp</A></STRONG><BR>
  603. <DD>
  604. This is identical to the C function <A HREF="#item_ldexp"><CODE>ldexp()</CODE></A>.
  605. <P></P>
  606. <DT><STRONG><A NAME="item_ldiv">ldiv</A></STRONG><BR>
  607. <DD>
  608. <A HREF="#item_ldiv"><CODE>ldiv()</CODE></A> is C-specific, use / and int instead.
  609. <P></P>
  610. <DT><STRONG><A NAME="item_link">link</A></STRONG><BR>
  611. <DD>
  612. This is identical to Perl's builtin <A HREF="#item_link"><CODE>link()</CODE></A> function.
  613. <P></P>
  614. <DT><STRONG><A NAME="item_localeconv">localeconv</A></STRONG><BR>
  615. <DD>
  616. Get numeric formatting information.  Returns a reference to a hash
  617. containing the current locale formatting values.
  618. <P>The database for the <STRONG>de</STRONG> (Deutsch or German) locale.</P>
  619. <PRE>
  620.         $loc = POSIX::setlocale( &POSIX::LC_ALL, "de" );
  621.         print "Locale = $loc\n";
  622.         $lconv = POSIX::localeconv();
  623.         print "decimal_point    = ", $lconv->{decimal_point},   "\n";
  624.         print "thousands_sep    = ", $lconv->{thousands_sep},   "\n";
  625.         print "grouping = ", $lconv->{grouping},        "\n";
  626.         print "int_curr_symbol  = ", $lconv->{int_curr_symbol}, "\n";
  627.         print "currency_symbol  = ", $lconv->{currency_symbol}, "\n";
  628.         print "mon_decimal_point = ", $lconv->{mon_decimal_point}, "\n";
  629.         print "mon_thousands_sep = ", $lconv->{mon_thousands_sep}, "\n";
  630.         print "mon_grouping     = ", $lconv->{mon_grouping},    "\n";
  631.         print "positive_sign    = ", $lconv->{positive_sign},   "\n";
  632.         print "negative_sign    = ", $lconv->{negative_sign},   "\n";
  633.         print "int_frac_digits  = ", $lconv->{int_frac_digits}, "\n";
  634.         print "frac_digits      = ", $lconv->{frac_digits},     "\n";
  635.         print "p_cs_precedes    = ", $lconv->{p_cs_precedes},   "\n";
  636.         print "p_sep_by_space   = ", $lconv->{p_sep_by_space},  "\n";
  637.         print "n_cs_precedes    = ", $lconv->{n_cs_precedes},   "\n";
  638.         print "n_sep_by_space   = ", $lconv->{n_sep_by_space},  "\n";
  639.         print "p_sign_posn      = ", $lconv->{p_sign_posn},     "\n";
  640.         print "n_sign_posn      = ", $lconv->{n_sign_posn},     "\n";</PRE>
  641. <P></P>
  642. <DT><STRONG><A NAME="item_localtime">localtime</A></STRONG><BR>
  643. <DD>
  644. This is identical to Perl's builtin <A HREF="#item_localtime"><CODE>localtime()</CODE></A> function.
  645. <P></P>
  646. <DT><STRONG><A NAME="item_log">log</A></STRONG><BR>
  647. <DD>
  648. This is identical to Perl's builtin <A HREF="#item_log"><CODE>log()</CODE></A> function.
  649. <P></P>
  650. <DT><STRONG><A NAME="item_log10">log10</A></STRONG><BR>
  651. <DD>
  652. This is identical to the C function <A HREF="#item_log10"><CODE>log10()</CODE></A>.
  653. <P></P>
  654. <DT><STRONG><A NAME="item_longjmp">longjmp</A></STRONG><BR>
  655. <DD>
  656. <A HREF="#item_longjmp"><CODE>longjmp()</CODE></A> is C-specific: use die instead.
  657. <P></P>
  658. <DT><STRONG><A NAME="item_lseek">lseek</A></STRONG><BR>
  659. <DD>
  660. Move the file's read/write position.  This uses file descriptors such as
  661. those obtained by calling <CODE>POSIX::open</CODE>.
  662. <PRE>
  663.         $fd = POSIX::open( "foo", &POSIX::O_RDONLY );
  664.         $off_t = POSIX::lseek( $fd, 0, &POSIX::SEEK_SET );</PRE>
  665. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  666. <P></P>
  667. <DT><STRONG><A NAME="item_malloc">malloc</A></STRONG><BR>
  668. <DD>
  669. <A HREF="#item_malloc"><CODE>malloc()</CODE></A> is C-specific.
  670. <P></P>
  671. <DT><STRONG><A NAME="item_mblen">mblen</A></STRONG><BR>
  672. <DD>
  673. This is identical to the C function <A HREF="#item_mblen"><CODE>mblen()</CODE></A>.
  674. <P></P>
  675. <DT><STRONG><A NAME="item_mbstowcs">mbstowcs</A></STRONG><BR>
  676. <DD>
  677. This is identical to the C function <A HREF="#item_mbstowcs"><CODE>mbstowcs()</CODE></A>.
  678. <P></P>
  679. <DT><STRONG><A NAME="item_mbtowc">mbtowc</A></STRONG><BR>
  680. <DD>
  681. This is identical to the C function <A HREF="#item_mbtowc"><CODE>mbtowc()</CODE></A>.
  682. <P></P>
  683. <DT><STRONG><A NAME="item_memchr">memchr</A></STRONG><BR>
  684. <DD>
  685. <A HREF="#item_memchr"><CODE>memchr()</CODE></A> is C-specific, use <A HREF="../lib/Pod/perlfunc.html#item_index"><CODE>index()</CODE></A> instead.
  686. <P></P>
  687. <DT><STRONG><A NAME="item_memcmp">memcmp</A></STRONG><BR>
  688. <DD>
  689. <A HREF="#item_memcmp"><CODE>memcmp()</CODE></A> is C-specific, use eq instead.
  690. <P></P>
  691. <DT><STRONG><A NAME="item_memcpy">memcpy</A></STRONG><BR>
  692. <DD>
  693. <A HREF="#item_memcpy"><CODE>memcpy()</CODE></A> is C-specific, use = instead.
  694. <P></P>
  695. <DT><STRONG><A NAME="item_memmove">memmove</A></STRONG><BR>
  696. <DD>
  697. <A HREF="#item_memmove"><CODE>memmove()</CODE></A> is C-specific, use = instead.
  698. <P></P>
  699. <DT><STRONG><A NAME="item_memset">memset</A></STRONG><BR>
  700. <DD>
  701. <A HREF="#item_memset"><CODE>memset()</CODE></A> is C-specific, use x instead.
  702. <P></P>
  703. <DT><STRONG><A NAME="item_mkdir">mkdir</A></STRONG><BR>
  704. <DD>
  705. This is identical to Perl's builtin <A HREF="#item_mkdir"><CODE>mkdir()</CODE></A> function.
  706. <P></P>
  707. <DT><STRONG><A NAME="item_mkfifo">mkfifo</A></STRONG><BR>
  708. <DD>
  709. This is similar to the C function <A HREF="#item_mkfifo"><CODE>mkfifo()</CODE></A>.
  710. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  711. <P></P>
  712. <DT><STRONG><A NAME="item_mktime">mktime</A></STRONG><BR>
  713. <DD>
  714. Convert date/time info to a calendar time.
  715. <P>Synopsis:</P>
  716. <PRE>
  717.         mktime(sec, min, hour, mday, mon, year, wday = 0, yday = 0, isdst = 0)</PRE>
  718. <P>The month (<CODE>mon</CODE>), weekday (<CODE>wday</CODE>), and yearday (<CODE>yday</CODE>) begin at zero.
  719. I.e. January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1.  The
  720. year (<CODE>year</CODE>) is given in years since 1900.  I.e. The year 1995 is 95; the
  721. year 2001 is 101.  Consult your system's <A HREF="#item_mktime"><CODE>mktime()</CODE></A> manpage for details
  722. about these and the other arguments.</P>
  723. <P>Calendar time for December 12, 1995, at 10:30 am.</P>
  724. <PRE>
  725.         $time_t = POSIX::mktime( 0, 30, 10, 12, 11, 95 );
  726.         print "Date = ", POSIX::ctime($time_t);</PRE>
  727. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  728. <P></P>
  729. <DT><STRONG><A NAME="item_modf">modf</A></STRONG><BR>
  730. <DD>
  731. Return the integral and fractional parts of a floating-point number.
  732. <PRE>
  733.         ($fractional, $integral) = POSIX::modf( 3.14 );</PRE>
  734. <P></P>
  735. <DT><STRONG><A NAME="item_nice">nice</A></STRONG><BR>
  736. <DD>
  737. This is similar to the C function <A HREF="#item_nice"><CODE>nice()</CODE></A>.
  738. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  739. <P></P>
  740. <DT><STRONG><A NAME="item_offsetof">offsetof</A></STRONG><BR>
  741. <DD>
  742. <A HREF="#item_offsetof"><CODE>offsetof()</CODE></A> is C-specific.
  743. <P></P>
  744. <DT><STRONG><A NAME="item_open">open</A></STRONG><BR>
  745. <DD>
  746. Open a file for reading for writing.  This returns file descriptors, not
  747. Perl filehandles.  Use <CODE>POSIX::close</CODE> to close the file.
  748. <P>Open a file read-only with mode 0666.</P>
  749. <PRE>
  750.         $fd = POSIX::open( "foo" );</PRE>
  751. <P>Open a file for read and write.</P>
  752. <PRE>
  753.         $fd = POSIX::open( "foo", &POSIX::O_RDWR );</PRE>
  754. <P>Open a file for write, with truncation.</P>
  755. <PRE>
  756.         $fd = POSIX::open( "foo", &POSIX::O_WRONLY | &POSIX::O_TRUNC );</PRE>
  757. <P>Create a new file with mode 0640.  Set up the file for writing.</P>
  758. <PRE>
  759.         $fd = POSIX::open( "foo", &POSIX::O_CREAT | &POSIX::O_WRONLY, 0640 );</PRE>
  760. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  761. <P></P>
  762. <DT><STRONG><A NAME="item_opendir">opendir</A></STRONG><BR>
  763. <DD>
  764. Open a directory for reading.
  765. <PRE>
  766.         $dir = POSIX::opendir( "/tmp" );
  767.         @files = POSIX::readdir( $dir );
  768.         POSIX::closedir( $dir );</PRE>
  769. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  770. <P></P>
  771. <DT><STRONG><A NAME="item_pathconf">pathconf</A></STRONG><BR>
  772. <DD>
  773. Retrieves the value of a configurable limit on a file or directory.
  774. <P>The following will determine the maximum length of the longest allowable
  775. pathname on the filesystem which holds <CODE>/tmp</CODE>.</P>
  776. <PRE>
  777.         $path_max = POSIX::pathconf( "/tmp", &POSIX::_PC_PATH_MAX );</PRE>
  778. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  779. <P></P>
  780. <DT><STRONG><A NAME="item_pause">pause</A></STRONG><BR>
  781. <DD>
  782. This is similar to the C function <A HREF="#item_pause"><CODE>pause()</CODE></A>.
  783. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  784. <P></P>
  785. <DT><STRONG><A NAME="item_perror">perror</A></STRONG><BR>
  786. <DD>
  787. This is identical to the C function <A HREF="#item_perror"><CODE>perror()</CODE></A>.
  788. <P></P>
  789. <DT><STRONG><A NAME="item_pipe">pipe</A></STRONG><BR>
  790. <DD>
  791. Create an interprocess channel.  This returns file descriptors like those
  792. returned by <CODE>POSIX::open</CODE>.
  793. <PRE>
  794.         ($fd0, $fd1) = POSIX::pipe();
  795.         POSIX::write( $fd0, "hello", 5 );
  796.         POSIX::read( $fd1, $buf, 5 );</PRE>
  797. <P></P>
  798. <DT><STRONG><A NAME="item_pow">pow</A></STRONG><BR>
  799. <DD>
  800. Computes $x raised to the power $exponent.
  801. <PRE>
  802.         $ret = POSIX::pow( $x, $exponent );</PRE>
  803. <P></P>
  804. <DT><STRONG><A NAME="item_printf">printf</A></STRONG><BR>
  805. <DD>
  806. Prints the specified arguments to STDOUT.
  807. <P></P>
  808. <DT><STRONG><A NAME="item_putc">putc</A></STRONG><BR>
  809. <DD>
  810. <A HREF="#item_putc"><CODE>putc()</CODE></A> is C-specific--use print instead.
  811. <P></P>
  812. <DT><STRONG><A NAME="item_putchar">putchar</A></STRONG><BR>
  813. <DD>
  814. <A HREF="#item_putchar"><CODE>putchar()</CODE></A> is C-specific--use print instead.
  815. <P></P>
  816. <DT><STRONG><A NAME="item_puts">puts</A></STRONG><BR>
  817. <DD>
  818. <A HREF="#item_puts"><CODE>puts()</CODE></A> is C-specific--use print instead.
  819. <P></P>
  820. <DT><STRONG><A NAME="item_qsort">qsort</A></STRONG><BR>
  821. <DD>
  822. <A HREF="#item_qsort"><CODE>qsort()</CODE></A> is C-specific, use sort instead.
  823. <P></P>
  824. <DT><STRONG><A NAME="item_raise">raise</A></STRONG><BR>
  825. <DD>
  826. Sends the specified signal to the current process.
  827. <P></P>
  828. <DT><STRONG><A NAME="item_rand">rand</A></STRONG><BR>
  829. <DD>
  830. <A HREF="#item_rand"><CODE>rand()</CODE></A> is non-portable, use Perl's rand instead.
  831. <P></P>
  832. <DT><STRONG><A NAME="item_read">read</A></STRONG><BR>
  833. <DD>
  834. Read from a file.  This uses file descriptors such as those obtained by
  835. calling <CODE>POSIX::open</CODE>.  If the buffer <CODE>$buf</CODE> is not large enough for the
  836. read then Perl will extend it to make room for the request.
  837. <PRE>
  838.         $fd = POSIX::open( "foo", &POSIX::O_RDONLY );
  839.         $bytes = POSIX::read( $fd, $buf, 3 );</PRE>
  840. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  841. <P></P>
  842. <DT><STRONG><A NAME="item_readdir">readdir</A></STRONG><BR>
  843. <DD>
  844. This is identical to Perl's builtin <A HREF="#item_readdir"><CODE>readdir()</CODE></A> function.
  845. <P></P>
  846. <DT><STRONG><A NAME="item_realloc">realloc</A></STRONG><BR>
  847. <DD>
  848. <A HREF="#item_realloc"><CODE>realloc()</CODE></A> is C-specific.
  849. <P></P>
  850. <DT><STRONG><A NAME="item_remove">remove</A></STRONG><BR>
  851. <DD>
  852. This is identical to Perl's builtin <A HREF="#item_unlink"><CODE>unlink()</CODE></A> function.
  853. <P></P>
  854. <DT><STRONG><A NAME="item_rename">rename</A></STRONG><BR>
  855. <DD>
  856. This is identical to Perl's builtin <A HREF="#item_rename"><CODE>rename()</CODE></A> function.
  857. <P></P>
  858. <DT><STRONG><A NAME="item_rewind">rewind</A></STRONG><BR>
  859. <DD>
  860. Seeks to the beginning of the file.
  861. <P></P>
  862. <DT><STRONG><A NAME="item_rewinddir">rewinddir</A></STRONG><BR>
  863. <DD>
  864. This is identical to Perl's builtin <A HREF="#item_rewinddir"><CODE>rewinddir()</CODE></A> function.
  865. <P></P>
  866. <DT><STRONG><A NAME="item_rmdir">rmdir</A></STRONG><BR>
  867. <DD>
  868. This is identical to Perl's builtin <A HREF="#item_rmdir"><CODE>rmdir()</CODE></A> function.
  869. <P></P>
  870. <DT><STRONG><A NAME="item_scanf">scanf</A></STRONG><BR>
  871. <DD>
  872. <A HREF="#item_scanf"><CODE>scanf()</CODE></A> is C-specific--use <> and regular expressions instead.
  873. <P></P>
  874. <DT><STRONG><A NAME="item_setgid">setgid</A></STRONG><BR>
  875. <DD>
  876. Sets the real group id for this process.
  877. <P></P>
  878. <DT><STRONG><A NAME="item_setjmp">setjmp</A></STRONG><BR>
  879. <DD>
  880. <A HREF="#item_setjmp"><CODE>setjmp()</CODE></A> is C-specific: use eval {} instead.
  881. <P></P>
  882. <DT><STRONG><A NAME="item_setlocale">setlocale</A></STRONG><BR>
  883. <DD>
  884. Modifies and queries program's locale.  The following examples assume
  885. <PRE>
  886.         use POSIX qw(setlocale LC_ALL LC_CTYPE);</PRE>
  887. <P>has been issued.</P>
  888. <P>The following will set the traditional UNIX system locale behavior
  889. (the second argument <CODE>"C"</CODE>).</P>
  890. <PRE>
  891.         $loc = setlocale( LC_ALL, "C" );</PRE>
  892. <P>The following will query the current LC_CTYPE category.  (No second
  893. argument means 'query'.)</P>
  894. <PRE>
  895.         $loc = setlocale( LC_CTYPE );</PRE>
  896. <P>The following will set the LC_CTYPE behaviour according to the locale
  897. environment variables (the second argument <CODE>""</CODE>).
  898. Please see your systems <A HREF="#item_setlocale">setlocale(3)</A> documentation for the locale
  899. environment variables' meaning or consult <A HREF="../lib/Pod/perllocale.html">the perllocale manpage</A>.</P>
  900. <PRE>
  901.         $loc = setlocale( LC_CTYPE, "" );</PRE>
  902. <P>The following will set the LC_COLLATE behaviour to Argentinian
  903. Spanish. <STRONG>NOTE</STRONG>: The naming and availability of locales depends on
  904. your operating system. Please consult <A HREF="../lib/Pod/perllocale.html">the perllocale manpage</A> for how to find
  905. out which locales are available in your system.</P>
  906. <PRE>
  907.         $loc = setlocale( LC_ALL, "es_AR.ISO8859-1" );</PRE>
  908. <P></P>
  909. <DT><STRONG><A NAME="item_setpgid">setpgid</A></STRONG><BR>
  910. <DD>
  911. This is similar to the C function <A HREF="#item_setpgid"><CODE>setpgid()</CODE></A>.
  912. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  913. <P></P>
  914. <DT><STRONG><A NAME="item_setsid">setsid</A></STRONG><BR>
  915. <DD>
  916. This is identical to the C function <A HREF="#item_setsid"><CODE>setsid()</CODE></A>.
  917. <P></P>
  918. <DT><STRONG><A NAME="item_setuid">setuid</A></STRONG><BR>
  919. <DD>
  920. Sets the real user id for this process.
  921. <P></P>
  922. <DT><STRONG><A NAME="item_sigaction">sigaction</A></STRONG><BR>
  923. <DD>
  924. Detailed signal management.  This uses <CODE>POSIX::SigAction</CODE> objects for the
  925. <CODE>action</CODE> and <CODE>oldaction</CODE> arguments.  Consult your system's <A HREF="#item_sigaction"><CODE>sigaction</CODE></A>
  926. manpage for details.
  927. <P>Synopsis:</P>
  928. <PRE>
  929.         sigaction(sig, action, oldaction = 0)</PRE>
  930. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  931. <P></P>
  932. <DT><STRONG><A NAME="item_siglongjmp">siglongjmp</A></STRONG><BR>
  933. <DD>
  934. <A HREF="#item_siglongjmp"><CODE>siglongjmp()</CODE></A> is C-specific: use die instead.
  935. <P></P>
  936. <DT><STRONG><A NAME="item_sigpending">sigpending</A></STRONG><BR>
  937. <DD>
  938. Examine signals that are blocked and pending.  This uses <CODE>POSIX::SigSet</CODE>
  939. objects for the <CODE>sigset</CODE> argument.  Consult your system's <A HREF="#item_sigpending"><CODE>sigpending</CODE></A>
  940. manpage for details.
  941. <P>Synopsis:</P>
  942. <PRE>
  943.         sigpending(sigset)</PRE>
  944. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  945. <P></P>
  946. <DT><STRONG><A NAME="item_sigprocmask">sigprocmask</A></STRONG><BR>
  947. <DD>
  948. Change and/or examine calling process's signal mask.  This uses
  949. <CODE>POSIX::SigSet</CODE> objects for the <CODE>sigset</CODE> and <CODE>oldsigset</CODE> arguments.
  950. Consult your system's <A HREF="#item_sigprocmask"><CODE>sigprocmask</CODE></A> manpage for details.
  951. <P>Synopsis:</P>
  952. <PRE>
  953.         sigprocmask(how, sigset, oldsigset = 0)</PRE>
  954. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  955. <P></P>
  956. <DT><STRONG><A NAME="item_sigsetjmp">sigsetjmp</A></STRONG><BR>
  957. <DD>
  958. <A HREF="#item_sigsetjmp"><CODE>sigsetjmp()</CODE></A> is C-specific: use eval {} instead.
  959. <P></P>
  960. <DT><STRONG><A NAME="item_sigsuspend">sigsuspend</A></STRONG><BR>
  961. <DD>
  962. Install a signal mask and suspend process until signal arrives.  This uses
  963. <CODE>POSIX::SigSet</CODE> objects for the <CODE>signal_mask</CODE> argument.  Consult your
  964. system's <A HREF="#item_sigsuspend"><CODE>sigsuspend</CODE></A> manpage for details.
  965. <P>Synopsis:</P>
  966. <PRE>
  967.         sigsuspend(signal_mask)</PRE>
  968. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  969. <P></P>
  970. <DT><STRONG><A NAME="item_sin">sin</A></STRONG><BR>
  971. <DD>
  972. This is identical to Perl's builtin <A HREF="#item_sin"><CODE>sin()</CODE></A> function.
  973. <P></P>
  974. <DT><STRONG><A NAME="item_sinh">sinh</A></STRONG><BR>
  975. <DD>
  976. This is identical to the C function <A HREF="#item_sinh"><CODE>sinh()</CODE></A>.
  977. <P></P>
  978. <DT><STRONG><A NAME="item_sleep">sleep</A></STRONG><BR>
  979. <DD>
  980. This is identical to Perl's builtin <A HREF="#item_sleep"><CODE>sleep()</CODE></A> function.
  981. <P></P>
  982. <DT><STRONG><A NAME="item_sprintf">sprintf</A></STRONG><BR>
  983. <DD>
  984. This is identical to Perl's builtin <A HREF="#item_sprintf"><CODE>sprintf()</CODE></A> function.
  985. <P></P>
  986. <DT><STRONG><A NAME="item_sqrt">sqrt</A></STRONG><BR>
  987. <DD>
  988. This is identical to Perl's builtin <A HREF="#item_sqrt"><CODE>sqrt()</CODE></A> function.
  989. <P></P>
  990. <DT><STRONG><A NAME="item_srand">srand</A></STRONG><BR>
  991. <DD>
  992. srand().
  993. <P></P>
  994. <DT><STRONG><A NAME="item_sscanf">sscanf</A></STRONG><BR>
  995. <DD>
  996. <A HREF="#item_sscanf"><CODE>sscanf()</CODE></A> is C-specific--use regular expressions instead.
  997. <P></P>
  998. <DT><STRONG><A NAME="item_stat">stat</A></STRONG><BR>
  999. <DD>
  1000. This is identical to Perl's builtin <A HREF="#item_stat"><CODE>stat()</CODE></A> function.
  1001. <P></P>
  1002. <DT><STRONG><A NAME="item_strcat">strcat</A></STRONG><BR>
  1003. <DD>
  1004. <A HREF="#item_strcat"><CODE>strcat()</CODE></A> is C-specific, use .= instead.
  1005. <P></P>
  1006. <DT><STRONG><A NAME="item_strchr">strchr</A></STRONG><BR>
  1007. <DD>
  1008. <A HREF="#item_strchr"><CODE>strchr()</CODE></A> is C-specific, use <A HREF="../lib/Pod/perlfunc.html#item_index"><CODE>index()</CODE></A> instead.
  1009. <P></P>
  1010. <DT><STRONG><A NAME="item_strcmp">strcmp</A></STRONG><BR>
  1011. <DD>
  1012. <A HREF="#item_strcmp"><CODE>strcmp()</CODE></A> is C-specific, use eq instead.
  1013. <P></P>
  1014. <DT><STRONG><A NAME="item_strcoll">strcoll</A></STRONG><BR>
  1015. <DD>
  1016. This is identical to the C function <A HREF="#item_strcoll"><CODE>strcoll()</CODE></A>.
  1017. <P></P>
  1018. <DT><STRONG><A NAME="item_strcpy">strcpy</A></STRONG><BR>
  1019. <DD>
  1020. <A HREF="#item_strcpy"><CODE>strcpy()</CODE></A> is C-specific, use = instead.
  1021. <P></P>
  1022. <DT><STRONG><A NAME="item_strcspn">strcspn</A></STRONG><BR>
  1023. <DD>
  1024. <A HREF="#item_strcspn"><CODE>strcspn()</CODE></A> is C-specific, use regular expressions instead.
  1025. <P></P>
  1026. <DT><STRONG><A NAME="item_strerror">strerror</A></STRONG><BR>
  1027. <DD>
  1028. Returns the error string for the specified errno.
  1029. <P></P>
  1030. <DT><STRONG><A NAME="item_strftime">strftime</A></STRONG><BR>
  1031. <DD>
  1032. Convert date and time information to string.  Returns the string.
  1033. <P>Synopsis:</P>
  1034. <PRE>
  1035.         strftime(fmt, sec, min, hour, mday, mon, year, wday = -1, yday = -1, isdst = -1)</PRE>
  1036. <P>The month (<CODE>mon</CODE>), weekday (<CODE>wday</CODE>), and yearday (<CODE>yday</CODE>) begin at zero.
  1037. I.e. January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1.  The
  1038. year (<CODE>year</CODE>) is given in years since 1900.  I.e., the year 1995 is 95; the
  1039. year 2001 is 101.  Consult your system's <A HREF="#item_strftime"><CODE>strftime()</CODE></A> manpage for details
  1040. about these and the other arguments.
  1041. If you want your code to be portable, your format (<CODE>fmt</CODE>) argument
  1042. should use only the conversion specifiers defined by the ANSI C
  1043. standard.  These are <CODE>aAbBcdHIjmMpSUwWxXyYZ%</CODE>.
  1044. The given arguments are made consistent
  1045. as though by calling <A HREF="#item_mktime"><CODE>mktime()</CODE></A> before calling your system's
  1046. <A HREF="#item_strftime"><CODE>strftime()</CODE></A> function, except that the <CODE>isdst</CODE> value is not affected.</P>
  1047. <P>The string for Tuesday, December 12, 1995.</P>
  1048. <PRE>
  1049.         $str = POSIX::strftime( "%A, %B %d, %Y", 0, 0, 0, 12, 11, 95, 2 );
  1050.         print "$str\n";</PRE>
  1051. <P></P>
  1052. <DT><STRONG><A NAME="item_strlen">strlen</A></STRONG><BR>
  1053. <DD>
  1054. <A HREF="#item_strlen"><CODE>strlen()</CODE></A> is C-specific, use length instead.
  1055. <P></P>
  1056. <DT><STRONG><A NAME="item_strncat">strncat</A></STRONG><BR>
  1057. <DD>
  1058. <A HREF="#item_strncat"><CODE>strncat()</CODE></A> is C-specific, use .= instead.
  1059. <P></P>
  1060. <DT><STRONG><A NAME="item_strncmp">strncmp</A></STRONG><BR>
  1061. <DD>
  1062. <A HREF="#item_strncmp"><CODE>strncmp()</CODE></A> is C-specific, use eq instead.
  1063. <P></P>
  1064. <DT><STRONG><A NAME="item_strncpy">strncpy</A></STRONG><BR>
  1065. <DD>
  1066. <A HREF="#item_strncpy"><CODE>strncpy()</CODE></A> is C-specific, use = instead.
  1067. <P></P>
  1068. <DT><STRONG><A NAME="item_stroul">stroul</A></STRONG><BR>
  1069. <DD>
  1070. <A HREF="#item_stroul"><CODE>stroul()</CODE></A> is C-specific.
  1071. <P></P>
  1072. <DT><STRONG><A NAME="item_strpbrk">strpbrk</A></STRONG><BR>
  1073. <DD>
  1074. <A HREF="#item_strpbrk"><CODE>strpbrk()</CODE></A> is C-specific.
  1075. <P></P>
  1076. <DT><STRONG><A NAME="item_strrchr">strrchr</A></STRONG><BR>
  1077. <DD>
  1078. <A HREF="#item_strrchr"><CODE>strrchr()</CODE></A> is C-specific, use <A HREF="../lib/Pod/perlfunc.html#item_rindex"><CODE>rindex()</CODE></A> instead.
  1079. <P></P>
  1080. <DT><STRONG><A NAME="item_strspn">strspn</A></STRONG><BR>
  1081. <DD>
  1082. <A HREF="#item_strspn"><CODE>strspn()</CODE></A> is C-specific.
  1083. <P></P>
  1084. <DT><STRONG><A NAME="item_strstr">strstr</A></STRONG><BR>
  1085. <DD>
  1086. This is identical to Perl's builtin <A HREF="../lib/Pod/perlfunc.html#item_index"><CODE>index()</CODE></A> function.
  1087. <P></P>
  1088. <DT><STRONG><A NAME="item_strtod">strtod</A></STRONG><BR>
  1089. <DD>
  1090. String to double translation. Returns the parsed number and the number
  1091. of characters in the unparsed portion of the string.  Truly
  1092. POSIX-compliant systems set $! ($ERRNO) to indicate a translation
  1093. error, so clear $! before calling strtod.  However, non-POSIX systems
  1094. may not check for overflow, and therefore will never set $!.
  1095. <P>strtod should respect any POSIX <EM>setlocale()</EM> settings.</P>
  1096. <P>To parse a string $str as a floating point number use</P>
  1097. <PRE>
  1098.     $! = 0;
  1099.     ($num, $n_unparsed) = POSIX::strtod($str);</PRE>
  1100. <P>The second returned item and $! can be used to check for valid input:</P>
  1101. <PRE>
  1102.     if (($str eq '') || ($n_unparsed != 0) || !$!) {
  1103.         die "Non-numeric input $str" . $! ? ": $!\n" : "\n";
  1104.     }</PRE>
  1105. <P>When called in a scalar context strtod returns the parsed number.</P>
  1106. <P></P>
  1107. <DT><STRONG><A NAME="item_strtok">strtok</A></STRONG><BR>
  1108. <DD>
  1109. <A HREF="#item_strtok"><CODE>strtok()</CODE></A> is C-specific.
  1110. <P></P>
  1111. <DT><STRONG><A NAME="item_strtol">strtol</A></STRONG><BR>
  1112. <DD>
  1113. String to (long) integer translation.  Returns the parsed number and
  1114. the number of characters in the unparsed portion of the string.  Truly
  1115. POSIX-compliant systems set $! ($ERRNO) to indicate a translation
  1116. error, so clear $! before calling strtol.  However, non-POSIX systems
  1117. may not check for overflow, and therefore will never set $!.
  1118. <P>strtol should respect any POSIX <EM>setlocale()</EM> settings.</P>
  1119. <P>To parse a string $str as a number in some base $base use</P>
  1120. <PRE>
  1121.     $! = 0;
  1122.     ($num, $n_unparsed) = POSIX::strtol($str, $base);</PRE>
  1123. <P>The base should be zero or between 2 and 36, inclusive.  When the base
  1124. is zero or omitted strtol will use the string itself to determine the
  1125. base: a leading ``0x'' or ``0X'' means hexadecimal; a leading ``0'' means
  1126. octal; any other leading characters mean decimal.  Thus, ``1234'' is
  1127. parsed as a decimal number, ``01234'' as an octal number, and ``0x1234''
  1128. as a hexadecimal number.</P>
  1129. <P>The second returned item and $! can be used to check for valid input:</P>
  1130. <PRE>
  1131.     if (($str eq '') || ($n_unparsed != 0) || !$!) {
  1132.         die "Non-numeric input $str" . $! ? ": $!\n" : "\n";
  1133.     }</PRE>
  1134. <P>When called in a scalar context strtol returns the parsed number.</P>
  1135. <P></P>
  1136. <DT><STRONG><A NAME="item_strtoul">strtoul</A></STRONG><BR>
  1137. <DD>
  1138. String to unsigned (long) integer translation.  strtoul is identical
  1139. to strtol except that strtoul only parses unsigned integers.  See
  1140. <EM>strtol</EM> for details.
  1141. <P>Note: Some vendors supply strtod and strtol but not strtoul.
  1142. Other vendors that do suply strtoul parse ``-1'' as a valid value.</P>
  1143. <P></P>
  1144. <DT><STRONG><A NAME="item_strxfrm">strxfrm</A></STRONG><BR>
  1145. <DD>
  1146. String transformation.  Returns the transformed string.
  1147. <PRE>
  1148.         $dst = POSIX::strxfrm( $src );</PRE>
  1149. <P></P>
  1150. <DT><STRONG><A NAME="item_sysconf">sysconf</A></STRONG><BR>
  1151. <DD>
  1152. Retrieves values of system configurable variables.
  1153. <P>The following will get the machine's clock speed.</P>
  1154. <PRE>
  1155.         $clock_ticks = POSIX::sysconf( &POSIX::_SC_CLK_TCK );</PRE>
  1156. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1157. <P></P>
  1158. <DT><STRONG><A NAME="item_system">system</A></STRONG><BR>
  1159. <DD>
  1160. This is identical to Perl's builtin <A HREF="#item_system"><CODE>system()</CODE></A> function.
  1161. <P></P>
  1162. <DT><STRONG><A NAME="item_tan">tan</A></STRONG><BR>
  1163. <DD>
  1164. This is identical to the C function <A HREF="#item_tan"><CODE>tan()</CODE></A>.
  1165. <P></P>
  1166. <DT><STRONG><A NAME="item_tanh">tanh</A></STRONG><BR>
  1167. <DD>
  1168. This is identical to the C function <A HREF="#item_tanh"><CODE>tanh()</CODE></A>.
  1169. <P></P>
  1170. <DT><STRONG><A NAME="item_tcdrain">tcdrain</A></STRONG><BR>
  1171. <DD>
  1172. This is similar to the C function <A HREF="#item_tcdrain"><CODE>tcdrain()</CODE></A>.
  1173. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1174. <P></P>
  1175. <DT><STRONG><A NAME="item_tcflow">tcflow</A></STRONG><BR>
  1176. <DD>
  1177. This is similar to the C function <A HREF="#item_tcflow"><CODE>tcflow()</CODE></A>.
  1178. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1179. <P></P>
  1180. <DT><STRONG><A NAME="item_tcflush">tcflush</A></STRONG><BR>
  1181. <DD>
  1182. This is similar to the C function <A HREF="#item_tcflush"><CODE>tcflush()</CODE></A>.
  1183. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1184. <P></P>
  1185. <DT><STRONG><A NAME="item_tcgetpgrp">tcgetpgrp</A></STRONG><BR>
  1186. <DD>
  1187. This is identical to the C function <A HREF="#item_tcgetpgrp"><CODE>tcgetpgrp()</CODE></A>.
  1188. <P></P>
  1189. <DT><STRONG><A NAME="item_tcsendbreak">tcsendbreak</A></STRONG><BR>
  1190. <DD>
  1191. This is similar to the C function <A HREF="#item_tcsendbreak"><CODE>tcsendbreak()</CODE></A>.
  1192. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1193. <P></P>
  1194. <DT><STRONG><A NAME="item_tcsetpgrp">tcsetpgrp</A></STRONG><BR>
  1195. <DD>
  1196. This is similar to the C function <A HREF="#item_tcsetpgrp"><CODE>tcsetpgrp()</CODE></A>.
  1197. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1198. <P></P>
  1199. <DT><STRONG><A NAME="item_time">time</A></STRONG><BR>
  1200. <DD>
  1201. This is identical to Perl's builtin <A HREF="#item_time"><CODE>time()</CODE></A> function.
  1202. <P></P>
  1203. <DT><STRONG><A NAME="item_times">times</A></STRONG><BR>
  1204. <DD>
  1205. The <A HREF="#item_times"><CODE>times()</CODE></A> function returns elapsed realtime since some point in the past
  1206. (such as system startup), user and system times for this process, and user
  1207. and system times used by child processes.  All times are returned in clock
  1208. ticks.
  1209. <PRE>
  1210.     ($realtime, $user, $system, $cuser, $csystem) = POSIX::times();</PRE>
  1211. <P>Note: Perl's builtin <A HREF="#item_times"><CODE>times()</CODE></A> function returns four values, measured in
  1212. seconds.</P>
  1213. <P></P>
  1214. <DT><STRONG><A NAME="item_tmpfile">tmpfile</A></STRONG><BR>
  1215. <DD>
  1216. Use method <CODE>IO::File::new_tmpfile()</CODE> instead.
  1217. <P></P>
  1218. <DT><STRONG><A NAME="item_tmpnam">tmpnam</A></STRONG><BR>
  1219. <DD>
  1220. Returns a name for a temporary file.
  1221. <PRE>
  1222.         $tmpfile = POSIX::tmpnam();</PRE>
  1223. <P></P>
  1224. <DT><STRONG><A NAME="item_tolower">tolower</A></STRONG><BR>
  1225. <DD>
  1226. This is identical to Perl's builtin <A HREF="../lib/Pod/perlfunc.html#item_lc"><CODE>lc()</CODE></A> function.
  1227. <P></P>
  1228. <DT><STRONG><A NAME="item_toupper">toupper</A></STRONG><BR>
  1229. <DD>
  1230. This is identical to Perl's builtin <A HREF="../lib/Pod/perlfunc.html#item_uc"><CODE>uc()</CODE></A> function.
  1231. <P></P>
  1232. <DT><STRONG><A NAME="item_ttyname">ttyname</A></STRONG><BR>
  1233. <DD>
  1234. This is identical to the C function <A HREF="#item_ttyname"><CODE>ttyname()</CODE></A>.
  1235. <P></P>
  1236. <DT><STRONG><A NAME="item_tzname">tzname</A></STRONG><BR>
  1237. <DD>
  1238. Retrieves the time conversion information from the <A HREF="#item_tzname"><CODE>tzname</CODE></A> variable.
  1239. <PRE>
  1240.         POSIX::tzset();
  1241.         ($std, $dst) = POSIX::tzname();</PRE>
  1242. <P></P>
  1243. <DT><STRONG><A NAME="item_tzset">tzset</A></STRONG><BR>
  1244. <DD>
  1245. This is identical to the C function <A HREF="#item_tzset"><CODE>tzset()</CODE></A>.
  1246. <P></P>
  1247. <DT><STRONG><A NAME="item_umask">umask</A></STRONG><BR>
  1248. <DD>
  1249. This is identical to Perl's builtin <A HREF="#item_umask"><CODE>umask()</CODE></A> function.
  1250. <P></P>
  1251. <DT><STRONG><A NAME="item_uname">uname</A></STRONG><BR>
  1252. <DD>
  1253. Get name of current operating system.
  1254. <PRE>
  1255.         ($sysname, $nodename, $release, $version, $machine ) = POSIX::uname();</PRE>
  1256. <P></P>
  1257. <DT><STRONG><A NAME="item_ungetc">ungetc</A></STRONG><BR>
  1258. <DD>
  1259. Use method <A HREF="#item_ungetc"><CODE>IO::Handle::ungetc()</CODE></A> instead.
  1260. <P></P>
  1261. <DT><STRONG><A NAME="item_unlink">unlink</A></STRONG><BR>
  1262. <DD>
  1263. This is identical to Perl's builtin <A HREF="#item_unlink"><CODE>unlink()</CODE></A> function.
  1264. <P></P>
  1265. <DT><STRONG><A NAME="item_utime">utime</A></STRONG><BR>
  1266. <DD>
  1267. This is identical to Perl's builtin <A HREF="#item_utime"><CODE>utime()</CODE></A> function.
  1268. <P></P>
  1269. <DT><STRONG><A NAME="item_vfprintf">vfprintf</A></STRONG><BR>
  1270. <DD>
  1271. <A HREF="#item_vfprintf"><CODE>vfprintf()</CODE></A> is C-specific.
  1272. <P></P>
  1273. <DT><STRONG><A NAME="item_vprintf">vprintf</A></STRONG><BR>
  1274. <DD>
  1275. <A HREF="#item_vprintf"><CODE>vprintf()</CODE></A> is C-specific.
  1276. <P></P>
  1277. <DT><STRONG><A NAME="item_vsprintf">vsprintf</A></STRONG><BR>
  1278. <DD>
  1279. <A HREF="#item_vsprintf"><CODE>vsprintf()</CODE></A> is C-specific.
  1280. <P></P>
  1281. <DT><STRONG><A NAME="item_wait">wait</A></STRONG><BR>
  1282. <DD>
  1283. This is identical to Perl's builtin <A HREF="#item_wait"><CODE>wait()</CODE></A> function.
  1284. <P></P>
  1285. <DT><STRONG><A NAME="item_waitpid">waitpid</A></STRONG><BR>
  1286. <DD>
  1287. Wait for a child process to change state.  This is identical to Perl's
  1288. builtin <A HREF="#item_waitpid"><CODE>waitpid()</CODE></A> function.
  1289. <PRE>
  1290.         $pid = POSIX::waitpid( -1, &POSIX::WNOHANG );
  1291.         print "status = ", ($? / 256), "\n";</PRE>
  1292. <P></P>
  1293. <DT><STRONG><A NAME="item_wcstombs">wcstombs</A></STRONG><BR>
  1294. <DD>
  1295. This is identical to the C function <A HREF="#item_wcstombs"><CODE>wcstombs()</CODE></A>.
  1296. <P></P>
  1297. <DT><STRONG><A NAME="item_wctomb">wctomb</A></STRONG><BR>
  1298. <DD>
  1299. This is identical to the C function <A HREF="#item_wctomb"><CODE>wctomb()</CODE></A>.
  1300. <P></P>
  1301. <DT><STRONG><A NAME="item_write">write</A></STRONG><BR>
  1302. <DD>
  1303. Write to a file.  This uses file descriptors such as those obtained by
  1304. calling <CODE>POSIX::open</CODE>.
  1305. <PRE>
  1306.         $fd = POSIX::open( "foo", &POSIX::O_WRONLY );
  1307.         $buf = "hello";
  1308.         $bytes = POSIX::write( $b, $buf, 5 );</PRE>
  1309. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1310. <P></P></DL>
  1311. <P>
  1312. <HR>
  1313. <H1><A NAME="classes">CLASSES</A></H1>
  1314. <P>
  1315. <H2><A NAME="posix::sigaction">POSIX::SigAction</A></H2>
  1316. <DL>
  1317. <DT><STRONG><A NAME="item_new">new</A></STRONG><BR>
  1318. <DD>
  1319. Creates a new <CODE>POSIX::SigAction</CODE> object which corresponds to the C
  1320. <CODE>struct sigaction</CODE>.  This object will be destroyed automatically when it is
  1321. no longer needed.  The first parameter is the fully-qualified name of a sub
  1322. which is a signal-handler.  The second parameter is a <CODE>POSIX::SigSet</CODE>
  1323. object, it defaults to the empty set.  The third parameter contains the
  1324. <CODE>sa_flags</CODE>, it defaults to 0.
  1325. <PRE>
  1326.         $sigset = POSIX::SigSet->new(SIGINT, SIGQUIT);
  1327.         $sigaction = POSIX::SigAction->new( 'main::handler', $sigset, &POSIX::SA_NOCLDSTOP );</PRE>
  1328. <P>This <CODE>POSIX::SigAction</CODE> object should be used with the <A HREF="#item_sigaction"><CODE>POSIX::sigaction()</CODE></A>
  1329. function.</P>
  1330. <P></P></DL>
  1331. <P>
  1332. <H2><A NAME="posix::sigset">POSIX::SigSet</A></H2>
  1333. <DL>
  1334. <DT><STRONG>new</STRONG><BR>
  1335. <DD>
  1336. Create a new SigSet object.  This object will be destroyed automatically
  1337. when it is no longer needed.  Arguments may be supplied to initialize the
  1338. set.
  1339. <P>Create an empty set.</P>
  1340. <PRE>
  1341.         $sigset = POSIX::SigSet->new;</PRE>
  1342. <P>Create a set with SIGUSR1.</P>
  1343. <PRE>
  1344.         $sigset = POSIX::SigSet->new( &POSIX::SIGUSR1 );</PRE>
  1345. <P></P>
  1346. <DT><STRONG><A NAME="item_addset">addset</A></STRONG><BR>
  1347. <DD>
  1348. Add a signal to a SigSet object.
  1349. <PRE>
  1350.         $sigset->addset( &POSIX::SIGUSR2 );</PRE>
  1351. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1352. <P></P>
  1353. <DT><STRONG><A NAME="item_delset">delset</A></STRONG><BR>
  1354. <DD>
  1355. Remove a signal from the SigSet object.
  1356. <PRE>
  1357.         $sigset->delset( &POSIX::SIGUSR2 );</PRE>
  1358. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1359. <P></P>
  1360. <DT><STRONG><A NAME="item_emptyset">emptyset</A></STRONG><BR>
  1361. <DD>
  1362. Initialize the SigSet object to be empty.
  1363. <PRE>
  1364.         $sigset->emptyset();</PRE>
  1365. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1366. <P></P>
  1367. <DT><STRONG><A NAME="item_fillset">fillset</A></STRONG><BR>
  1368. <DD>
  1369. Initialize the SigSet object to include all signals.
  1370. <PRE>
  1371.         $sigset->fillset();</PRE>
  1372. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1373. <P></P>
  1374. <DT><STRONG><A NAME="item_ismember">ismember</A></STRONG><BR>
  1375. <DD>
  1376. Tests the SigSet object to see if it contains a specific signal.
  1377. <PRE>
  1378.         if( $sigset->ismember( &POSIX::SIGUSR1 ) ){
  1379.                 print "contains SIGUSR1\n";
  1380.         }</PRE>
  1381. <P></P></DL>
  1382. <P>
  1383. <H2><A NAME="posix::termios">POSIX::Termios</A></H2>
  1384. <DL>
  1385. <DT><STRONG>new</STRONG><BR>
  1386. <DD>
  1387. Create a new Termios object.  This object will be destroyed automatically
  1388. when it is no longer needed.  A Termios object corresponds to the termios
  1389. C struct.  <A HREF="#item_new"><CODE>new()</CODE></A> mallocs a new one, <A HREF="#item_getattr"><CODE>getattr()</CODE></A> fills it from a file descriptor,
  1390. and <A HREF="#item_setattr"><CODE>setattr()</CODE></A> sets a file descriptor's parameters to match Termios' contents.
  1391. <PRE>
  1392.         $termios = POSIX::Termios->new;</PRE>
  1393. <P></P>
  1394. <DT><STRONG><A NAME="item_getattr">getattr</A></STRONG><BR>
  1395. <DD>
  1396. Get terminal control attributes.
  1397. <P>Obtain the attributes for stdin.</P>
  1398. <PRE>
  1399.         $termios->getattr()</PRE>
  1400. <P>Obtain the attributes for stdout.</P>
  1401. <PRE>
  1402.         $termios->getattr( 1 )</PRE>
  1403. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1404. <P></P>
  1405. <DT><STRONG><A NAME="item_getcc">getcc</A></STRONG><BR>
  1406. <DD>
  1407. Retrieve a value from the c_cc field of a termios object.  The c_cc field is
  1408. an array so an index must be specified.
  1409. <PRE>
  1410.         $c_cc[1] = $termios->getcc(1);</PRE>
  1411. <P></P>
  1412. <DT><STRONG><A NAME="item_getcflag">getcflag</A></STRONG><BR>
  1413. <DD>
  1414. Retrieve the c_cflag field of a termios object.
  1415. <PRE>
  1416.         $c_cflag = $termios->getcflag;</PRE>
  1417. <P></P>
  1418. <DT><STRONG><A NAME="item_getiflag">getiflag</A></STRONG><BR>
  1419. <DD>
  1420. Retrieve the c_iflag field of a termios object.
  1421. <PRE>
  1422.         $c_iflag = $termios->getiflag;</PRE>
  1423. <P></P>
  1424. <DT><STRONG><A NAME="item_getispeed">getispeed</A></STRONG><BR>
  1425. <DD>
  1426. Retrieve the input baud rate.
  1427. <PRE>
  1428.         $ispeed = $termios->getispeed;</PRE>
  1429. <P></P>
  1430. <DT><STRONG><A NAME="item_getlflag">getlflag</A></STRONG><BR>
  1431. <DD>
  1432. Retrieve the c_lflag field of a termios object.
  1433. <PRE>
  1434.         $c_lflag = $termios->getlflag;</PRE>
  1435. <P></P>
  1436. <DT><STRONG><A NAME="item_getoflag">getoflag</A></STRONG><BR>
  1437. <DD>
  1438. Retrieve the c_oflag field of a termios object.
  1439. <PRE>
  1440.         $c_oflag = $termios->getoflag;</PRE>
  1441. <P></P>
  1442. <DT><STRONG><A NAME="item_getospeed">getospeed</A></STRONG><BR>
  1443. <DD>
  1444. Retrieve the output baud rate.
  1445. <PRE>
  1446.         $ospeed = $termios->getospeed;</PRE>
  1447. <P></P>
  1448. <DT><STRONG><A NAME="item_setattr">setattr</A></STRONG><BR>
  1449. <DD>
  1450. Set terminal control attributes.
  1451. <P>Set attributes immediately for stdout.</P>
  1452. <PRE>
  1453.         $termios->setattr( 1, &POSIX::TCSANOW );</PRE>
  1454. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1455. <P></P>
  1456. <DT><STRONG><A NAME="item_setcc">setcc</A></STRONG><BR>
  1457. <DD>
  1458. Set a value in the c_cc field of a termios object.  The c_cc field is an
  1459. array so an index must be specified.
  1460. <PRE>
  1461.         $termios->setcc( &POSIX::VEOF, 1 );</PRE>
  1462. <P></P>
  1463. <DT><STRONG><A NAME="item_setcflag">setcflag</A></STRONG><BR>
  1464. <DD>
  1465. Set the c_cflag field of a termios object.
  1466. <PRE>
  1467.         $termios->setcflag( $c_cflag | &POSIX::CLOCAL );</PRE>
  1468. <P></P>
  1469. <DT><STRONG><A NAME="item_setiflag">setiflag</A></STRONG><BR>
  1470. <DD>
  1471. Set the c_iflag field of a termios object.
  1472. <PRE>
  1473.         $termios->setiflag( $c_iflag | &POSIX::BRKINT );</PRE>
  1474. <P></P>
  1475. <DT><STRONG><A NAME="item_setispeed">setispeed</A></STRONG><BR>
  1476. <DD>
  1477. Set the input baud rate.
  1478. <PRE>
  1479.         $termios->setispeed( &POSIX::B9600 );</PRE>
  1480. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1481. <P></P>
  1482. <DT><STRONG><A NAME="item_setlflag">setlflag</A></STRONG><BR>
  1483. <DD>
  1484. Set the c_lflag field of a termios object.
  1485. <PRE>
  1486.         $termios->setlflag( $c_lflag | &POSIX::ECHO );</PRE>
  1487. <P></P>
  1488. <DT><STRONG><A NAME="item_setoflag">setoflag</A></STRONG><BR>
  1489. <DD>
  1490. Set the c_oflag field of a termios object.
  1491. <PRE>
  1492.         $termios->setoflag( $c_oflag | &POSIX::OPOST );</PRE>
  1493. <P></P>
  1494. <DT><STRONG><A NAME="item_setospeed">setospeed</A></STRONG><BR>
  1495. <DD>
  1496. Set the output baud rate.
  1497. <PRE>
  1498.         $termios->setospeed( &POSIX::B9600 );</PRE>
  1499. <P>Returns <A HREF="../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> on failure.</P>
  1500. <P></P>
  1501. <DT><STRONG><A NAME="item_Baud_rate_values">Baud rate values</A></STRONG><BR>
  1502. <DD>
  1503. B38400 B75 B200 B134 B300 B1800 B150 B0 B19200 B1200 B9600 B600 B4800 B50 B2400 B110
  1504. <P></P>
  1505. <DT><STRONG><A NAME="item_Terminal_interface_values">Terminal interface values</A></STRONG><BR>
  1506. <DD>
  1507. TCSADRAIN TCSANOW TCOON TCIOFLUSH TCOFLUSH TCION TCIFLUSH TCSAFLUSH TCIOFF TCOOFF
  1508. <P></P>
  1509. <DT><STRONG><A NAME="item_c_cc_field_values">c_cc field values</A></STRONG><BR>
  1510. <DD>
  1511. VEOF VEOL VERASE VINTR VKILL VQUIT VSUSP VSTART VSTOP VMIN VTIME NCCS
  1512. <P></P>
  1513. <DT><STRONG><A NAME="item_c_cflag_field_values">c_cflag field values</A></STRONG><BR>
  1514. <DD>
  1515. CLOCAL CREAD CSIZE CS5 CS6 CS7 CS8 CSTOPB HUPCL PARENB PARODD
  1516. <P></P>
  1517. <DT><STRONG><A NAME="item_c_iflag_field_values">c_iflag field values</A></STRONG><BR>
  1518. <DD>
  1519. BRKINT ICRNL IGNBRK IGNCR IGNPAR INLCR INPCK ISTRIP IXOFF IXON PARMRK
  1520. <P></P>
  1521. <DT><STRONG><A NAME="item_c_lflag_field_values">c_lflag field values</A></STRONG><BR>
  1522. <DD>
  1523. ECHO ECHOE ECHOK ECHONL ICANON IEXTEN ISIG NOFLSH TOSTOP
  1524. <P></P>
  1525. <DT><STRONG><A NAME="item_c_oflag_field_values">c_oflag field values</A></STRONG><BR>
  1526. <DD>
  1527. OPOST
  1528. <P></P></DL>
  1529. <P>
  1530. <HR>
  1531. <H1><A NAME="pathname constants">PATHNAME CONSTANTS</A></H1>
  1532. <DL>
  1533. <DT><STRONG><A NAME="item_Constants">Constants</A></STRONG><BR>
  1534. <DD>
  1535. _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
  1536. <P></P></DL>
  1537. <P>
  1538. <HR>
  1539. <H1><A NAME="posix constants">POSIX CONSTANTS</A></H1>
  1540. <DL>
  1541. <DT><STRONG>Constants</STRONG><BR>
  1542. <DD>
  1543. _POSIX_ARG_MAX _POSIX_CHILD_MAX _POSIX_CHOWN_RESTRICTED _POSIX_JOB_CONTROL _POSIX_LINK_MAX _POSIX_MAX_CANON _POSIX_MAX_INPUT _POSIX_NAME_MAX _POSIX_NGROUPS_MAX _POSIX_NO_TRUNC _POSIX_OPEN_MAX _POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SAVED_IDS _POSIX_SSIZE_MAX _POSIX_STREAM_MAX _POSIX_TZNAME_MAX _POSIX_VDISABLE _POSIX_VERSION
  1544. <P></P></DL>
  1545. <P>
  1546. <HR>
  1547. <H1><A NAME="system configuration">SYSTEM CONFIGURATION</A></H1>
  1548. <DL>
  1549. <DT><STRONG>Constants</STRONG><BR>
  1550. <DD>
  1551. _SC_ARG_MAX _SC_CHILD_MAX _SC_CLK_TCK _SC_JOB_CONTROL _SC_NGROUPS_MAX _SC_OPEN_MAX _SC_SAVED_IDS _SC_STREAM_MAX _SC_TZNAME_MAX _SC_VERSION
  1552. <P></P></DL>
  1553. <P>
  1554. <HR>
  1555. <H1><A NAME="errno">ERRNO</A></H1>
  1556. <DL>
  1557. <DT><STRONG>Constants</STRONG><BR>
  1558. <DD>
  1559. E2BIG EACCES EADDRINUSE EADDRNOTAVAIL EAFNOSUPPORT EAGAIN EALREADY EBADF
  1560. EBUSY ECHILD ECONNABORTED ECONNREFUSED ECONNRESET EDEADLK EDESTADDRREQ
  1561. EDOM EDQUOT EEXIST EFAULT EFBIG EHOSTDOWN EHOSTUNREACH EINPROGRESS EINTR
  1562. EINVAL EIO EISCONN EISDIR ELOOP EMFILE EMLINK EMSGSIZE ENAMETOOLONG
  1563. ENETDOWN ENETRESET ENETUNREACH ENFILE ENOBUFS ENODEV ENOENT ENOEXEC
  1564. ENOLCK ENOMEM ENOPROTOOPT ENOSPC ENOSYS ENOTBLK ENOTCONN ENOTDIR
  1565. ENOTEMPTY ENOTSOCK ENOTTY ENXIO EOPNOTSUPP EPERM EPFNOSUPPORT EPIPE
  1566. EPROCLIM EPROTONOSUPPORT EPROTOTYPE ERANGE EREMOTE ERESTART EROFS
  1567. ESHUTDOWN ESOCKTNOSUPPORT ESPIPE ESRCH ESTALE ETIMEDOUT ETOOMANYREFS
  1568. ETXTBSY EUSERS EWOULDBLOCK EXDEV
  1569. <P></P></DL>
  1570. <P>
  1571. <HR>
  1572. <H1><A NAME="fcntl">FCNTL</A></H1>
  1573. <DL>
  1574. <DT><STRONG>Constants</STRONG><BR>
  1575. <DD>
  1576. FD_CLOEXEC F_DUPFD F_GETFD F_GETFL F_GETLK F_OK F_RDLCK F_SETFD F_SETFL F_SETLK F_SETLKW F_UNLCK F_WRLCK O_ACCMODE O_APPEND O_CREAT O_EXCL O_NOCTTY O_NONBLOCK O_RDONLY O_RDWR O_TRUNC O_WRONLY
  1577. <P></P></DL>
  1578. <P>
  1579. <HR>
  1580. <H1><A NAME="float">FLOAT</A></H1>
  1581. <DL>
  1582. <DT><STRONG>Constants</STRONG><BR>
  1583. <DD>
  1584. DBL_DIG DBL_EPSILON DBL_MANT_DIG DBL_MAX DBL_MAX_10_EXP DBL_MAX_EXP DBL_MIN DBL_MIN_10_EXP DBL_MIN_EXP FLT_DIG FLT_EPSILON FLT_MANT_DIG FLT_MAX FLT_MAX_10_EXP FLT_MAX_EXP FLT_MIN FLT_MIN_10_EXP FLT_MIN_EXP FLT_RADIX FLT_ROUNDS LDBL_DIG LDBL_EPSILON LDBL_MANT_DIG LDBL_MAX LDBL_MAX_10_EXP LDBL_MAX_EXP LDBL_MIN LDBL_MIN_10_EXP LDBL_MIN_EXP
  1585. <P></P></DL>
  1586. <P>
  1587. <HR>
  1588. <H1><A NAME="limits">LIMITS</A></H1>
  1589. <DL>
  1590. <DT><STRONG>Constants</STRONG><BR>
  1591. <DD>
  1592. ARG_MAX CHAR_BIT CHAR_MAX CHAR_MIN CHILD_MAX INT_MAX INT_MIN LINK_MAX LONG_MAX LONG_MIN MAX_CANON MAX_INPUT MB_LEN_MAX NAME_MAX NGROUPS_MAX OPEN_MAX PATH_MAX PIPE_BUF SCHAR_MAX SCHAR_MIN SHRT_MAX SHRT_MIN SSIZE_MAX STREAM_MAX TZNAME_MAX UCHAR_MAX UINT_MAX ULONG_MAX USHRT_MAX
  1593. <P></P></DL>
  1594. <P>
  1595. <HR>
  1596. <H1><A NAME="locale">LOCALE</A></H1>
  1597. <DL>
  1598. <DT><STRONG>Constants</STRONG><BR>
  1599. <DD>
  1600. LC_ALL LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC LC_TIME
  1601. <P></P></DL>
  1602. <P>
  1603. <HR>
  1604. <H1><A NAME="math">MATH</A></H1>
  1605. <DL>
  1606. <DT><STRONG>Constants</STRONG><BR>
  1607. <DD>
  1608. HUGE_VAL
  1609. <P></P></DL>
  1610. <P>
  1611. <HR>
  1612. <H1><A NAME="signal">SIGNAL</A></H1>
  1613. <DL>
  1614. <DT><STRONG>Constants</STRONG><BR>
  1615. <DD>
  1616. SA_NOCLDSTOP SA_NOCLDWAIT SA_NODEFER SA_ONSTACK SA_RESETHAND SA_RESTART
  1617. SA_SIGINFO SIGABRT SIGALRM SIGCHLD SIGCONT SIGFPE SIGHUP SIGILL SIGINT
  1618. SIGKILL SIGPIPE SIGQUIT SIGSEGV SIGSTOP SIGTERM SIGTSTP SIGTTIN SIGTTOU
  1619. SIGUSR1 SIGUSR2 SIG_BLOCK SIG_DFL SIG_ERR SIG_IGN SIG_SETMASK
  1620. SIG_UNBLOCK
  1621. <P></P></DL>
  1622. <P>
  1623. <HR>
  1624. <H1><A NAME="stat">STAT</A></H1>
  1625. <DL>
  1626. <DT><STRONG>Constants</STRONG><BR>
  1627. <DD>
  1628. S_IRGRP S_IROTH S_IRUSR S_IRWXG S_IRWXO S_IRWXU S_ISGID S_ISUID S_IWGRP S_IWOTH S_IWUSR S_IXGRP S_IXOTH S_IXUSR
  1629. <P></P>
  1630. <DT><STRONG><A NAME="item_Macros">Macros</A></STRONG><BR>
  1631. <DD>
  1632. S_ISBLK S_ISCHR S_ISDIR S_ISFIFO S_ISREG
  1633. <P></P></DL>
  1634. <P>
  1635. <HR>
  1636. <H1><A NAME="stdlib">STDLIB</A></H1>
  1637. <DL>
  1638. <DT><STRONG>Constants</STRONG><BR>
  1639. <DD>
  1640. EXIT_FAILURE EXIT_SUCCESS MB_CUR_MAX RAND_MAX
  1641. <P></P></DL>
  1642. <P>
  1643. <HR>
  1644. <H1><A NAME="stdio">STDIO</A></H1>
  1645. <DL>
  1646. <DT><STRONG>Constants</STRONG><BR>
  1647. <DD>
  1648. BUFSIZ EOF FILENAME_MAX L_ctermid L_cuserid L_tmpname TMP_MAX
  1649. <P></P></DL>
  1650. <P>
  1651. <HR>
  1652. <H1><A NAME="time">TIME</A></H1>
  1653. <DL>
  1654. <DT><STRONG>Constants</STRONG><BR>
  1655. <DD>
  1656. CLK_TCK CLOCKS_PER_SEC
  1657. <P></P></DL>
  1658. <P>
  1659. <HR>
  1660. <H1><A NAME="unistd">UNISTD</A></H1>
  1661. <DL>
  1662. <DT><STRONG>Constants</STRONG><BR>
  1663. <DD>
  1664. R_OK SEEK_CUR SEEK_END SEEK_SET STDIN_FILENO STDOUT_FILENO STRERR_FILENO W_OK X_OK
  1665. <P></P></DL>
  1666. <P>
  1667. <HR>
  1668. <H1><A NAME="wait">WAIT</A></H1>
  1669. <DL>
  1670. <DT><STRONG>Constants</STRONG><BR>
  1671. <DD>
  1672. WNOHANG WUNTRACED
  1673. <P></P>
  1674. <DT><STRONG>Macros</STRONG><BR>
  1675. <DD>
  1676. WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG WIFSTOPPED WSTOPSIG
  1677. <P></P></DL>
  1678. <P>
  1679. <HR>
  1680. <H1><A NAME="creation">CREATION</A></H1>
  1681. <P>This document generated by ./mkposixman.PL version 19960129.</P>
  1682. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  1683. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  1684. <STRONG><P CLASS=block> POSIX - Perl interface to IEEE Std 1003.1</P></STRONG>
  1685. </TD></TR>
  1686. </TABLE>
  1687.  
  1688. </BODY>
  1689.  
  1690. </HTML>
  1691.