Lines Matching refs:d2
71 struct hurd_fd *d2; in __dup3() local
81 d2 = _hurd_alloc_fd (NULL, fd2); in __dup3()
82 if (d2) in __dup3()
83 __spin_unlock (&d2->port.lock); in __dup3()
88 d2 = _hurd_dtable[fd2]; in __dup3()
89 if (d2 == NULL) in __dup3()
96 d2 = _hurd_dtable[fd2] = _hurd_new_fd (MACH_PORT_NULL, in __dup3()
102 if (d2 == NULL) in __dup3()
118 __spin_lock (&d2->port.lock); in __dup3()
120 d2->flags = d_flags | FD_CLOEXEC; in __dup3()
123 d2->flags = d_flags & ~FD_CLOEXEC; in __dup3()
124 _hurd_port_set (&d2->ctty, ctty); in __dup3()
125 _hurd_port_locked_set (&d2->port, port); /* Unlocks D2. */ in __dup3()