Searched refs:from_fd (Results 1 - 8 of 8) sorted by relevance

/freebsd-9.3-release/contrib/nvi/ex/
H A Dtag.h27 int from_fd; /* from cscope: file descriptor. */ member in struct:_csc
H A Dex_cscope.c422 csc->from_fd = from_cs[0];
/freebsd-9.3-release/bin/mv/
H A Dmv.c280 int nread, from_fd, to_fd; local
282 if ((from_fd = open(from, O_RDONLY, 0)) < 0) {
301 (void)close(from_fd);
304 while ((nread = read(from_fd, bp, (size_t)blen)) > 0)
313 (void)close(from_fd);
336 preserve_fd_acls(from_fd, to_fd, from, to);
337 (void)close(from_fd);
/freebsd-9.3-release/bin/cp/
H A Dutils.c80 int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0; local
86 if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) {
106 (void)close(from_fd);
115 (void)close(from_fd);
141 (void)close(from_fd);
159 MAP_SHARED, from_fd, (off_t)0)) != MAP_FAILED) {
205 while ((rcount = read(from_fd, buf, bufsize)) > 0) {
250 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0)
258 (void)close(from_fd);
/freebsd-9.3-release/usr.bin/xinstall/
H A Dxinstall.c720 int devnull, files_match, from_fd, serrno, target; local
726 from_fd = -1;
779 if (!devnull && (from_fd = open(from_name, O_RDONLY, 0)) < 0)
789 files_match = !(compare(from_fd, from_name,
813 digestresult = copy(from_fd, from_name, to_fd,
990 (void)close(from_fd);
1001 compare(int from_fd, const char *from_name __unused, size_t from_len, argument
1018 if (trymmap(from_fd) && trymmap(to_fd)) {
1020 from_fd, (off_t)0);
1044 lseek(from_fd,
1144 copy(int from_fd, const char *from_name, int to_fd, const char *to_name, off_t size) argument
[all...]
/freebsd-9.3-release/usr.sbin/config/
H A Dmain.c549 int from_fd, to_fd; local
553 if ((from_fd = open(from_name, O_RDONLY)) < 0)
559 if (!changed && fstat(from_fd, &from_sb) < 0)
571 p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0);
/freebsd-9.3-release/usr.sbin/nfsd/
H A Dnfsd.c1041 copy_stable(int from_fd, int to_fd) argument
1046 ret = lseek(from_fd, (off_t)0, SEEK_SET);
1053 cnt = read(from_fd, buf, 1024);
/freebsd-9.3-release/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c687 int from_fd, rcount, to_fd, wcount; local
689 if ((from_fd = open(from, O_RDONLY, 0)) < 0)
693 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) {

Completed in 204 milliseconds