Lines Matching defs:code
20 [clinic start generated code]*/
21 /*[clinic end generated code: output=da39a3ee5e6b4b0d input=124b58387c158179]*/
29 cmd as code: int
43 corresponding to the return value of the fcntl call in the C code.
44 [clinic start generated code]*/
47 fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg)
48 /*[clinic end generated code: output=888fc93b51c295bd input=7955340198e5f334]*/
57 if (PySys_Audit("fcntl.fcntl", "iiO", fd, code, arg ? arg : Py_None) < 0) {
73 ret = fcntl(fd, code, buf);
94 ret = fcntl(fd, code, (int)int_arg);
108 request as code: unsigned_int(bitwise=True)
140 code.
141 [clinic start generated code]*/
144 fcntl_ioctl_impl(PyObject *module, int fd, unsigned int code,
146 /*[clinic end generated code: output=7f7f5840c65991be input=967b4a4cbeceb0a8]*/
149 /* We use the unsigned non-checked 'I' format for the 'code' parameter
166 if (PySys_Audit("fcntl.ioctl", "iIO", fd, code,
202 ret = ioctl(fd, code, arg);
206 ret = ioctl(fd, code, arg);
237 ret = ioctl(fd, code, buf);
258 ret = ioctl(fd, code, arg);
272 operation as code: int
279 [clinic start generated code]*/
282 fcntl_flock_impl(PyObject *module, int fd, int code)
283 /*[clinic end generated code: output=84059e2b37d2fc64 input=0bfc00f795953452]*/
288 if (PySys_Audit("fcntl.flock", "ii", fd, code) < 0) {
295 ret = flock(fd, code);
308 if (code == LOCK_UN)
310 else if (code & LOCK_SH)
312 else if (code & LOCK_EX)
322 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l);
338 cmd as code: int
366 [clinic start generated code]*/
369 fcntl_lockf_impl(PyObject *module, int fd, int code, PyObject *lenobj,
371 /*[clinic end generated code: output=4985e7a172e7461a input=5480479fc63a04b8]*/
376 if (PySys_Audit("fcntl.lockf", "iiOOi", fd, code, lenobj ? lenobj : Py_None,
389 if (code == LOCK_UN)
391 else if (code & LOCK_SH)
393 else if (code & LOCK_EX)
426 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l);