OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:wantfd
(Results
1 - 4
of
4
) sorted by null
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
freopen.c
71
int flags, isopen, oflags, sverrno,
wantfd
;
local
100
wantfd
= -1;
107
if (((
wantfd
= fp->_file) >= 0) && isopen) {
130
if (isopen && (f !=
wantfd
))
174
if (
wantfd
>= 0 && f !=
wantfd
) {
175
if (dup2(f,
wantfd
) >= 0) {
177
f =
wantfd
;
/bionic/libc/stdio/
stdio.cpp
284
int isopen,
wantfd
;
local
288
wantfd
= -1;
295
if ((
wantfd
= fp->_file) < 0 && isopen) {
317
if (isopen && fd !=
wantfd
) (*fp->_close)(fp->_cookie);
340
if (
wantfd
>= 0 && fd !=
wantfd
) {
341
if (dup3(fd,
wantfd
, mode_flags & O_CLOEXEC) >= 0) {
343
fd =
wantfd
;
/prebuilts/go/darwin-x86/src/os/exec/
exec_test.go
781
for
wantfd
:= basefds() + 1;
wantfd
<= 100;
wantfd
++ {
782
if
wantfd
== poll.PollDescriptor() {
787
fmt.Printf("error opening file with expected fd %d: %v",
wantfd
, err)
790
if got := f.Fd(); got !=
wantfd
{
791
fmt.Printf("leaked parent file. fd = %d; want %d\n", got,
wantfd
)
811
// executing the
wantfd
loop above. It doesn't matter
/prebuilts/go/linux-x86/src/os/exec/
exec_test.go
781
for
wantfd
:= basefds() + 1;
wantfd
<= 100;
wantfd
++ {
782
if
wantfd
== poll.PollDescriptor() {
787
fmt.Printf("error opening file with expected fd %d: %v",
wantfd
, err)
790
if got := f.Fd(); got !=
wantfd
{
791
fmt.Printf("leaked parent file. fd = %d; want %d\n", got,
wantfd
)
811
// executing the
wantfd
loop above. It doesn't matter
Completed in 115 milliseconds