4 desc
="open returns EISDIR when he named file is a directory, and the arguments specify it is to be modified"
15 expect
0 mkdir
${n0} 0755
17 expect
0 open
${n0} O_RDONLY
18 expect EISDIR open
${n0} O_WRONLY
19 expect EISDIR open
${n0} O_RDWR
20 expect EISDIR open
${n0} O_RDONLY
,O_TRUNC
21 expect EISDIR open
${n0} O_WRONLY
,O_TRUNC
22 expect EISDIR open
${n0} O_RDWR
,O_TRUNC