--- freem/src/service.c	2025/01/19 02:04:04	1.1.1.1
+++ freem/src/service.c	2025/03/09 19:50:47	1.7
@@ -1,24 +1,12 @@
 /*
- *                            *
- *                           * *
- *                          *   *
- *                     ***************
- *                      * *       * *
- *                       *  MUMPS  *
- *                      * *       * *
- *                     ***************
- *                          *   *
- *                           * *
- *                            *
- *
- *   service.c
+ *   $Id: service.c,v 1.7 2025/03/09 19:50:47 snw Exp $
  *    terminal and sequential I/O handling,
  *    file and global locking
  *
  *  
- *   Author: Serena Willis <jpw@coherent-logic.com>
+ *   Author: Serena Willis <snw@coherent-logic.com>
  *    Copyright (C) 1998 MUG Deutschland
- *    Copyright (C) 2020 Coherent Logic Development LLC
+ *    Copyright (C) 2020, 2025 Coherent Logic Development LLC
  *
  *
  *   This file is part of FreeM.
@@ -36,6 +24,13 @@
  *   You should have received a copy of the GNU Affero Public License
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *
+ *   $Log: service.c,v $
+ *   Revision 1.7  2025/03/09 19:50:47  snw
+ *   Second phase of REUSE compliance and header reformat
+ *
+ *
+ * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  **/
 
 #include <errno.h>
@@ -65,16 +60,30 @@
 #include "events.h"
 
 long int tell ();
-unsigned alarm ();
-void    ris ();
-
+void ris (struct vtstyp *scr);
 
 #ifdef SCO
 int scosgr (short att, short bwflag);
 #endif
 
 /* system services */
-#include <termios.h>
+#if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(EMSCRIPTEN)
+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__AMIGA)
+#  include <termios.h>
+#  if !defined(__AMIGA)
+#   define TCGETA TIOCGETA
+#   define TCSETA TIOCSETA
+#  endif
+#  define termio termios
+# else
+#  if !defined(MSDOS)
+#    include <termio.h>
+#  endif
+# endif
+#else
+# include <termios.h>
+#endif
+
 #include <fcntl.h>
 
 /* search 'string' for occurence of 'pattrn'
@@ -3352,7 +3361,7 @@ void write_t (short int col)
 
 }					/* end of write_t() */
 
-void ontimo ()
+void ontimo (void)
 {					/* handle timeout (for read) */
     longjmp (sjbuf, 1);
 }					/* end of ontimo() */