Lines Matching refs:rval
597 int rval; in attr_list_path() local
599 rval = attr_list(name->path, buffer, buffersize, flags, cursor); in attr_list_path()
600 if (rval >= 0 || errno != ENAMETOOLONG) in attr_list_path()
601 return rval; in attr_list_path()
604 rval = attr_list_path(&newname, buffer, buffersize, flags, in attr_list_path()
609 return rval; in attr_list_path()
616 int rval; in attr_remove_path() local
618 rval = attr_remove(name->path, attrname, flags); in attr_remove_path()
619 if (rval >= 0 || errno != ENAMETOOLONG) in attr_remove_path()
620 return rval; in attr_remove_path()
623 rval = attr_remove_path(&newname, attrname, flags); in attr_remove_path()
627 return rval; in attr_remove_path()
636 int rval; in attr_set_path() local
638 rval = attr_set(name->path, attrname, attrvalue, valuelength, flags); in attr_set_path()
639 if (rval >= 0 || errno != ENAMETOOLONG) in attr_set_path()
640 return rval; in attr_set_path()
643 rval = attr_set_path(&newname, attrname, attrvalue, valuelength, in attr_set_path()
648 return rval; in attr_set_path()
670 int rval; in creat_path() local
672 rval = creat(name->path, mode); in creat_path()
673 if (rval >= 0 || errno != ENAMETOOLONG) in creat_path()
674 return rval; in creat_path()
677 rval = creat_path(&newname, mode); in creat_path()
681 return rval; in creat_path()
755 int rval; in doproc() local
782 rval = stat64(".", &statbuf); in doproc()
783 if (rval == EIO) { in doproc()
924 int rval; in lchown_path() local
926 rval = lchown(name->path, owner, group); in lchown_path()
927 if (rval >= 0 || errno != ENAMETOOLONG) in lchown_path()
928 return rval; in lchown_path()
931 rval = lchown_path(&newname, owner, group); in lchown_path()
935 return rval; in lchown_path()
945 int rval; in link_path() local
947 rval = link(name1->path, name2->path); in link_path()
948 if (rval >= 0 || errno != ENAMETOOLONG) in link_path()
949 return rval; in link_path()
954 rval = link_path(&newname1, &newname2); in link_path()
974 rval = link_path(&newname1, &newname2); in link_path()
982 rval = link_path(&newname1, &newname2); in link_path()
989 return rval; in link_path()
996 int rval; in lstat64_path() local
998 rval = lstat64(name->path, sbuf); in lstat64_path()
999 if (rval >= 0 || errno != ENAMETOOLONG) in lstat64_path()
1000 return rval; in lstat64_path()
1003 rval = lstat64_path(&newname, sbuf); in lstat64_path()
1007 return rval; in lstat64_path()
1030 int rval; in mkdir_path() local
1032 rval = mkdir(name->path, mode); in mkdir_path()
1033 if (rval >= 0 || errno != ENAMETOOLONG) in mkdir_path()
1034 return rval; in mkdir_path()
1037 rval = mkdir_path(&newname, mode); in mkdir_path()
1041 return rval; in mkdir_path()
1048 int rval; in mknod_path() local
1050 rval = mknod(name->path, mode, dev); in mknod_path()
1051 if (rval >= 0 || errno != ENAMETOOLONG) in mknod_path()
1052 return rval; in mknod_path()
1055 rval = mknod_path(&newname, mode, dev); in mknod_path()
1059 return rval; in mknod_path()
1086 int rval; in open_path() local
1088 rval = open(name->path, oflag); in open_path()
1089 if (rval >= 0 || errno != ENAMETOOLONG) in open_path()
1090 return rval; in open_path()
1093 rval = open_path(&newname, oflag); in open_path()
1097 return rval; in open_path()
1104 DIR *rval; in opendir_path() local
1106 rval = opendir(name->path); in opendir_path()
1107 if (rval || errno != ENAMETOOLONG) in opendir_path()
1108 return rval; in opendir_path()
1111 rval = opendir_path(&newname); in opendir_path()
1115 return rval; in opendir_path()
1143 int rval; in readlink_path() local
1145 rval = readlink(name->path, lbuf, lbufsiz-1); in readlink_path()
1146 if (rval >= 0) in readlink_path()
1147 lbuf[rval] = '\0'; in readlink_path()
1148 if (rval >= 0 || errno != ENAMETOOLONG) in readlink_path()
1149 return rval; in readlink_path()
1152 rval = readlink_path(&newname, lbuf, lbufsiz); in readlink_path()
1156 return rval; in readlink_path()
1166 int rval; in rename_path() local
1168 rval = rename(name1->path, name2->path); in rename_path()
1169 if (rval >= 0 || errno != ENAMETOOLONG) in rename_path()
1170 return rval; in rename_path()
1175 rval = rename_path(&newname1, &newname2); in rename_path()
1195 rval = rename_path(&newname1, &newname2); in rename_path()
1203 rval = rename_path(&newname1, &newname2); in rename_path()
1210 return rval; in rename_path()
1217 int rval; in rmdir_path() local
1219 rval = rmdir(name->path); in rmdir_path()
1220 if (rval >= 0 || errno != ENAMETOOLONG) in rmdir_path()
1221 return rval; in rmdir_path()
1224 rval = rmdir_path(&newname); in rmdir_path()
1228 return rval; in rmdir_path()
1289 int rval; in stat64_path() local
1291 rval = stat64(name->path, sbuf); in stat64_path()
1292 if (rval >= 0 || errno != ENAMETOOLONG) in stat64_path()
1293 return rval; in stat64_path()
1296 rval = stat64_path(&newname, sbuf); in stat64_path()
1300 return rval; in stat64_path()
1307 int rval; in symlink_path() local
1314 rval = symlink(name1, name->path); in symlink_path()
1315 if (rval >= 0 || errno != ENAMETOOLONG) in symlink_path()
1316 return rval; in symlink_path()
1319 rval = symlink_path(name1, &newname); in symlink_path()
1323 return rval; in symlink_path()
1330 int rval; in truncate64_path() local
1332 rval = truncate64(name->path, length); in truncate64_path()
1333 if (rval >= 0 || errno != ENAMETOOLONG) in truncate64_path()
1334 return rval; in truncate64_path()
1337 rval = truncate64_path(&newname, length); in truncate64_path()
1341 return rval; in truncate64_path()
1348 int rval; in unlink_path() local
1350 rval = unlink(name->path); in unlink_path()
1351 if (rval >= 0 || errno != ENAMETOOLONG) in unlink_path()
1352 return rval; in unlink_path()
1355 rval = unlink_path(&newname); in unlink_path()
1359 return rval; in unlink_path()