Lines Matching refs:result

98   int result;
101 result);;
102 if (result == OS_ERR) {
109 int fd = result;
113 RESTARTABLE(::write(fd, addr, remaining), result);
114 if (result == OS_ERR) {
121 remaining -= (size_t)result;
122 addr += result;
125 RESTARTABLE(::close(fd), result);
127 if (result == OS_ERR) {
209 int result = 0;
211 RESTARTABLE(::lstat(path, &statbuf), result);
212 if (result == OS_ERR) {
256 int result = getpwuid_r(uid, &pwent, pwbuf, (size_t)bufsize, &p);
364 int result;
374 RESTARTABLE(::lstat(filename, &statbuf), result);
375 if (result == OS_ERR) {
418 int result;
422 RESTARTABLE(::open(psinfo_name, O_RDONLY), result);
424 if (result != OS_ERR) {
425 int fd = result;
432 RESTARTABLE(::read(fd, addr, remaining), result);
433 if (result == OS_ERR) {
436 remaining-=result;
437 addr+=result;
440 RESTARTABLE(::close(fd), result);
448 if (result == OS_ERR && errno == EACCES) {
488 int result;
495 RESTARTABLE(::unlink(path), result);
496 if (PrintMiscellaneous && Verbose && result == OS_ERR) {
613 // JVM instance. However, this could also be the result of a
653 int result;
655 RESTARTABLE(::open(filename, O_RDWR|O_CREAT|O_TRUNC, S_IREAD|S_IWRITE), result);
656 if (result == OS_ERR) {
664 int fd = result;
667 RESTARTABLE(::ftruncate(fd, (off_t)size), result);
668 if (result == OS_ERR) {
672 RESTARTABLE(::close(fd), result);
686 int result;
687 RESTARTABLE(::open(filename, oflags), result);
688 if (result == OS_ERR) {
702 return result;
720 int result;
754 RESTARTABLE(::close(fd), result);
755 assert(result != OS_ERR, "could not close file");
818 int result;
820 RESTARTABLE(::fstat(fd, &statbuf), result);
821 if (result == OS_ERR) {
843 int result;
923 RESTARTABLE(::close(fd), result);
924 assert(result != OS_ERR, "could not close file");