Lines Matching refs:ret
54 int i, ret = 1;
68 if ((ret = read(0, buf+i, 1)) < 0 || (!ret && !i)) {
70 ret = 1;
73 } else if (!ret || buf[i] == '\n' || buf[i] == '\r') {
74 ret = 0;
86 return ret;
113 int ret = -1, found = 0, n;
129 ret = link(filename, filenamesfx);
130 if (ret < 0) error_msg("can't create backup file");
138 ret = fcntl(fileno(exfp), F_SETLK, &lock);
139 if (ret < 0) perror_msg("Couldn't lock file %s",filename);
146 ret = -1;
151 ret = 0;
194 ret = -1;
199 return ret;