--- freem/src/views.c 2025/01/19 02:04:04 1.1.1.1 +++ freem/src/views.c 2025/04/02 03:02:42 1.7 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * views.c + * $Id: views.c,v 1.7 2025/04/02 03:02:42 snw Exp $ * implementation of VIEW command and $VIEW intrinsic function * * - * 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. @@ -35,6 +23,16 @@ * You should have received a copy of the GNU Affero Public License * along with FreeM. If not, see <https://www.gnu.org/licenses/>. * + * $Log: views.c,v $ + * Revision 1.7 2025/04/02 03:02:42 snw + * Stop requiring users to pass -e to fmadm when -u or -g are passed + * + * Revision 1.6 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 <stdlib.h> @@ -43,7 +41,6 @@ #include "mwapi_window.h" #define LOCK 'l' -#define ZDEALLOCATE 'D' /* system services */ @@ -70,7 +67,11 @@ #ifdef __CYGWIN__ #include <errno.h> #endif /* __CYGWIN__ */ -#include <errno.h> //jpw +#include <errno.h> /* snw */ + +#if defined(__NetBSD__) || defined(__OpenBSD__) +#include <sys/ioctl.h> +#endif #include <fcntl.h> #include <unistd.h> @@ -100,7 +101,7 @@ void destroy(GtkWidget* widget, gpointer #endif -void view_com () +void view_com (void) { /* process VIEW command */