Lines Matching refs:result

96   int result;
99 result);;
100 if (result == OS_ERR) {
106 int fd = result;
110 RESTARTABLE(::write(fd, addr, remaining), result);
111 if (result == OS_ERR) {
119 remaining -= (size_t)result;
120 addr += result;
123 RESTARTABLE(::close(fd), result);
125 if (result == OS_ERR) {
207 int result = 0;
209 RESTARTABLE(::lstat(path, &statbuf), result);
210 if (result == OS_ERR) {
254 int result = getpwuid_r(uid, &pwent, pwbuf, (size_t)bufsize, &p);
256 if (result != 0 || p == NULL || p->pw_name == NULL || *(p->pw_name) == '\0') {
258 if (result != 0) {
260 strerror(result));
270 // message may result in an erroneous message.
373 int result;
383 RESTARTABLE(::lstat(filename, &statbuf), result);
384 if (result == OS_ERR) {
451 int result;
458 RESTARTABLE(::unlink(path), result);
459 if (PrintMiscellaneous && Verbose && result == OS_ERR) {
576 // JVM instance. However, this could also be the result of a
616 int result;
618 RESTARTABLE(::open(filename, O_RDWR|O_CREAT|O_TRUNC, S_IREAD|S_IWRITE), result);
619 if (result == OS_ERR) {
627 int fd = result;
630 RESTARTABLE(::ftruncate(fd, (off_t)size), result);
631 if (result == OS_ERR) {
635 RESTARTABLE(::close(fd), result);
645 result = (int)os::seek_to_file_offset(fd, (jlong)(seekpos));
646 if (result == -1 ) break;
647 RESTARTABLE(::write(fd, &zero_int, 1), result);
648 if (result != 1) {
656 if (result != -1) {
659 RESTARTABLE(::close(fd), result);
671 int result;
672 RESTARTABLE(::open(filename, oflags), result);
673 if (result == OS_ERR) {
687 return result;
705 int result;
739 RESTARTABLE(::close(fd), result);
740 assert(result != OS_ERR, "could not close file");
803 int result;
805 RESTARTABLE(::fstat(fd, &statbuf), result);
806 if (result == OS_ERR) {
828 int result;
908 RESTARTABLE(::close(fd), result);
909 assert(result != OS_ERR, "could not close file");