| /NextBSD/contrib/apr/file_io/unix/ |
| HD | readwrite.c | 28 static apr_status_t file_read_buffered(apr_file_t *thefile, void *buf, in file_read_buffered() argument 36 if (thefile->direction == 1) { in file_read_buffered() 37 rv = apr_file_flush_locked(thefile); in file_read_buffered() 41 thefile->bufpos = 0; in file_read_buffered() 42 thefile->direction = 0; in file_read_buffered() 43 thefile->dataRead = 0; in file_read_buffered() 47 if (thefile->ungetchar != -1) { in file_read_buffered() 48 *pos = (char)thefile->ungetchar; in file_read_buffered() 51 thefile->ungetchar = -1; in file_read_buffered() 54 if (thefile->bufpos >= thefile->dataRead) { in file_read_buffered() [all …]
|
| HD | seek.c | 19 static apr_status_t setptr(apr_file_t *thefile, apr_off_t pos ) in setptr() argument 24 if (thefile->direction == 1) { in setptr() 25 rv = apr_file_flush_locked(thefile); in setptr() 29 thefile->bufpos = thefile->direction = thefile->dataRead = 0; in setptr() 32 newbufpos = pos - (thefile->filePtr - thefile->dataRead); in setptr() 33 if (newbufpos >= 0 && newbufpos <= thefile->dataRead) { in setptr() 34 thefile->bufpos = newbufpos; in setptr() 38 if (lseek(thefile->filedes, pos, SEEK_SET) != -1) { in setptr() 39 thefile->bufpos = thefile->dataRead = 0; in setptr() 40 thefile->filePtr = pos; in setptr() [all …]
|
| HD | open.c | 71 apr_status_t apr_unix_file_cleanup(void *thefile) in apr_unix_file_cleanup() argument 73 apr_file_t *file = thefile; in apr_unix_file_cleanup() 85 apr_status_t apr_unix_child_file_cleanup(void *thefile) in apr_unix_child_file_cleanup() argument 87 return file_cleanup(thefile, 1); in apr_unix_child_file_cleanup() 278 APR_DECLARE(apr_status_t) apr_os_file_get(apr_os_file_t *thefile, in apr_os_file_get() argument 281 *thefile = file->filedes; in apr_os_file_get() 286 apr_os_file_t *thefile, in apr_os_file_put() argument 289 int *dafile = thefile; in apr_os_file_put() 333 APR_DECLARE(apr_status_t) apr_file_open_flags_stderr(apr_file_t **thefile, in apr_file_open_flags_stderr() argument 339 return apr_os_file_put(thefile, &fd, flags | APR_FOPEN_WRITE, pool); in apr_file_open_flags_stderr() [all …]
|
| HD | fullrw.c | 20 APR_DECLARE(apr_status_t) apr_file_read_full(apr_file_t *thefile, void *buf, in apr_file_read_full() argument 30 status = apr_file_read(thefile, buf, &amt); in apr_file_read_full() 42 APR_DECLARE(apr_status_t) apr_file_write_full(apr_file_t *thefile, in apr_file_write_full() argument 53 status = apr_file_write(thefile, buf, &amt); in apr_file_write_full() 65 APR_DECLARE(apr_status_t) apr_file_writev_full(apr_file_t *thefile, in apr_file_writev_full() argument 79 rv = apr_file_writev(thefile, vec, nvec, &amt); in apr_file_writev_full() 98 rv = apr_file_write_full(thefile, (const char *)vec[i].iov_base + amt, in apr_file_writev_full() 103 rv = apr_file_write_full(thefile, vec[i].iov_base, in apr_file_writev_full()
|
| HD | filestat.c | 130 apr_file_t *thefile) in apr_file_info_get_locked() argument 134 if (thefile->buffered) { in apr_file_info_get_locked() 135 apr_status_t rv = apr_file_flush_locked(thefile); in apr_file_info_get_locked() 140 if (fstat(thefile->filedes, &info) == 0) { in apr_file_info_get_locked() 141 finfo->pool = thefile->pool; in apr_file_info_get_locked() 142 finfo->fname = thefile->fname; in apr_file_info_get_locked() 153 apr_file_t *thefile) in apr_file_info_get() argument 157 if (thefile->buffered) { in apr_file_info_get() 158 apr_status_t rv = apr_file_flush(thefile); in apr_file_info_get() 163 if (fstat(thefile->filedes, &info) == 0) { in apr_file_info_get() [all …]
|
| HD | flock.c | 26 APR_DECLARE(apr_status_t) apr_file_lock(apr_file_t *thefile, int type) in apr_file_lock() argument 46 while ((rc = fcntl(thefile->filedes, fc, &l)) < 0 && errno == EINTR) in apr_file_lock() 72 while ((rc = flock(thefile->filedes, ltype)) < 0 && errno == EINTR) in apr_file_lock() 85 APR_DECLARE(apr_status_t) apr_file_unlock(apr_file_t *thefile) in apr_file_unlock() argument 99 while ((rc = fcntl(thefile->filedes, F_SETLKW, &l)) < 0 in apr_file_unlock() 109 while ((rc = flock(thefile->filedes, LOCK_UN)) < 0 && errno == EINTR) in apr_file_unlock()
|
| HD | pipe.c | 137 apr_os_file_t *thefile, in apr_os_pipe_put_ex() argument 141 int *dafile = thefile; in apr_os_pipe_put_ex() 173 apr_os_file_t *thefile, in apr_os_pipe_put() argument 176 return apr_os_pipe_put_ex(file, thefile, 0, pool); in apr_os_pipe_put()
|
| HD | fileacc.c | 23 apr_file_t *thefile) in apr_file_name_get() argument 25 *fname = thefile->fname; in apr_file_name_get()
|
| /NextBSD/contrib/apr/include/ |
| HD | apr_file_io.h | 346 APR_DECLARE(apr_status_t) apr_file_open_stderr(apr_file_t **thefile, 356 APR_DECLARE(apr_status_t) apr_file_open_stdout(apr_file_t **thefile, 366 APR_DECLARE(apr_status_t) apr_file_open_stdin(apr_file_t **thefile, 386 APR_DECLARE(apr_status_t) apr_file_open_flags_stderr(apr_file_t **thefile, 407 APR_DECLARE(apr_status_t) apr_file_open_flags_stdout(apr_file_t **thefile, 428 APR_DECLARE(apr_status_t) apr_file_open_flags_stdin(apr_file_t **thefile, 449 APR_DECLARE(apr_status_t) apr_file_read(apr_file_t *thefile, void *buf, 467 APR_DECLARE(apr_status_t) apr_file_write(apr_file_t *thefile, const void *buf, 485 APR_DECLARE(apr_status_t) apr_file_writev(apr_file_t *thefile, 509 APR_DECLARE(apr_status_t) apr_file_read_full(apr_file_t *thefile, void *buf, [all …]
|
| HD | apr_portable.h | 224 APR_DECLARE(apr_status_t) apr_os_file_get(apr_os_file_t *thefile, 342 apr_os_file_t *thefile, 354 apr_os_file_t *thefile, 368 apr_os_file_t *thefile,
|
| /NextBSD/contrib/apr-util/test/ |
| HD | testldap.c | 78 apr_file_t *thefile = NULL; in get_ldap_host() local 82 rv = apr_file_open(&thefile, FILENAME, in get_ldap_host() 89 rv = apr_file_gets(ldap_host, sizeof(ldap_host), thefile); in get_ldap_host() 98 apr_file_close(thefile); in get_ldap_host()
|
| /NextBSD/contrib/apr/include/arch/unix/ |
| HD | apr_arch_file_io.h | 168 apr_status_t apr_file_flush_locked(apr_file_t *thefile); 170 apr_file_t *thefile);
|
| /NextBSD/contrib/netbsd-tests/lib/librumphijack/ |
| HD | t_sh.sh | 75 atf_check -s exit:0 -o inline:"${exout}\n" cat /rump/thefile
|