aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-04-10 15:44:11 +0300
committerEli Zaretskii2022-04-10 15:44:11 +0300
commite8d2f40f41b09ec5e4b4eebe6441927e8d1dc434 (patch)
treeb86c821076391e231199fb3fd8a728cb7a206c26 /src
parent338eda09d88d83d408c0bba1448b1c9eabad2d02 (diff)
downloademacs-e8d2f40f41b09ec5e4b4eebe6441927e8d1dc434.tar.gz
emacs-e8d2f40f41b09ec5e4b4eebe6441927e8d1dc434.zip
Clean up the MSDOS port
* src/msdos.h (tcdrain): Redirect to '_dos_commit'. (openat, fchmodat, futimens, utimensat): Add prototypes. * msdos/sed1v2.inp (MAKE_PDUMPER_FINGERPRINT): Fix indentation, so that Make won't consider this line a command. ($(etc)/DOC): Chdir back to ../src, since "make-docfile -d" leaves us in a wrong directory. * msdos/sedlibmk.inp (GL_GNULIB_GETRANDOM, GL_GNULIB_MEMMEM) (GL_GNULIB_SIGDESCR_NP): Define to 1, to get the prototypes from Gnulib headers.
Diffstat (limited to 'src')
-rw-r--r--src/msdos.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/msdos.h b/src/msdos.h
index 7e57c7c1102..24697bcf24b 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -22,6 +22,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
22#include <dpmi.h> 22#include <dpmi.h>
23 23
24#include "termhooks.h" /* struct terminal */ 24#include "termhooks.h" /* struct terminal */
25struct terminal;
26
27extern unsigned int _dos_commit(int);
28#define tcdrain(f) _dos_commit(f)
25 29
26int dos_ttraw (struct tty_display_info *); 30int dos_ttraw (struct tty_display_info *);
27int dos_ttcooked (void); 31int dos_ttcooked (void);
@@ -57,6 +61,11 @@ ssize_t readlinkat (int, const char *, char *, size_t);
57int fstatat (int, char const *, struct stat *, int); 61int fstatat (int, char const *, struct stat *, int);
58int unsetenv (const char *); 62int unsetenv (const char *);
59int faccessat (int, const char *, int, int); 63int faccessat (int, const char *, int, int);
64int openat (int, const char *, int, int);
65int fchmodat (int, const char *, mode_t, int);
66int futimens (int, const struct timespec[2]);
67int utimensat (int, const char *, const struct timespec[2], int);
68
60void msdos_fatal_signal (int); 69void msdos_fatal_signal (int);
61void syms_of_msdos (void); 70void syms_of_msdos (void);
62int pthread_sigmask (int, const sigset_t *, sigset_t *); 71int pthread_sigmask (int, const sigset_t *, sigset_t *);