diff options
| author | Gerd Moellmann | 2000-05-16 11:14:18 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-05-16 11:14:18 +0000 |
| commit | f1d367aa475ce0004972e50fc2cdcfdaa4bd8852 (patch) | |
| tree | fce5f0c30ee58b9103192ec73de07d217526db1f /src | |
| parent | f9bbcfac509d6b6706d32bd2c3789e98b9c8ae4d (diff) | |
| download | emacs-f1d367aa475ce0004972e50fc2cdcfdaa4bd8852.tar.gz emacs-f1d367aa475ce0004972e50fc2cdcfdaa4bd8852.zip | |
(get_boot_time): To obtain an 8 char file name, which
is needed on mescaline, use a 2 char prefix, and call
make_temp_name with second arg non-zero.
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/filelock.c b/src/filelock.c index 02b3ccc8b05..71fa7867cf0 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -203,9 +203,15 @@ get_boot_time () | |||
| 203 | if (! NILP (Ffile_exists_p (tempname))) | 203 | if (! NILP (Ffile_exists_p (tempname))) |
| 204 | { | 204 | { |
| 205 | Lisp_Object args[6]; | 205 | Lisp_Object args[6]; |
| 206 | tempname = Fexpand_file_name (build_string ("wtmp"), | 206 | |
| 207 | /* The utmp functions on mescaline.gnu.org accept only | ||
| 208 | file names up to 8 characters long. Choose a 2 | ||
| 209 | character long prefix, and call make_temp_file with | ||
| 210 | second arg non-zero, so that it will add not more | ||
| 211 | than 6 characters to the prefix. */ | ||
| 212 | tempname = Fexpand_file_name (build_string ("wt"), | ||
| 207 | Vtemporary_file_directory); | 213 | Vtemporary_file_directory); |
| 208 | tempname = Fmake_temp_name (tempname); | 214 | tempname = make_temp_name (tempname, 1); |
| 209 | args[0] = Vshell_file_name; | 215 | args[0] = Vshell_file_name; |
| 210 | args[1] = Qnil; | 216 | args[1] = Qnil; |
| 211 | args[2] = Qnil; | 217 | args[2] = Qnil; |