1 /* Host-dependent code for GDB, for NYU Ultra3 running Sym1 OS.
2 Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
3 Contributed by David Wood (wood@nyu.edu) at New York University.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
28 #include <sys/types.h>
29 #include <sys/param.h>
31 #include <sys/ioctl.h>
39 /* Assorted operating system circumventions */
43 /* FIXME: Kludge this for now. It really should be system call. */
48 /* FIXME: Fake out the fcntl() call, which we don't have. */
54 case F_GETFL
: return(O_RDONLY
); break;
56 printf_unfiltered("Ultra3's fcntl() failing, cmd = %d.\n",cmd
);
63 * 4.2 Signal support, requires linking with libjobs.
66 #define sigbit(s) (1L << ((s)-1))
70 /* Taken from the sym1 kernel in machdep.c:startup() */
71 _SigMask
= sigbit (SIGTSTP
) | sigbit (SIGTTOU
) | sigbit (SIGTTIN
) |
72 sigbit (SIGCHLD
) | sigbit (SIGTINT
);
78 return (1 << (signo
-1));
85 int lastmask
= _SigMask
;
87 for (i
=0 ; i
<NSIG
; i
++) {
89 if (!(_SigMask
& mask
)) {
93 } else if (_SigMask
& mask
) {
103 unsigned int sigmask
;
106 int lastmask
= _SigMask
;
108 for (i
=0 ; i
<NSIG
; i
++) {
109 if ((sigmask
& mask
) && !(_SigMask
& mask
)) {
120 /* Initialization code for this module. */
123 _initialize_ultra3 ()
This page took 0.031881 seconds and 4 git commands to generate.