Lines Matching refs:result

325     off_t result = lseek(sim_fd, offs, whence);
327 return (result == (off_t)-1) ? -errno : result;
349 uint64_t result = lseek(sim_fd, offset, whence);
350 result = TheISA::htog(result);
352 if (result == (off_t)-1)
355 BufferArg result_buf(result_ptr, sizeof(result));
356 memcpy(result_buf.bufferPtr(), &result, sizeof(result));
393 int result = 0;
408 result = cwd.length();
411 result = strlen((char *)buf.bufferPtr());
413 result = -1;
419 return (result == -1) ? -errno : result;
445 int result = -1;
447 result = readlink(path.c_str(), (char *)buf.bufferPtr(), bufsiz);
452 // the simulated system will result in unexpected behavior if:
456 // simulation to another. This can result in different simulated
472 result = bufsiz;
474 result = real_path_len;
485 return (result == -1) ? -errno : result;
505 int result = unlink(path.c_str());
506 return (result == -1) ? -errno : result;
526 int result = link(path.c_str(), new_path.c_str());
527 return (result == -1) ? -errno : result;
547 int result = symlink(path.c_str(), new_path.c_str());
548 return (result == -1) ? -errno : result;
563 auto result = mkdir(path.c_str(), mode);
564 return (result == -1) ? -errno : result;
590 int64_t result = rename(old_name.c_str(), new_name.c_str());
591 return (result == -1) ? -errno : result;
609 int result = truncate(path.c_str(), length);
610 return (result == -1) ? -errno : result;
626 int result = ftruncate(sim_fd, length);
627 return (result == -1) ? -errno : result;
648 int result = truncate(path.c_str(), length);
650 int result = truncate64(path.c_str(), length);
652 return (result == -1) ? -errno : result;
669 int result = ftruncate(sim_fd, length);
671 int result = ftruncate64(sim_fd, length);
673 return (result == -1) ? -errno : result;
706 int result = chown(path.c_str(), hostOwner, hostGroup);
707 return (result == -1) ? -errno : result;
728 int result = fchown(sim_fd, hostOwner, hostGroup);
729 return (result == -1) ? -errno : result;
750 int result = dup(sim_fd);
751 if (result == -1)
755 new_hbfdp->setSimFD(result);
1139 int result = fallocate(sim_fd, mode, offset, len);
1140 if (result < 0)
1162 int result = access(path.c_str(), mode);
1163 return (result == -1) ? -errno : result;
1185 auto result = mknod(path.c_str(), mode, dev);
1186 return (result == -1) ? -errno : result;
1207 int result = chdir(host_cwd.c_str());
1209 if (result == -1)
1214 return result;
1228 auto result = rmdir(path.c_str());
1229 return (result == -1) ? -errno : result;