Home | History | Annotate | Download | only in lib-dynload
__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses _PyArg_ParseTuple_SizeT PyLong_AsLongLong PyErr_Occurred PyEval_SaveThread PyEval_RestoreThread _Py_NoneStruct PyInt_AsLong PyExc_ValueError PyErr_SetString PyExc_IOError PyErr_SetFromErrno PyObject_AsFileDescriptor memcpy ioctl PyInt_FromLong PyString_FromStringAndSize PyErr_Clear PyDict_SetItemString flock initfcntl Py_InitModule4 PyModule_GetDict libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.0 
O&i|OOi:lockf unrecognized lockf argument O&Iw#|i:ioctl ioctl string arg too long O&Is#:ioctl O&is#:fcntl fcntl string arg too long O&i:flock LOCK_SH LOCK_EX LOCK_NB LOCK_UN LOCK_MAND LOCK_READ LOCK_WRITE LOCK_RW F_DUPFD F_GETFD F_SETFD F_GETFL F_SETFL F_GETLK F_SETLK F_SETLKW F_GETOWN F_SETOWN F_GETSIG F_SETSIG F_RDLCK F_WRLCK F_UNLCK F_GETLK64 F_SETLK64 F_SETLKW64 FASYNC F_SETLEASE F_GETLEASE F_NOTIFY F_EXLCK F_SHLCK FD_CLOEXEC DN_ACCESS DN_MODIFY DN_CREATE DN_DELETE DN_RENAME DN_ATTRIB DN_MULTISHOT I_PUSH I_POP I_LOOK I_FLUSH I_FLUSHBAND I_SETSIG I_GETSIG I_FIND I_PEEK I_SRDOPT I_GRDOPT I_NREAD I_FDINSERT I_STR I_SWROPT I_GWROPT I_SENDFD I_RECVFD I_LIST I_ATMARK I_CKBAND I_GETBAND I_CANPUT I_SETCLTIME I_GETCLTIME I_UNLINK I_PLINK I_PUNLINK I_LINK O&I|i;ioctl requires a file or file descriptor, an integer and optionally an integer or buffer argument O&i|l;fcntl requires a file or file descriptor, an integer and optionally a third integer or a string 
`1 This module performs file control and I/O control on file descriptors. It is an interface to the fcntl() and ioctl() Unix routines. File descriptors can be obtained with the fileno() method of a file or socket object. fcntl(fd, opt, [arg]) Perform the requested operation on file descriptor fd. The operation is defined by op and is operating system dependent. These constants are available from the fcntl module. The argument arg is optional, and defaults to 0; it may be an int or a string. If arg is given as a string, the return value of fcntl is a string of that length, containing the resulting value put in the arg buffer by the operating system. The length of the arg string is not allowed to exceed 1024 bytes. If the arg given is an integer or if none is specified, the result value is an integer corresponding to the return value of the fcntl call in the C code. ioctl(fd, opt[, arg[, mutate_flag]]) Perform the requested operation on file descriptor fd. The operation is defined by opt and is operating system dependent. Typically these codes are retrieved from the fcntl or termios library modules. The argument arg is optional, and defaults to 0; it may be an int or a buffer containing character data (most likely a string or an array). If the argument is a mutable buffer (such as an array) and if the mutate_flag argument (which is only allowed in this case) is true then the buffer is (in effect) passed to the operating system and changes made by the OS will be reflected in the contents of the buffer after the call has returned. The return value is the integer returned by the ioctl system call. If the argument is a mutable buffer and the mutable_flag argument is not passed or is false, the behavior is as if a string had been passed. This behavior will change in future releases of Python. If the argument is an immutable buffer (most likely a string) then a copy of the buffer is passed to the operating system and the return value is a string of the same length containing whatever the operating system put in the buffer. The length of the arg buffer in this case is not allowed to exceed 1024 bytes. If the arg given is an integer or if none is specified, the result value is an integer corresponding to the return value of the ioctl call in the C code. flock(fd, operation) Perform the lock operation op on file descriptor fd. See the Unix manual page for flock(3) for details. (On some systems, this function is emulated using fcntl().) lockf (fd, operation, length=0, start=0, whence=0) This is essentially a wrapper around the fcntl() locking calls. fd is the file descriptor of the file to lock or unlock, and operation is one of the following values: LOCK_UN - unlock LOCK_SH - acquire a shared lock LOCK_EX - acquire an exclusive lock When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with LOCK_NB to avoid blocking on lock acquisition. If LOCK_NB is used and the lock cannot be acquired, an IOError will be raised and the exception will have an errno attribute set to EACCES or EAGAIN (depending on the operating system -- for portability, check for either value). length is the number of bytes to lock, with the default meaning to lock to EOF. start is the byte offset, relative to whence, to that the lock starts. whence is as with fileobj.seek(), specifically: 0 - relative to the start of the file (SEEK_SET) 1 - relative to the current buffer position (SEEK_CUR) 2 - relative to the end of the file (SEEK_END) p& `2 d& 5 & ` : & p `; 
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) GCC: (GNU) 4.6.x-google 20120106 (prerelease) GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) 
.symtab .strtab .shstrtab .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_ranges 
initfini.c crtstuff.c __CTOR_LIST__ __DTOR_LIST__ __JCR_LIST__ __do_global_dtors_aux completed.5467 dtor_idx.5469 frame_dummy __CTOR_END__ __FRAME_END__ __JCR_END__ __do_global_ctors_aux fcntlmodule.c fcntl_lockf conv_descriptor fcntl_ioctl fcntl_fcntl ins fcntl_flock module_doc fcntl_methods fcntl_doc ioctl_doc flock_doc lockf_doc _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ _DYNAMIC PyDict_SetItemString PyExc_ValueError __gmon_start__ _Jv_RegisterClasses _PyArg_ParseTuple_SizeT _fini PyObject_AsFileDescriptor PyString_FromStringAndSize PyErr_Occurred ioctl@@GLIBC_2.0 PyEval_RestoreThread memcpy@@GLIBC_2.0 PyInt_FromLong PyEval_SaveThread PyModule_GetDict PyInt_AsLong PyExc_IOError __bss_start _Py_NoneStruct PyLong_AsLongLong Py_InitModule4 _end PyErr_Clear initfcntl fcntl@@GLIBC_2.0 flock@@GLIBC_2.0 PyErr_SetString _edata PyErr_SetFromErrno __cxa_finalize@@GLIBC_2.1.3 _init