Provided by: manpages-zh_1.5.2-1_all bug

NAME

       open -

 SYNOPSIS
       open fileName
       open fileName access
       open fileName access permissions
_________________________________________________________________

 DESCRIPTION
         readputsclose  fileName |: fileName  filename                         |

        access () access :

       r               access

       r+

       w              (truncate)

       w+             (truncate)

       a

       a+

       access  POSIX   RDONLYWRONLY  RDWR

       RDONLY

       WRONLY

       RDWR

       APPEND

       CREAT          ()

       EXCL            CREAT

       NOCTTY

       NONBLOCK        I/O
                          (     fconfigure     )  open  O_NONBLOCK

       TRUNC

        permissions ()Permissions  0666

       Note  that  if  you are going to be reading or writing binary data from |
       the channel created by this command,  you  should  use  the  fconfigure |
       command  to  change  the  -translation  option of the channel to binary |
       before transferring any binary data.  This is in contrast to the  ``b'' |
       character  passed  as part of the equivalent of the access parameter to |
       some versions of the C library fopen() function.

 COMMAND PIPELINES
          fileName   is   |   fileName    exec    access    open   (    access
       w)(override)()(access  r)(override)()

                                  Tcl     ==>   Pipeline  ==>   command

              +--------+       +--------+      +--------+      +--------+
              | stdin  |<------+ stdin  |  +-->| pipein |   +--+ stdin  |
              +--------+       +--------+  |   +--------+   |  +--------+
              | stdout |<--+---+ stdout |  |   | pipeout|<--+  | stdout +--+
              +--------+   |   +--------+  |   +--------+      +--------+  |
                           |   | stderr |  |                   | stderr |  |
                           |   +--------+  |                   +--------+  |
                           |   | channel+--+                               |
                           |   +--------+                                  |
                           +-----------------------------------------------+

                           +-----------------------------------------------+
                           |                                               |
              +--------+   |   +--------+      +--------+      +--------+  |
              | stdin  |<--+---+ stdin  |      | pipein |<--+  | stdin  +--+
              +--------+       +--------+      +--------+   |  +--------+
              | stdout |<------+ stdout |  +-->| pipeout|   +--+ stdout |
              +--------+       +--------+  |   +--------+      +--------+
                               | stderr |  |                   | stderr |
                               +--------+  |                   +--------+
                               | channel+--+
                               +--------+
                                  Tcl     <==    Pipeline  <==  command

 SERIAL COMMUNICATIONS
        fileName  fileName                                                     |

 CONFIGURATION OPTIONS                                                         |
        fconfigure :                                                           |

       -mode baud,parity,data,stop                                             |
              :             (baud)(parity)baud             Parity            : |
              noemsnoneoddevenmarkspaceData      5  8  stop      1  2          |

       -pollinterval msec                                                      |
               Windows     (poll)     Tcl ()     10 msec ()                    |

       -lasterror                                                              |
               Windows ()read      puts  Tcl  I/O       fconfigure  -lasterror |
              (FRAME RXOVER)

 PORTABILITY ISSUES                                                            |
       Windows ()                                                              |
                 fileName    comX:       X    1    4(notation)       1    9  9 |
              \\.\comX X ()     Windows 95  Windows 98                         |

       Windows NT                                                              |
               Tcl          Tcl     (keystroke)      16-bit   32-bit       Tcl |
              Tcl     ()                                                       |

       Windows 95                                                              |
               16-bit DOS     ()     16-bit DOS  16-bit DOS                    |

                 Tcl            32-bit            Tcl    32-bit            Tcl |
              Tcl     ()                                                       |

               Tcl  16-bit DOS          open  16-bit DOS          16-bit DOS   |

       Macintosh                                                               |
               Macintosh                                                       |

               Macintosh                                                       |

       Unix                                                                    |
               fileName  /dev/ttyX     X  a  b(pseudo-file)                    |

               Tcl          Tcl  Tcl          Tcl     ()                       |

        exec                                                                   |

 SEE ALSO                                                                      |
       file(n),  close(n),  filename(n),  fconfigure(n),   gets(n),   read(n), |
       puts(n), exec(n), fopen(1)                                              |

 KEYWORDS                                                                      |
       access  mode,  append,  create,  file, non-blocking, open, permissions, |
       pipeline, process, serial                                               |

[]                                                                             |
                                                                               |

[]                                                                             |
       2001/10/16                                                              |

 Linux  man :                                                                  |
       http://cmpp.linuxforum.net                                              |