Lines Matching refs:fd
110 #define cma__issue_io_call(fd) \
111 ( (cma__g_file[fd]->non_blocking) || \
112 (cma__g_file[fd]->user_fl.user_non_blocking) )
183 * To increment count for each bit set in fd - mask
285 #define cma__ts_func(func,fd,arglist,type,post_process) { \
288 if ((fd < 0) || (fd >= cma__g_mx_file)) return (cma__set_errno (EBADF), -1); \
289 if (!cma__is_open(fd)) return (cma__set_errno (EBADF), -1); \
290 cma__fd_reserve (fd); \
291 if (!cma__is_open(fd)) return (cma__set_errno (EBADF), -1); \
292 if (cma__issue_io_call(fd)) {\
293 if ((!cma__g_file[fd]->set_non_blocking) && \
294 (cma__g_file[fd]->non_blocking == cma_c_true)) \
295 cma__set_nonblocking(fd); \
302 cma__fd_unreserve (fd); \
309 || (cma__g_file[fd]->user_fl.user_non_blocking)) \
313 cma__fd_unreserve (fd); \
317 cma__io_prolog (type, fd); \
319 cma__io_wait (type, fd); \
323 || (cma__g_file[fd]->user_fl.user_non_blocking)) \
328 cma__io_epilog (type, fd); \
329 cma__fd_unreserve (fd); \
376 cma__bugcheck ("cma__ts_open: fd is too large"); \
401 cma__bugcheck ("cma__ts_open2: one of fd's is too large"); \
430 cma__is_open (int fd);