Lines Matching refs:fd
340 int fd = (int)((long)thefd);
342 return close(fd);
348 static apr_status_t sock_read(int fd, void *vbuf, size_t buf_size)
356 rc = read(fd, buf + bytes_read, buf_size - bytes_read);
373 static apr_status_t sock_write(int fd, const void *buf, size_t buf_size)
378 rc = write(fd, buf, buf_size);
387 static apr_status_t sock_writev(int fd, request_rec *r, int count, ...)
403 rc = writev(fd, vec, count);
412 static apr_status_t get_req(int fd, request_rec *r, char **argv0, char ***env,
424 stat = sock_read(fd, req, sizeof(*req));
446 if ((stat = sock_read(fd, r->filename, req->filename_len)) != APR_SUCCESS ||
447 (stat = sock_read(fd, *argv0, req->argv0_len)) != APR_SUCCESS ||
448 (stat = sock_read(fd, r->uri, req->uri_len)) != APR_SUCCESS) {
454 if ((stat = sock_read(fd, r->args, req->args_len)) != APR_SUCCESS) {
464 if ((stat = sock_read(fd, &curlen, sizeof(curlen))) != APR_SUCCESS) {
468 if ((stat = sock_read(fd, environ[i], curlen)) != APR_SUCCESS) {
475 if ((stat = sock_read(fd, &(req->limits), sizeof(cgid_rlimit_t))) != APR_SUCCESS)
482 static apr_status_t send_req(int fd, request_rec *r, char *argv0, char **env,
512 stat = sock_writev(fd, r, 5,
519 stat = sock_writev(fd, r, 4,
534 if ((stat = sock_writev(fd, r, 2, &curlen, sizeof(curlen),
571 if ( (stat = sock_write(fd, &(req.limits), sizeof(cgid_rlimit_t))) != APR_SUCCESS)