Lines Matching refs:bufp
852 int bufp, bufe, bufi, readlen; in movefiles() local
883 bufp = 0; in movefiles()
888 bufi = bufp; in movefiles()
894 ALOGV("Processing line: %s\n", buf+bufp); in movefiles()
896 while (bufp < bufi && isspace(buf[bufp])) { in movefiles()
898 bufp++; in movefiles()
900 if (buf[bufp] == '#' || bufp == bufi) { in movefiles()
905 UPDATE_COMMANDS_DIR_PREFIX, name, buf+bufp); in movefiles()
909 ALOGV("Move file: %s (from %s to %s)\n", buf+bufp, srcpkg, dstpkg); in movefiles()
910 if (!create_move_path(srcpath, srcpkg, buf+bufp, 0) && in movefiles()
911 !create_move_path(dstpath, dstpkg, buf+bufp, 0)) { in movefiles()
913 strlen(dstpath)-strlen(buf+bufp), in movefiles()
918 char* div = strchr(buf+bufp, ':'); in movefiles()
921 UPDATE_COMMANDS_DIR_PREFIX, name, buf+bufp); in movefiles()
925 if (strlen(buf+bufp) < PKG_NAME_MAX) { in movefiles()
926 strcpy(dstpkg, buf+bufp); in movefiles()
930 UPDATE_COMMANDS_DIR_PREFIX, name, buf+bufp); in movefiles()
973 bufp = bufi+1; in movefiles()
975 if (bufp == 0) { in movefiles()
976 if (bufp < bufe) { in movefiles()
980 } else if (bufp < bufe) { in movefiles()
981 memcpy(buf, buf+bufp, bufe-bufp); in movefiles()
982 bufe -= bufp; in movefiles()
983 bufp = 0; in movefiles()