• Home
  • Raw
  • Download

Lines Matching refs:cpathname

787 check_compiled_module(char *pathname, time_t mtime, char *cpathname)  in check_compiled_module()  argument
793 fp = fopen(cpathname, "rb"); in check_compiled_module()
799 PySys_WriteStderr("# %s has bad magic\n", cpathname); in check_compiled_module()
806 PySys_WriteStderr("# %s has bad mtime\n", cpathname); in check_compiled_module()
811 PySys_WriteStderr("# %s matches %s\n", cpathname, pathname); in check_compiled_module()
819 read_compiled_module(char *cpathname, FILE *fp) in read_compiled_module() argument
828 "Non-code object in %.200s", cpathname); in read_compiled_module()
840 load_compiled_module(char *name, char *cpathname, FILE *fp) in load_compiled_module() argument
849 "Bad magic number in %.200s", cpathname); in load_compiled_module()
853 co = read_compiled_module(cpathname, fp); in load_compiled_module()
858 name, cpathname); in load_compiled_module()
859 m = PyImport_ExecCodeModuleEx(name, (PyObject *)co, cpathname); in load_compiled_module()
929 write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat, time_t mtime) in write_compiled_module() argument
944 fp = open_exclusive(cpathname, mode); in write_compiled_module()
948 "# can't create %s\n", cpathname); in write_compiled_module()
957 PySys_WriteStderr("# can't write %s\n", cpathname); in write_compiled_module()
960 (void) unlink(cpathname); in write_compiled_module()
970 PySys_WriteStderr("# wrote %s\n", cpathname); in write_compiled_module()
1059 char *cpathname; in load_source_module() local
1090 cpathname = make_compiled_pathname(pathname, buf, in load_source_module()
1092 if (cpathname != NULL && in load_source_module()
1093 (fpc = check_compiled_module(pathname, mtime, cpathname))) { in load_source_module()
1094 co = read_compiled_module(cpathname, fpc); in load_source_module()
1102 name, cpathname); in load_source_module()
1103 pathname = cpathname; in load_source_module()
1112 if (cpathname) { in load_source_module()
1118 write_compiled_module(co, cpathname, &st, mtime); in load_source_module()