version 1.2, 2025/02/25 18:53:14
|
version 1.7, 2025/03/09 19:50:47
|
Line 1
|
Line 1
|
/* |
/* |
* * |
* $Id$ |
* * * |
|
* * * |
|
* *************** |
|
* * * * * |
|
* * MUMPS * |
|
* * * * * |
|
* *************** |
|
* * * |
|
* * * |
|
* * |
|
* |
|
* service.c |
|
* terminal and sequential I/O handling, |
* terminal and sequential I/O handling, |
* file and global locking |
* 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) 1998 MUG Deutschland |
* Copyright (C) 2020 Coherent Logic Development LLC |
* Copyright (C) 2020, 2025 Coherent Logic Development LLC |
* |
* |
* |
* |
* This file is part of FreeM. |
* This file is part of FreeM. |
Line 36
|
Line 24
|
* You should have received a copy of the GNU Affero Public License |
* You should have received a copy of the GNU Affero Public License |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
|
* $Log$ |
|
* 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> |
#include <errno.h> |
Line 65
|
Line 60
|
#include "events.h" |
#include "events.h" |
|
|
long int tell (); |
long int tell (); |
unsigned alarm (); |
void ris (struct vtstyp *scr); |
void ris (); |
|
|
|
|
|
#ifdef SCO |
#ifdef SCO |
int scosgr (short att, short bwflag); |
int scosgr (short att, short bwflag); |
#endif |
#endif |
|
|
/* system services */ |
/* system services */ |
#if defined(__sun) || defined(__FreeBSD__) || defined(__NetBSD__) |
#if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(EMSCRIPTEN) |
# include <termio.h> |
# 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 |
#else |
# include <termios.h> |
# include <termios.h> |
#endif |
#endif |
|
|
#include <fcntl.h> |
#include <fcntl.h> |
|
|
/* search 'string' for occurence of 'pattrn' |
/* search 'string' for occurence of 'pattrn' |
Line 3356 void write_t (short int col)
|
Line 3361 void write_t (short int col)
|
|
|
} /* end of write_t() */ |
} /* end of write_t() */ |
|
|
void ontimo () |
void ontimo (void) |
{ /* handle timeout (for read) */ |
{ /* handle timeout (for read) */ |
longjmp (sjbuf, 1); |
longjmp (sjbuf, 1); |
} /* end of ontimo() */ |
} /* end of ontimo() */ |