Home
last modified time | relevance | path

Searched refs:infd (Results 1 – 5 of 5) sorted by relevance

/curl/src/
H A Dtool_cb_see.c68 if(LSEEK_ERROR == lseek(per->infd, 0, SEEK_SET)) in tool_seek_cb()
74 if(LSEEK_ERROR == lseek(per->infd, step, SEEK_CUR)) in tool_seek_cb()
83 if(LSEEK_ERROR == lseek(per->infd, offset, whence)) in tool_seek_cb()
H A Dtool_cb_rea.c77 FD_SET(per->infd, &bits); in tool_read_cb()
78 if(!select(per->infd + 1, &bits, NULL, NULL, &timeout)) in tool_read_cb()
84 rc = read(per->infd, buffer, sz*nmemb); in tool_read_cb()
H A Dtool_operate.h47 int infd; member
H A Dtool_operate.c375 per->infd = -1; in pre_transfer()
385 per->infd = open(per->uploadfile, O_RDONLY | O_BINARY, in pre_transfer()
389 if(per->infd == -1) in pre_transfer()
391 per->infd = open(per->uploadfile, O_RDONLY | O_BINARY); in pre_transfer()
392 if((per->infd == -1) || fstat(per->infd, &fileinfo)) in pre_transfer()
396 if(per->infd != -1) { in pre_transfer()
397 close(per->infd); in pre_transfer()
398 per->infd = STDIN_FILENO; in pre_transfer()
470 close(per->infd); in post_per_transfer()
2095 per->infd = STDIN_FILENO; in single_transfer()
[all …]
/curl/docs/examples/
H A Dsendrecv.c37 fd_set infd, outfd, errfd; in wait_on_socket() local
43 FD_ZERO(&infd); in wait_on_socket()
61 FD_SET(sockfd, &infd); in wait_on_socket()
73 res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv); in wait_on_socket()

Completed in 12 milliseconds