1 Index: src/support/filetools.C
2 ===================================================================
3 RCS file: /cvs/lyx/lyx-devel/src/support/filetools.C,v
4 retrieving revision 1.209
5 diff -u -r1.209 filetools.C
6 --- src/support/filetools.C 2005/04/21 14:03:30 1.209
7 +++ src/support/filetools.C 2005/04/26 15:43:13
10 cmd_ret const RunCommand(string const & cmd)
13 + // TODO: Implement this, or merge it into forkedcall.
14 + // Used for lyx2lyx in buffer.C, echo in math_extern and kpse in this file
15 + return make_pair(-1, string());
17 // FIXME: replace all calls to RunCommand with ForkedCall
18 // (if the output is not needed) or the code in ispell.C
19 // (if the output is needed).
21 perror("RunCommand:: could not terminate child process");
23 return make_pair(pret, ret);
28 Index: src/support/tempname.C
29 ===================================================================
30 RCS file: /cvs/lyx/lyx-devel/src/support/tempname.C,v
31 retrieving revision 1.26
32 diff -u -r1.26 tempname.C
33 --- src/support/tempname.C 2005/04/26 10:30:24 1.26
34 +++ src/support/tempname.C 2005/04/26 15:51:22
43 using boost::scoped_array;
48 #if defined(HAVE_MKSTEMP)
49 return ::mkstemp(templ);
50 +#elif defined(_WIN32)
52 + return (int) ::fopen(templ, "w");
53 #elif defined(HAVE_MKTEMP)
54 // This probably just barely works...
58 string const tmpdir(dir.empty() ? package().temp_dir() : dir);
59 string tmpfl(AddName(tmpdir, mask));
61 tmpfl += convert<string>(getpid());
65 // The supposedly safe mkstemp version
67 int const tmpf = make_tempfile(tmpl.get());
69 string const t(tmpl.get());
71 + ::fclose((FILE *) tmpf);
75 lyxerr[Debug::FILES] << "Temporary file `" << t
76 << "' created." << endl;