Tcl Source Code

Hex Artifact Content
Login

Artifact 3cc8eb28c664f4c93ce0f5b93827ae0306e2a70a:

Attachment "openFileChannelProc.patch" to ticket [3518244fff] added by lobotomy642 2012-04-16 01:19:25.
0000: 2d 2d 2d 20 64 6f 63 2f 46 69 6c 65 53 79 73 74  --- doc/FileSyst
0010: 65 6d 2e 33 2e 6f 72 69 67 09 32 30 31 32 2d 30  em.3.orig.2012-0
0020: 34 2d 31 35 20 32 30 3a 30 34 3a 34 36 2e 30 30  4-15 20:04:46.00
0030: 30 30 30 30 30 30 30 20 2b 30 32 30 30 0a 2b 2b  0000000 +0200.++
0040: 2b 20 64 6f 63 2f 46 69 6c 65 53 79 73 74 65 6d  + doc/FileSystem
0050: 2e 33 09 32 30 31 32 2d 30 34 2d 31 35 20 32 30  .3.2012-04-15 20
0060: 3a 30 37 3a 34 39 2e 30 30 30 30 30 30 30 30 30  :07:49.000000000
0070: 20 2b 30 32 30 30 0a 40 40 20 2d 31 31 33 31 2c   +0200.@@ -1131,
0080: 38 20 2b 31 31 33 31 2c 39 20 40 40 0a 20 5c 66  8 +1131,9 @@. \f
0090: 42 54 63 6c 5f 46 53 4f 70 65 6e 46 69 6c 65 43  BTcl_FSOpenFileC
00a0: 68 61 6e 6e 65 6c 50 72 6f 63 5c 66 52 20 6c 65  hannelProc\fR le
00b0: 61 76 65 73 20 61 6e 20 65 72 72 6f 72 20 6d 65  aves an error me
00c0: 73 73 61 67 65 20 69 6e 20 5c 66 49 69 6e 74 65  ssage in \fIinte
00d0: 72 70 5c 66 52 27 73 0a 20 72 65 73 75 6c 74 20  rp\fR's. result 
00e0: 61 66 74 65 72 20 61 6e 79 20 65 72 72 6f 72 2e  after any error.
00f0: 0a 20 2e 50 50 0a 2d 54 68 65 20 6e 65 77 6c 79  . .PP.-The newly
0100: 20 63 72 65 61 74 65 64 20 63 68 61 6e 6e 65 6c   created channel
0110: 20 69 73 20 6e 6f 74 20 72 65 67 69 73 74 65 72   is not register
0120: 65 64 20 69 6e 20 74 68 65 20 73 75 70 70 6c 69  ed in the suppli
0130: 65 64 0a 2d 69 6e 74 65 72 70 72 65 74 65 72 3b  ed.-interpreter;
0140: 20 74 6f 20 72 65 67 69 73 74 65 72 20 69 74 2c   to register it,
0150: 20 75 73 65 20 5c 66 42 54 63 6c 5f 52 65 67 69   use \fBTcl_Regi
0160: 73 74 65 72 43 68 61 6e 6e 65 6c 5c 66 52 2e 20  sterChannel\fR. 
0170: 49 66 20 6f 6e 65 20 6f 66 0a 2b 54 68 65 20 6e  If one of.+The n
0180: 65 77 6c 79 20 63 72 65 61 74 65 64 20 63 68 61  ewly created cha
0190: 6e 6e 65 6c 20 6d 75 73 74 20 6e 6f 74 20 62 65  nnel must not be
01a0: 20 72 65 67 69 73 74 65 72 65 64 20 69 6e 20 74   registered in t
01b0: 68 65 20 73 75 70 70 6c 69 65 64 0a 2b 69 6e 74  he supplied.+int
01c0: 65 72 70 72 65 74 65 72 2c 20 74 68 69 73 20 74  erpreter, this t
01d0: 61 73 6b 20 73 68 61 6c 6c 20 62 65 20 68 61 6e  ask shall be han
01e0: 64 6c 65 64 20 62 79 20 74 68 65 20 63 61 6c 6c  dled by the call
01f0: 65 72 20 6f 66 0a 2b 5c 66 42 54 63 6c 5f 46 53  er of.+\fBTcl_FS
0200: 4f 70 65 6e 46 69 6c 65 43 68 61 6e 6e 65 6c 50  OpenFileChannelP
0210: 72 6f 63 5c 66 52 2e 20 49 66 20 6f 6e 65 20 6f  roc\fR. If one o
0220: 66 0a 20 74 68 65 20 73 74 61 6e 64 61 72 64 20  f. the standard 
0230: 63 68 61 6e 6e 65 6c 73 2c 20 5c 66 42 73 74 64  channels, \fBstd
0240: 69 6e 2c 20 73 74 64 6f 75 74 5c 66 52 20 6f 72  in, stdout\fR or
0250: 20 5c 66 42 73 74 64 65 72 72 5c 66 52 20 77 61   \fBstderr\fR wa
0260: 73 0a 20 70 72 65 76 69 6f 75 73 6c 79 20 63 6c  s. previously cl
0270: 6f 73 65 64 2c 20 74 68 65 20 61 63 74 20 6f 66  osed, the act of
0280: 20 63 72 65 61 74 69 6e 67 20 74 68 65 20 6e 65   creating the ne
0290: 77 20 63 68 61 6e 6e 65 6c 20 61 6c 73 6f 20 61  w channel also a
02a0: 73 73 69 67 6e 73 20 69 74 0a 20 61 73 20 61 20  ssigns it. as a 
02b0: 72 65 70 6c 61 63 65 6d 65 6e 74 20 66 6f 72 20  replacement for 
02c0: 74 68 65 20 73 74 61 6e 64 61 72 64 20 63 68 61  the standard cha
02d0: 6e 6e 65 6c 2e 0a                                nnel..