Diff
Not logged in

Differences From Artifact [8750095198]:

To Artifact [71d91e79e7]:


5199
5200
5201
5202
5203
5204
5205
5206

5207
5208

5209
5210

5211
5212
5213
5214
5215
5216
5217

5218
5219
5220
5221
5222
5223
5224
5199
5200
5201
5202
5203
5204
5205

5206
5207

5208
5209

5210
5211
5212
5213
5214
5215
5216

5217
5218
5219
5220
5221
5222
5223
5224







-
+

-
+

-
+






-
+







    set x [gets $f]
    close $f
    set f [open $path(test3) r]
    lappend x [gets $f]
    close $f
    set x
} {zzy abzzy}
test io-40.2 {POSIX open access modes: CREAT} {unix} {
test io-40.2 {POSIX open access modes: CREAT} {
    file delete $path(test3)
    set f [open $path(test3) {WRONLY CREAT} 0600]
    set f [open $path(test3) {WRONLY CREAT} 0o666]
    file stat $path(test3) stats
    set x [format "0%o" [expr $stats(mode)&0o777]]
    set x [format "0o%o" [expr $stats(mode)&0o777]]
    puts $f "line 1"
    close $f
    set f [open $path(test3) r]
    lappend x [gets $f]
    close $f
    set x
} {0600 {line 1}}
} {0o666 {line 1}}
test io-40.3 {POSIX open access modes: CREAT} {unix umask} {
    # This test only works if your umask is 2, like ouster's.
    file delete $path(test3)
    set f [open $path(test3) {WRONLY CREAT}]
    close $f
    file stat $path(test3) stats
    format "0%o" [expr $stats(mode)&0o777]