Lines Matching defs:from

480  * from="-" maps to from=""
485 mapset(Table_t* tab, const char* from, int fromsize, register const char* to, int tosize)
497 if (!fromsize && (!from || !from[0] || from[0] == '-' && !from[1]) || fromsize == 1 && from[0] == '-')
499 from = state.null;
507 message((-2, "mount: %-*s %-*s", from == state.null ? 1 : fromsize ? fromsize : strlen(from), from == state.null ? "-" : from, to == state.null ? 1 : tosize ? tosize : strlen(to), to == state.null ? "-" : to));
513 return special(to, tosize, from, fromsize);
515 if (!*from)
528 * so we have to believe from and to here
531 return search(tab, from, fromsize, to, tosize) ? 0 : -1;
533 n = *(from + fromsize);
534 *((char*)from + fromsize) = 0;
540 if (!pathreal(from, P_PATHONLY|P_ABSOLUTE|P_NOSLASH, NiL))
544 *((char*)from + fromsize) = n;
547 from = (const char*)state.path.name;
550 fromsize = strlen(from);
551 old = search(tab, from, fromsize, NiL, *to ? 0 : T_DELETE);
554 search(&state.vmount, from, fromsize, NiL, T_DELETE);
569 search(tab, from, fromsize, to, tosize|T_ALLOCATE);
591 strncpy(buf, from, PATH_MAX);
606 * initialize mappings from space separated pairs in buf
614 register char* from;
634 for (from = bp; *bp && *bp != ' '; bp++);
637 fromsize = bp - from;
649 if (mapset(&state.vpath, from, fromsize, to, tosize))
652 message((-1, "TABLE %-*s -> %-*s FAILED", fromsize, from, tosize, to));
654 message((-1, "TABLE %s -> %s FAILED", from, to));
663 if (mapset(&state.vpath, from, fromsize, to, tosize) || state.table.version != TABLE_VERSION)