Lines Matching refs:atomic_flag_works
1329 set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
1344 /* atomic_flag_works can only be used to make the file descriptor
1346 assert(!(atomic_flag_works != NULL && inheritable));
1348 if (atomic_flag_works != NULL && !inheritable) {
1349 if (*atomic_flag_works == -1) {
1353 *atomic_flag_works = !isInheritable;
1356 if (*atomic_flag_works)
1473 If atomic_flag_works is not NULL:
1475 * if *atomic_flag_works==-1, check if the inheritable is set on the file
1476 descriptor: if yes, set *atomic_flag_works to 1, otherwise set to 0 and
1478 * if *atomic_flag_works==1: do nothing
1479 * if *atomic_flag_works==0: set inheritable flag to False
1481 Set atomic_flag_works to NULL if no atomic flag was used to create the
1484 atomic_flag_works can only be used to make a file descriptor
1485 non-inheritable: atomic_flag_works must be NULL if inheritable=1. */
1487 _Py_set_inheritable(int fd, int inheritable, int *atomic_flag_works)
1489 return set_inheritable(fd, inheritable, 1, atomic_flag_works);
1496 _Py_set_inheritable_async_safe(int fd, int inheritable, int *atomic_flag_works)
1498 return set_inheritable(fd, inheritable, 0, atomic_flag_works);
1507 int *atomic_flag_works;
1513 atomic_flag_works = &_Py_open_cloexec_works;
1516 atomic_flag_works = NULL;
1553 if (set_inheritable(fd, 0, gil_held, atomic_flag_works) < 0) {