1 /* asyn_close() - forcefully forget about a file descriptor
7 int asyn_close(asynchio_t
*asyn
, int fd
)
8 /* Stop caring about any async operations on this file descriptor. */
13 if ((unsigned) fd
>= FD_SETSIZE
) { errno
= EBADF
; return -1; }
15 afd
= &asyn
->asyn_afd
[fd
];
17 for (op
= 0; op
< SEL_NR
; op
++) {
18 afd
->afd_state
[op
]= IDLE
;
19 FD_CLR(fd
, &asyn
->asyn_fdset
[op
]);