home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / perl5 / POSIX.z / POSIX
Encoding:
Text File  |  1998-10-30  |  49.1 KB  |  1,651 lines

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