/freebsd-12-stable/contrib/apr/file_io/unix/ |
H A D | readwrite.c | 28 static apr_status_t file_read_buffered(apr_file_t *thefile, void *buf, argument 36 if (thefile->direction == 1) { 37 rv = apr_file_flush_locked(thefile); 41 thefile->bufpos = 0; 42 thefile->direction = 0; 43 thefile->dataRead = 0; 47 if (thefile->ungetchar != -1) { 48 *pos = (char)thefile->ungetchar; 51 thefile->ungetchar = -1; 54 if (thefile 309 apr_file_flush_locked(apr_file_t *thefile) argument [all...] |
H A D | seek.c | 19 static apr_status_t setptr(apr_file_t *thefile, apr_off_t pos ) argument 24 if (thefile->direction == 1) { 25 rv = apr_file_flush_locked(thefile); 29 thefile->bufpos = thefile->direction = thefile->dataRead = 0; 32 newbufpos = pos - (thefile->filePtr - thefile->dataRead); 33 if (newbufpos >= 0 && newbufpos <= thefile->dataRead) { 34 thefile [all...] |
H A D | fullrw.c | 20 APR_DECLARE(apr_status_t) apr_file_read_full(apr_file_t *thefile, void *buf, 30 status = apr_file_read(thefile, buf, &amt); 42 APR_DECLARE(apr_status_t) apr_file_write_full(apr_file_t *thefile, 53 status = apr_file_write(thefile, buf, &amt); 65 APR_DECLARE(apr_status_t) apr_file_writev_full(apr_file_t *thefile, 79 rv = apr_file_writev(thefile, vec, nvec, &amt); 98 rv = apr_file_write_full(thefile, (const char *)vec[i].iov_base + amt, 103 rv = apr_file_write_full(thefile, vec[i].iov_base,
|
H A D | open.c | 71 apr_status_t apr_unix_file_cleanup(void *thefile) argument 73 apr_file_t *file = thefile; 85 apr_status_t apr_unix_child_file_cleanup(void *thefile) argument 87 return file_cleanup(thefile, 1); 278 APR_DECLARE(apr_status_t) apr_os_file_get(apr_os_file_t *thefile, 281 *thefile = file->filedes; 286 apr_os_file_t *thefile, 289 int *dafile = thefile; 333 APR_DECLARE(apr_status_t) apr_file_open_flags_stderr(apr_file_t **thefile, 339 return apr_os_file_put(thefile, [all...] |
H A D | flock.c | 26 APR_DECLARE(apr_status_t) apr_file_lock(apr_file_t *thefile, int type) 46 while ((rc = fcntl(thefile->filedes, fc, &l)) < 0 && errno == EINTR) 72 while ((rc = flock(thefile->filedes, ltype)) < 0 && errno == EINTR) 85 APR_DECLARE(apr_status_t) apr_file_unlock(apr_file_t *thefile) 99 while ((rc = fcntl(thefile->filedes, F_SETLKW, &l)) < 0 109 while ((rc = flock(thefile->filedes, LOCK_UN)) < 0 && errno == EINTR)
|
H A D | filestat.c | 130 apr_file_t *thefile) 134 if (thefile->buffered) { 135 apr_status_t rv = apr_file_flush_locked(thefile); 140 if (fstat(thefile->filedes, &info) == 0) { 141 finfo->pool = thefile->pool; 142 finfo->fname = thefile->fname; 153 apr_file_t *thefile) 157 if (thefile->buffered) { 158 apr_status_t rv = apr_file_flush(thefile); 163 if (fstat(thefile 129 apr_file_info_get_locked(apr_finfo_t *finfo, apr_int32_t wanted, apr_file_t *thefile) argument [all...] |
H A D | fileacc.c | 23 apr_file_t *thefile) 25 *fname = thefile->fname;
|
H A D | pipe.c | 137 apr_os_file_t *thefile, 141 int *dafile = thefile; 173 apr_os_file_t *thefile, 176 return apr_os_pipe_put_ex(file, thefile, 0, pool);
|
/freebsd-12-stable/contrib/apr/include/ |
H A D | apr_file_io.h | 337 * @param thefile The apr file to use as stderr. 350 APR_DECLARE(apr_status_t) apr_file_open_stderr(apr_file_t **thefile, 355 * @param thefile The apr file to use as stdout. 360 APR_DECLARE(apr_status_t) apr_file_open_stdout(apr_file_t **thefile, 365 * @param thefile The apr file to use as stdin. 370 APR_DECLARE(apr_status_t) apr_file_open_stdin(apr_file_t **thefile, 375 * @param thefile The apr file to use as stderr. 390 APR_DECLARE(apr_status_t) apr_file_open_flags_stderr(apr_file_t **thefile, 396 * @param thefile The apr file to use as stdout. 411 APR_DECLARE(apr_status_t) apr_file_open_flags_stdout(apr_file_t **thefile, 603 APR_DECLARE(apr_status_t) apr_file_flush(apr_file_t *thefile); variable 609 APR_DECLARE(apr_status_t) apr_file_sync(apr_file_t *thefile); variable 615 APR_DECLARE(apr_status_t) apr_file_datasync(apr_file_t *thefile); variable 674 APR_DECLARE(apr_size_t) apr_file_buffer_size_get(apr_file_t *thefile); variable 804 APR_DECLARE(apr_status_t) apr_file_unlock(apr_file_t *thefile); variable [all...] |
H A D | apr_portable.h | 226 * @param thefile The os specific file we are converting to 231 APR_DECLARE(apr_status_t) apr_os_file_get(apr_os_file_t *thefile, 355 * @param thefile The os specific file to convert 362 apr_os_file_t *thefile, 368 * @param thefile The os specific pipe to convert 374 apr_os_file_t *thefile, 380 * @param thefile The os specific pipe to convert 388 apr_os_file_t *thefile,
|
/freebsd-12-stable/contrib/apr-util/test/ |
H A D | testldap.c | 78 apr_file_t *thefile = NULL; local 82 rv = apr_file_open(&thefile, FILENAME, 89 rv = apr_file_gets(ldap_host, sizeof(ldap_host), thefile); 98 apr_file_close(thefile);
|
/freebsd-12-stable/contrib/apr/include/arch/unix/ |
H A D | apr_arch_file_io.h | 168 apr_status_t apr_file_flush_locked(apr_file_t *thefile); 170 apr_file_t *thefile);
|
/freebsd-12-stable/contrib/netbsd-tests/lib/librumphijack/ |
H A D | t_sh.sh | 71 echo "echo $exout > /rump/thefile" > thescript 75 atf_check -s exit:0 -o inline:"${exout}\n" cat /rump/thefile 78 echo "cat < /rump/thefile" > thescript
|