readOnly returns whether flags say fh is read only
()
| 78 | |
| 79 | // readOnly returns whether flags say fh is read only |
| 80 | func (fh *RWFileHandle) readOnly() bool { |
| 81 | return (fh.flags & accessModeMask) == os.O_RDONLY |
| 82 | } |
| 83 | |
| 84 | // writeOnly returns whether flags say fh is write only |
| 85 | func (fh *RWFileHandle) writeOnly() bool { |
no outgoing calls
no test coverage detected