Lines Matching refs:oldfd
1443 TSAN_INTERCEPTOR(int, dup, int oldfd) { in TSAN_INTERCEPTOR() argument
1444 SCOPED_TSAN_INTERCEPTOR(dup, oldfd); in TSAN_INTERCEPTOR()
1445 int newfd = REAL(dup)(oldfd); in TSAN_INTERCEPTOR()
1446 if (oldfd >= 0 && newfd >= 0 && newfd != oldfd) in TSAN_INTERCEPTOR()
1447 FdDup(thr, pc, oldfd, newfd, true); in TSAN_INTERCEPTOR()
1451 TSAN_INTERCEPTOR(int, dup2, int oldfd, int newfd) { in TSAN_INTERCEPTOR() argument
1452 SCOPED_TSAN_INTERCEPTOR(dup2, oldfd, newfd); in TSAN_INTERCEPTOR()
1453 int newfd2 = REAL(dup2)(oldfd, newfd); in TSAN_INTERCEPTOR()
1454 if (oldfd >= 0 && newfd2 >= 0 && newfd2 != oldfd) in TSAN_INTERCEPTOR()
1455 FdDup(thr, pc, oldfd, newfd2, false); in TSAN_INTERCEPTOR()
1460 TSAN_INTERCEPTOR(int, dup3, int oldfd, int newfd, int flags) { in TSAN_INTERCEPTOR() argument
1461 SCOPED_TSAN_INTERCEPTOR(dup3, oldfd, newfd, flags); in TSAN_INTERCEPTOR()
1462 int newfd2 = REAL(dup3)(oldfd, newfd, flags); in TSAN_INTERCEPTOR()
1463 if (oldfd >= 0 && newfd2 >= 0 && newfd2 != oldfd) in TSAN_INTERCEPTOR()
1464 FdDup(thr, pc, oldfd, newfd2, false); in TSAN_INTERCEPTOR()