todir
if ((renameat(fromdir, dp->d_name, todir, dp->d_name)) == -1) {
if (todir != -1)
(void) close(todir);
int fromfd, fromdir, tofd, todir, tfd;
fromfd = tofd = fromdir = todir = tfd = -1;
(todir = openat64(tofd, ".", O_RDONLY|O_NONBLOCK|O_XATTR)) == -1) {
move_file(char *fromdir, char *file, char *todir)
if (create_symlink(todir, rname, file) != 0) {
(void) strcpy(to, todir);
create_symlink(char *todir, char *rname, char *lname)
(void) strcpy(lpath, todir);
"%s/%s -> %s\n", todir, lname, rname);
todir, lname, rname);
todir, lname, rname);
static int move_file(char *fromdir, char *file, char *todir);
extern int create_symlink(char *todir, char *rname, char *lname);
strcpy(indexname, todir(argv[1]));
char *todir(char *);
strcpy(nma, todir(argv[1]));
char *todir();