Lines Matching +full:- +full:- +full:exit +full:- +full:code
3 [clinic start generated code]*/
7 "--\n"
19 "corresponding to the return value of the fcntl call in the C code.");
25 fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg);
32 int code; in fcntl_fcntl() local
36 goto exit; in fcntl_fcntl()
39 goto exit; in fcntl_fcntl()
41 code = _PyLong_AsInt(args[1]); in fcntl_fcntl()
42 if (code == -1 && PyErr_Occurred()) { in fcntl_fcntl()
43 goto exit; in fcntl_fcntl()
50 return_value = fcntl_fcntl_impl(module, fd, code, arg); in fcntl_fcntl()
52 exit: in fcntl_fcntl()
58 "--\n"
87 "code.");
93 fcntl_ioctl_impl(PyObject *module, int fd, unsigned int code,
101 unsigned int code; in fcntl_ioctl() local
106 goto exit; in fcntl_ioctl()
109 goto exit; in fcntl_ioctl()
111 code = (unsigned int)PyLong_AsUnsignedLongMask(args[1]); in fcntl_ioctl()
112 if (code == (unsigned int)-1 && PyErr_Occurred()) { in fcntl_ioctl()
113 goto exit; in fcntl_ioctl()
124 goto exit; in fcntl_ioctl()
127 return_value = fcntl_ioctl_impl(module, fd, code, ob_arg, mutate_arg); in fcntl_ioctl()
129 exit: in fcntl_ioctl()
135 "--\n"
146 fcntl_flock_impl(PyObject *module, int fd, int code);
153 int code; in fcntl_flock() local
156 goto exit; in fcntl_flock()
159 goto exit; in fcntl_flock()
161 code = _PyLong_AsInt(args[1]); in fcntl_flock()
162 if (code == -1 && PyErr_Occurred()) { in fcntl_flock()
163 goto exit; in fcntl_flock()
165 return_value = fcntl_flock_impl(module, fd, code); in fcntl_flock()
167 exit: in fcntl_flock()
173 "--\n"
180 " LOCK_UN - unlock\n"
181 " LOCK_SH - acquire a shared lock\n"
182 " LOCK_EX - acquire an exclusive lock\n"
188 "system -- for portability, check for either value).\n"
194 " 0 - relative to the start of the file (SEEK_SET)\n"
195 " 1 - relative to the current buffer position (SEEK_CUR)\n"
196 " 2 - relative to the end of the file (SEEK_END)");
202 fcntl_lockf_impl(PyObject *module, int fd, int code, PyObject *lenobj,
210 int code; in fcntl_lockf() local
216 goto exit; in fcntl_lockf()
219 goto exit; in fcntl_lockf()
221 code = _PyLong_AsInt(args[1]); in fcntl_lockf()
222 if (code == -1 && PyErr_Occurred()) { in fcntl_lockf()
223 goto exit; in fcntl_lockf()
237 if (whence == -1 && PyErr_Occurred()) { in fcntl_lockf()
238 goto exit; in fcntl_lockf()
241 return_value = fcntl_lockf_impl(module, fd, code, lenobj, startobj, whence); in fcntl_lockf()
243 exit: in fcntl_lockf()
246 /*[clinic end generated code: output=b8cb14ab35de4c6a input=a9049054013a1b77]*/