Lines Matching refs:ret
123 int ret;
129 ret = safedirpath(".", uid, gid, user,
135 ret = safedirpath(fn, uid, gid, user,
139 if (ret == 0)
150 ret = errno;
152 sm_dprintf("\t%s\n", sm_errstring(ret));
153 return ret;
163 int ret;
168 ret = safedirpath(".", uid, gid, user, flags, 0, 0);
173 ret = safedirpath(fn, uid, gid, user, flags, 0, 0);
176 if (ret != 0)
177 return ret;
187 int ret = file_errno;
191 sm_dprintf("\t%s\n", sm_errstring(ret));
195 return ret;
209 ret = 0;
241 ret = errno = EACCES;
244 ret = errno;
249 sm_errstring(ret));
253 return ret;
403 int ret = 0;
475 ret = lstat(s, &stbuf);
477 ret = stat(s, &stbuf);
479 if (ret < 0)
481 ret = errno;
498 ret = errno;
504 ret = errno = EINVAL;
562 ret = EINVAL;
573 ret = EINVAL;
579 ret = safedirpath(target, uid, gid, user, flags,
581 if (ret != 0)
602 ret = E_SM_WWDIR;
604 ret = E_SM_GWDIR;
622 ret = EACCES;
658 ret = EACCES;
664 ret == 0 ? "OK" : sm_errstring(ret));
665 return ret;