Lines Matching defs:os
15 import os
875 '{0}: {1} in {2}'.format(os.strerror(errno.ENOENT),
1365 oflags is 0/1/2 with optional os.O_CREAT, perm defaults
1383 allow_empty = (oflags & os.O_CREAT) == 0
1386 if not (oflags & os.O_CREAT):
1561 os.strerror(errno.ENOTDIR)))
1595 os.strerror(errno.ENOTDIR)))
1772 os.O_CREAT: protocol.td.L_O_CREAT,
1773 os.O_EXCL: protocol.td.L_O_EXCL,
1774 os.O_NOCTTY: protocol.td.L_O_NOCTTY,
1775 os.O_TRUNC: protocol.td.L_O_TRUNC,
1776 os.O_APPEND: protocol.td.L_O_APPEND,
1777 os.O_DIRECTORY: protocol.td.L_O_DIRECTORY,
1780 result = flags & os.O_RDWR
1781 flags &= ~os.O_RDWR
1787 raise ValueError('untranslated bits 0x{0:x} in os flags'.format(flags))