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

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Fcntl - load the C Fcntl.h defines</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> Fcntl - load the C Fcntl.h defines</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="#exported symbols">EXPORTED SYMBOLS</A></LI>
  27. </UL>
  28. <!-- INDEX END -->
  29.  
  30. <HR>
  31. <P>
  32. <H1><A NAME="name">NAME</A></H1>
  33. <P>Fcntl - load the C Fcntl.h defines</P>
  34. <P>
  35. <HR>
  36. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  37. <UL>
  38. <LI>Linux</LI>
  39. <LI>Solaris</LI>
  40. <LI>Windows</LI>
  41. </UL>
  42. <HR>
  43. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  44. <PRE>
  45.     use Fcntl;
  46.     use Fcntl qw(:DEFAULT :flock);</PRE>
  47. <P>
  48. <HR>
  49. <H1><A NAME="description">DESCRIPTION</A></H1>
  50. <P>This module is just a translation of the C <EM>fnctl.h</EM> file.
  51. Unlike the old mechanism of requiring a translated <EM>fnctl.ph</EM>
  52. file, this uses the <STRONG>h2xs</STRONG> program (see the Perl source distribution)
  53. and your native C compiler.  This means that it has a 
  54. far more likely chance of getting the numbers right.</P>
  55. <P>
  56. <HR>
  57. <H1><A NAME="note">NOTE</A></H1>
  58. <P>Only <CODE>#define</CODE> symbols get translated; you must still correctly
  59. pack up your own arguments to pass as args for locking functions, etc.</P>
  60. <P>
  61. <HR>
  62. <H1><A NAME="exported symbols">EXPORTED SYMBOLS</A></H1>
  63. <P>By default your system's F_* and O_* constants (eg, F_DUPFD and
  64. O_CREAT) and the FD_CLOEXEC constant are exported into your namespace.</P>
  65. <P>You can request that the <A HREF="../lib/Pod/perlfunc.html#item_flock"><CODE>flock()</CODE></A> constants (LOCK_SH, LOCK_EX, LOCK_NB
  66. and LOCK_UN) be provided by using the tag <CODE>:flock</CODE>.  See <A HREF="../lib/Exporter.html">the Exporter manpage</A>.</P>
  67. <P>You can request that the old constants (FAPPEND, FASYNC, FCREAT,
  68. FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC) be provided for
  69. compatibility reasons by using the tag <CODE>:Fcompat</CODE>.  For new
  70. applications the newer versions of these constants are suggested
  71. (O_APPEND, O_ASYNC, O_CREAT, O_DEFER, O_EXCL, O_NDELAY, O_NONBLOCK,
  72. O_SYNC, O_TRUNC).</P>
  73. <P>For ease of use also the SEEK_* constants (for <A HREF="../lib/Pod/perlfunc.html#item_seek"><CODE>seek()</CODE></A> and sysseek(),
  74. e.g. SEEK_END) and the S_I* constants (for <A HREF="../lib/Pod/perlfunc.html#item_chmod"><CODE>chmod()</CODE></A> and <A HREF="../lib/Pod/perlfunc.html#item_stat"><CODE>stat())</CODE></A> are
  75. available for import.  They can be imported either separately or using
  76. the tags <CODE>:seek</CODE> and <CODE>:mode</CODE>.</P>
  77. <P>Please refer to your native fcntl(2), open(2), fseek(3), <CODE>lseek(2)</CODE>
  78. (equal to Perl's <A HREF="../lib/Pod/perlfunc.html#item_seek"><CODE>seek()</CODE></A> and sysseek(), respectively), and <A HREF="../lib/Pod/perlfunc.html#item_chmod"><CODE>chmod(2)</CODE></A>
  79. documentation to see what constants are implemented in your system.</P>
  80. <P>See <A HREF="../lib/Pod/perlopentut.html">the perlopentut manpage</A> to learn about the uses of the O_* constants
  81. with sysopen().</P>
  82. <P>See <A HREF="../lib/Pod/perlfunc.html#seek">seek in the perlfunc manpage</A> and <A HREF="../lib/Pod/perlfunc.html#sysseek">sysseek in the perlfunc manpage</A> about the SEEK_* constants.</P>
  83. <P>See <A HREF="../lib/Pod/perlfunc.html#stat">stat in the perlfunc manpage</A> about the S_I* constants.</P>
  84. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  85. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  86. <STRONG><P CLASS=block> Fcntl - load the C Fcntl.h defines</P></STRONG>
  87. </TD></TR>
  88. </TABLE>
  89.  
  90. </BODY>
  91.  
  92. </HTML>
  93.