4 desc="open returns EPERM when the named file has its immutable flag set and the file is to be modified"
15 expect 0 create ${n0} 0644
16 expect 0 chflags ${n0} SF_IMMUTABLE
17 expect EPERM open ${n0} O_WRONLY
18 expect EPERM open ${n0} O_RDWR
19 expect EPERM open ${n0} O_RDONLY,O_TRUNC
20 expect 0 chflags ${n0} none
23 expect 0 create ${n0} 0644
24 expect 0 chflags ${n0} UF_IMMUTABLE
25 expect EPERM open ${n0} O_WRONLY
26 expect EPERM open ${n0} O_RDWR
27 expect EPERM open ${n0} O_RDONLY,O_TRUNC
28 expect 0 chflags ${n0} none
31 expect 0 create ${n0} 0644
32 expect 0 chflags ${n0} SF_NOUNLINK
33 expect 0 open ${n0} O_WRONLY
34 expect 0 open ${n0} O_RDWR
35 expect 0 open ${n0} O_RDONLY,O_TRUNC
36 expect 0 chflags ${n0} none
39 expect 0 create ${n0} 0644
40 expect 0 chflags ${n0} UF_NOUNLINK
41 expect 0 open ${n0} O_WRONLY
42 expect 0 open ${n0} O_RDWR
43 expect 0 open ${n0} O_RDONLY,O_TRUNC
44 expect 0 chflags ${n0} none