<nic(a)niss.ac.uk> writes:
nic(a)niss.ac.uk wrote on 19-April-2000:
->My brain hurts just reading this (well the Unix98 pty bit anyway).
->
->I thought I'd forward first and check later, since many of you will be
->able to verify any of these problems quicker than I can.
1. Improper permissions on slave PTYs
Err, we don't support Unix98 ptys as far as I can tell, is that
correct?
Don't we? I distinctly remember Unix98 PTY patches for XEmacs, some
time ago. I found this in process.h:
#ifdef HAVE_GETPT
#define PTY_ITERATION
#define PTY_OPEN \
if ((fd = getpt()) < 0 || grantpt (fd) < 0 || unlockpt (fd) < 0) \
return -1;
#define PTY_NAME_SPRINTF
#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ptsname (fd));
#endif
2. Unsafe creation of temporary files
Stating-the-obvious. If FSF Emacs 21 has make-temp-file we could
steal it. We do support the TMPDIR variable,
though. cf. temp-directory.
The semantics of make-temp-file is unclear to me. Emacs doesn't
really support a concept of "file descriptors" to which you write. We
have buffers which may or may not be visiting a file. So what will
make-temp-file do, exactly?