Lines Matching defs:flags

551 "chflags($module, /, path, flags, follow_symlinks=True)\n"
554 "Set file flags.\n"
557 " link, chflags will change flags on the symbolic link itself instead of the\n"
566 os_chflags_impl(PyObject *module, path_t *path, unsigned long flags,
573 static const char * const _keywords[] = {"path", "flags", "follow_symlinks", NULL};
578 unsigned long flags;
589 _PyArg_BadArgument("chflags", "argument 'flags'", "int", args[1]);
592 flags = PyLong_AsUnsignedLongMask(args[1]);
601 return_value = os_chflags_impl(module, &path, flags, follow_symlinks);
615 "lchflags($module, /, path, flags)\n"
618 "Set file flags.\n"
621 "Equivalent to chflags(path, flags, follow_symlinks=False).");
627 os_lchflags_impl(PyObject *module, path_t *path, unsigned long flags);
633 static const char * const _keywords[] = {"path", "flags", NULL};
637 unsigned long flags;
647 _PyArg_BadArgument("lchflags", "argument 'flags'", "int", args[1]);
650 flags = PyLong_AsUnsignedLongMask(args[1]);
651 return_value = os_lchflags_impl(module, &path, flags);
4167 "pidfd_open($module, /, pid, flags=0)\n"
4179 os_pidfd_open_impl(PyObject *module, pid_t pid, unsigned int flags);
4185 static const char * const _keywords[] = {"pid", "flags", NULL};
4188 unsigned int flags = 0;
4191 &pid, _PyLong_UnsignedInt_Converter, &flags)) {
4194 return_value = os_pidfd_open_impl(module, pid, flags);
4517 "open($module, /, path, flags, mode=511, *, dir_fd=None)\n"
4531 os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd);
4537 static const char * const _keywords[] = {"path", "flags", "mode", "dir_fd", NULL};
4542 int flags;
4554 flags = _PyLong_AsInt(args[1]);
4555 if (flags == -1 && PyErr_Occurred()) {
4578 _return_value = os_open_impl(module, &path, flags, mode, dir_fd);
5005 "preadv($module, fd, buffers, offset, flags=0, /)\n"
5017 "The flags argument contains a bitwise OR of zero or more of the following flags:\n"
5022 "Using non-zero flags requires Linux 4.6 or newer.");
5029 int flags);
5038 int flags = 0;
5055 flags = _PyLong_AsInt(args[3]);
5056 if (flags == -1 && PyErr_Occurred()) {
5060 _return_value = os_preadv_impl(module, fd, buffers, offset, flags);
5125 " trailers=(), flags=0)\n"
5136 int flags);
5142 static const char * const _keywords[] = {"out_fd", "in_fd", "offset", "count", "headers", "trailers", "flags", NULL};
5152 int flags = 0;
5187 flags = _PyLong_AsInt(args[6]);
5188 if (flags == -1 && PyErr_Occurred()) {
5192 return_value = os_sendfile_impl(module, out_fd, in_fd, offset, sbytes, headers, trailers, flags);
5204 " trailers=(), flags=0)\n"
5215 int flags);
5221 static const char * const _keywords[] = {"out_fd", "in_fd", "offset", "count", "headers", "trailers", "flags", NULL};
5231 int flags = 0;
5275 flags = _PyLong_AsInt(args[6]);
5276 if (flags == -1 && PyErr_Occurred()) {
5280 return_value = os_sendfile_impl(module, out_fd, in_fd, offset, count, headers, trailers, flags);
5351 "_fcopyfile($module, in_fd, out_fd, flags, /)\n"
5360 os__fcopyfile_impl(PyObject *module, int in_fd, int out_fd, int flags);
5368 int flags;
5381 flags = _PyLong_AsInt(args[2]);
5382 if (flags == -1 && PyErr_Occurred()) {
5385 return_value = os__fcopyfile_impl(module, in_fd, out_fd, flags);
5495 "pipe2($module, flags, /)\n"
5498 "Create a pipe with flags set atomically.\n"
5503 "flags can be constructed by ORing together one or more of these values:\n"
5510 os_pipe2_impl(PyObject *module, int flags);
5516 int flags;
5518 flags = _PyLong_AsInt(arg);
5519 if (flags == -1 && PyErr_Occurred()) {
5522 return_value = os_pipe2_impl(module, flags);
5639 "pwritev($module, fd, buffers, offset, flags=0, /)\n"
5651 "The flags argument contains a bitwise OR of zero or more of the following flags:\n"
5657 "Using non-zero flags requires Linux 4.7 or newer.");
5664 int flags);
5673 int flags = 0;
5690 flags = _PyLong_AsInt(args[3]);
5691 if (flags == -1 && PyErr_Occurred()) {
5695 _return_value = os_pwritev_impl(module, fd, buffers, offset, flags);
5798 " flags=0)\n"
5813 " flags\n"
5826 unsigned int flags);
5832 static const char * const _keywords[] = {"src", "dst", "count", "offset_src", "offset_dst", "flags", NULL};
5841 unsigned int flags = 0;
5882 if (!_PyLong_UnsignedInt_Converter(args[5], &flags)) {
5886 return_value = os_splice_impl(module, src, dst, count, offset_src, offset_dst, flags);
7593 "setxattr($module, /, path, attribute, value, flags=0, *,\n"
7609 Py_buffer *value, int flags, int follow_symlinks);
7615 static const char * const _keywords[] = {"path", "attribute", "value", "flags", "follow_symlinks", NULL};
7622 int flags = 0;
7646 flags = _PyLong_AsInt(args[3]);
7647 if (flags == -1 && PyErr_Occurred()) {
7663 return_value = os_setxattr_impl(module, &path, &attribute, &value, flags, follow_symlinks);
7848 "memfd_create($module, /, name, flags=MFD_CLOEXEC)\n"
7856 os_memfd_create_impl(PyObject *module, PyObject *name, unsigned int flags);
7862 static const char * const _keywords[] = {"name", "flags", NULL};
7867 unsigned int flags = MFD_CLOEXEC;
7879 flags = (unsigned int)PyLong_AsUnsignedLongMask(args[1]);
7880 if (flags == (unsigned int)-1 && PyErr_Occurred()) {
7884 return_value = os_memfd_create_impl(module, name, flags);
7898 "eventfd($module, /, initval, flags=EFD_CLOEXEC)\n"
7907 os_eventfd_impl(PyObject *module, unsigned int initval, int flags);
7913 static const char * const _keywords[] = {"initval", "flags", NULL};
7918 int flags = EFD_CLOEXEC;
7930 flags = _PyLong_AsInt(args[1]);
7931 if (flags == -1 && PyErr_Occurred()) {
7935 return_value = os_eventfd_impl(module, initval, flags);
8605 "getrandom($module, /, size, flags=0)\n"
8614 os_getrandom_impl(PyObject *module, Py_ssize_t size, int flags);
8620 static const char * const _keywords[] = {"size", "flags", NULL};
8625 int flags = 0;
8646 flags = _PyLong_AsInt(args[1]);
8647 if (flags == -1 && PyErr_Occurred()) {
8651 return_value = os_getrandom_impl(module, size, flags);