|
|
| version 1.13, 2025/04/09 19:52:02 | version 1.14, 2026/01/07 19:51:33 |
|---|---|
| Line 25 | Line 25 |
| * 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.14 2026/01/07 19:51:33 snw | |
| * Fix segfault in reverse $QUERY | |
| * | |
| * Revision 1.13 2025/04/09 19:52:02 snw | * Revision 1.13 2025/04/09 19:52:02 snw |
| * Eliminate as many warnings as possible while building with -Wall | * Eliminate as many warnings as possible while building with -Wall |
| * | * |
| Line 68 | Line 71 |
| #define MAXZAS NESTLEVLS | #define MAXZAS NESTLEVLS |
| #include "mpsdef.h" | #include "mpsdef.h" |
| #include "shmmgr.h" | |
| #include <time.h> | #include <time.h> |
| Line 94 int scosgr (short att, short bwflag); | Line 98 int scosgr (short att, short bwflag); |
| # endif | # endif |
| # define termio termios | # define termio termios |
| # else | # else |
| # if !defined(MSDOS) | # if !defined(MSDOS) && !defined(__linux__) |
| # include <termio.h> | # include <termio.h> |
| # endif | # else |
| # if defined(__OS2__) | |
| # include <termios.h> | # include <termios.h> |
| # define termio termios | # define termio termios |
| # endif | # endif |
| Line 106 int scosgr (short att, short bwflag); | Line 109 int scosgr (short att, short bwflag); |
| # 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 4341 int locking (int fd, int action, long co | Line 4345 int locking (int fd, int action, long co |
| struct flock lock; | struct flock lock; |
| /* skip locking if we own the TP semaphore */ | |
| if (shm_config->hdr->tp_owner == pid) { | |
| return 0; | |
| } | |
| lock.l_whence = 1; /* lock from current position */ | lock.l_whence = 1; /* lock from current position */ |
| lock.l_start = 0; | lock.l_start = 0; |
| lock.l_len = count; | lock.l_len = count; |