1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-04-15 16:11:01 +00:00
Commit Graph

16 Commits

Author SHA1 Message Date
Olaf Seibert
ce2cd448af Remove some CENV_SYS_* defines.
I was hoping to remove more of them: at least CENV_SYS_BSD for example which
would allow removing several more.
Unfortunately CENV_SYS_BSD is used in tape control behaviour checks.
There is no way of checking those with configure. Worse, how well tape
worked on various Unixen when the tape code was written may be totally
different in later versions.
For signal handling I could at least remove CENV_SYS_BSD by implementing
the suggestion to use sigvec(2) (now deprecated). Falling back to plain
V7-style signal(2) is probably not good enough, so that is an error case
now. Fortunately that is totally unneeded on any modern Unix.
2021-08-20 13:07:29 +02:00
Olaf Seibert
a08599f109 Simplify includes in osdsup.c
by just using configure to find out which headers exist, rather than
guessing based on dubious system guesses.
2021-08-20 13:07:29 +02:00
Olaf Seibert
ea4eb1adf6 Always include "cenv.h" or "klh10.h" as very first.
"klh10.h" includes "cenv.h".
This is possibly needed on systems that need some defines before
including system headers, for Long File Support.
I either moved an existing include line up or added #include "cenv.h"
where none of these was included before.

Note that most of the definitions in the "cenv.h" file are, or should be,
obsolete. Where still relevant, they should be detected by the
configure script.
2021-08-17 14:23:11 +02:00
Olaf Seibert
94ec1830ca Attempt to clean up compiler warnings
as given in https://cirrus-ci.com/task/5117093567791104?command=main
2020-08-29 22:13:09 +02:00
Olaf Seibert
ff6ce33f28 #define IPC_[RW] if missing. 2016-12-17 14:14:13 +01:00
Olaf Seibert
d218e5b03f Replace 0600 in shmget(2) call with symbolic constants.
Inspired by Rich Alderson's MacOS 10.6.8 changes.
He used IPC_CREAT+IPC_PRIVATE+IPC_R+IPC_W.
However, IPC_PRIVATE is a special value for the key argument, not shmflg.
Furthermore, adding IPC_CREAT to the flags when the key is IPC_PRIVATE
seems unnecessary but should not harm.

See http://pubs.opengroup.org/onlinepubs/9699919799/functions/shmget.html
for the "IEEE Std 1003.1-2008, 2016 Edition" version of shmget(2).
2016-11-27 17:10:00 +01:00
Olaf Seibert
1a512d7628 More HAVE_MLOCKALL. 2016-01-25 23:08:02 +01:00
Olaf Seibert
105ec2c0a8 Use configure for mlockall(2).
The set of OSes for was inconsistent and wrong (NetBSD has it too).
2016-01-25 01:14:49 +01:00
Olaf Seibert
d0f53b8cc9 Replace CENV_SYSF_SIGSET with HAVE_SIGACTION 2016-01-21 21:19:46 +01:00
Olaf Seibert
e3e86227de Replace CENV_SYSF_BSDTIMEVAL with HAVE_SETITIMER and HAVE_GETTIMEOFDAY 2016-01-21 19:52:40 +01:00
Olaf Seibert
14ba9636cd Eliminate CENV_SYSF_NANOSLEEP and use HAVE_NANOSLEEP instead 2016-01-21 00:42:41 +01:00
Olaf Seibert
2b48b63e74 Eliminate CENV_SYS_STRERROR, use configure checks instead 2016-01-21 00:02:22 +01:00
Olaf Seibert
9312579251 clang-suggested changes, mostly wrt -Wparentheses
warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
2016-01-11 00:24:46 +01:00
Olaf Seibert
9800c5b768 Fix some undeclared functions
by adding the proper #includes.
gcc warned with "warning: incompatible implicit declaration of built-in
function 'foo'".
2015-05-04 00:47:36 +02:00
Olaf Seibert
58b59dbaa1 Overlay panda-dist/klh10-2.0h
by the late MRC, Mark Crispin.
Source: probably the former http://panda.com/tops-20/ .
panda-dist.tar.gz dated Mar 30  2007.
2015-04-27 23:07:21 +02:00
Olaf Seibert
742b43d025 Initial import of klh10-2.0a.tgz
dated Nov 19  2001.
Source: http://klh10.trailing-edge.com/
2015-04-27 22:54:12 +02:00