Lines Matching defs:mode
27 "locking($module, fd, mode, nbytes, /)\n"
34 "the end of the file. mode must be one of the LK_* constants listed\n"
43 msvcrt_locking_impl(PyObject *module, int fd, int mode, long nbytes);
50 int mode;
60 mode = _PyLong_AsInt(args[1]);
61 if (mode == -1 && PyErr_Occurred()) {
68 return_value = msvcrt_locking_impl(module, fd, mode, nbytes);
75 "setmode($module, fd, mode, /)\n"
78 "Set the line-end translation mode for the file descriptor fd.\n"
80 "To set it to text mode, flags should be os.O_TEXT; for binary, it\n"
83 "Return value is the previous mode.");
510 "CrtSetReportMode($module, type, mode, /)\n"
521 msvcrt_CrtSetReportMode_impl(PyObject *module, int type, int mode);
528 int mode;
538 mode = _PyLong_AsInt(args[1]);
539 if (mode == -1 && PyErr_Occurred()) {
542 _return_value = msvcrt_CrtSetReportMode_impl(module, type, mode);
557 "set_error_mode($module, mode, /)\n"
568 msvcrt_set_error_mode_impl(PyObject *module, int mode);
574 int mode;
577 mode = _PyLong_AsInt(arg);
578 if (mode == -1 && PyErr_Occurred()) {
581 _return_value = msvcrt_set_error_mode_impl(module, mode);
612 "SetErrorMode($module, mode, /)\n"
621 msvcrt_SetErrorMode_impl(PyObject *module, unsigned int mode);
627 unsigned int mode;
629 mode = (unsigned int)PyLong_AsUnsignedLongMask(arg);
630 if (mode == (unsigned int)-1 && PyErr_Occurred()) {
633 return_value = msvcrt_SetErrorMode_impl(module, mode);