diff options
| author | Eli Zaretskii | 2022-04-10 15:44:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-04-10 15:44:11 +0300 |
| commit | e8d2f40f41b09ec5e4b4eebe6441927e8d1dc434 (patch) | |
| tree | b86c821076391e231199fb3fd8a728cb7a206c26 /src | |
| parent | 338eda09d88d83d408c0bba1448b1c9eabad2d02 (diff) | |
| download | emacs-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.h | 9 |
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 */ |
| 25 | struct terminal; | ||
| 26 | |||
| 27 | extern unsigned int _dos_commit(int); | ||
| 28 | #define tcdrain(f) _dos_commit(f) | ||
| 25 | 29 | ||
| 26 | int dos_ttraw (struct tty_display_info *); | 30 | int dos_ttraw (struct tty_display_info *); |
| 27 | int dos_ttcooked (void); | 31 | int dos_ttcooked (void); |
| @@ -57,6 +61,11 @@ ssize_t readlinkat (int, const char *, char *, size_t); | |||
| 57 | int fstatat (int, char const *, struct stat *, int); | 61 | int fstatat (int, char const *, struct stat *, int); |
| 58 | int unsetenv (const char *); | 62 | int unsetenv (const char *); |
| 59 | int faccessat (int, const char *, int, int); | 63 | int faccessat (int, const char *, int, int); |
| 64 | int openat (int, const char *, int, int); | ||
| 65 | int fchmodat (int, const char *, mode_t, int); | ||
| 66 | int futimens (int, const struct timespec[2]); | ||
| 67 | int utimensat (int, const char *, const struct timespec[2], int); | ||
| 68 | |||
| 60 | void msdos_fatal_signal (int); | 69 | void msdos_fatal_signal (int); |
| 61 | void syms_of_msdos (void); | 70 | void syms_of_msdos (void); |
| 62 | int pthread_sigmask (int, const sigset_t *, sigset_t *); | 71 | int pthread_sigmask (int, const sigset_t *, sigset_t *); |