|
|
| version 1.7, 2025/04/02 03:02:42 | version 1.9, 2026/01/07 19:51:33 |
|---|---|
| Line 24 | Line 24 |
| * along with FreeM. If not, see <https://www.gnu.org/licenses/>. | * along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
| * | * |
| * $Log$ | * $Log$ |
| * Revision 1.9 2026/01/07 19:51:33 snw | |
| * Fix segfault in reverse $QUERY | |
| * | |
| * Revision 1.8 2025/04/09 19:52:02 snw | |
| * Eliminate as many warnings as possible while building with -Wall | |
| * | |
| * Revision 1.7 2025/04/02 03:02:42 snw | * Revision 1.7 2025/04/02 03:02:42 snw |
| * Stop requiring users to pass -e to fmadm when -u or -g are passed | * Stop requiring users to pass -e to fmadm when -u or -g are passed |
| * | * |
| Line 46 | Line 52 |
| #include <signal.h> | #include <signal.h> |
| #if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__linux__) | |
| #include <sys/ioctl.h> | |
| #endif | |
| #if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(EMSCRIPTEN) | #if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(EMSCRIPTEN) |
| # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__AMIGA) | # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__AMIGA) |
| # include <termios.h> | # include <termios.h> |
| Line 55 | Line 66 |
| # endif | # endif |
| # define termio termios | # define termio termios |
| # else | # else |
| # if !defined(MSDOS) | # if !defined(MSDOS) && !defined(__linux__) |
| # include <termio.h> | # include <termio.h> |
| # else | |
| # include <termios.h> | |
| # define termio termios | |
| # endif | # endif |
| # endif | # endif |
| #else | #else |
| Line 69 | Line 83 |
| #endif /* __CYGWIN__ */ | #endif /* __CYGWIN__ */ |
| #include <errno.h> /* snw */ | #include <errno.h> /* snw */ |
| #if defined(__NetBSD__) || defined(__OpenBSD__) | |
| #include <sys/ioctl.h> | |
| #endif | |
| #include <fcntl.h> | #include <fcntl.h> |
| #include <unistd.h> | #include <unistd.h> |
| Line 105 void view_com (void) | Line 116 void view_com (void) |
| { | { |
| /* process VIEW command */ | /* process VIEW command */ |
| char tmp[256]; | |
| char tmp2[256]; | |
| int arg1; | int arg1; |
| register long int i; | register long int i; |
| register long int j; | register long int j; |