1 /* Host-dependent code for GDB, for NYU Ultra3 running Sym1 OS.
2 Copyright 1988, 1989, 1991, 1992, 1993, 1995, 2000
3 Free Software Foundation, Inc.
4 Contributed by David Wood (wood@nyu.edu) at New York University.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
30 #include <sys/types.h>
31 #include <sys/param.h>
33 #include <sys/ioctl.h>
41 /* Assorted operating system circumventions */
45 /* FIXME: Kludge this for now. It really should be system call. */
52 /* FIXME: Fake out the fcntl() call, which we don't have. */
53 fcntl (int fd
, int cmd
, int arg
)
62 printf_unfiltered ("Ultra3's fcntl() failing, cmd = %d.\n", cmd
);
69 * 4.2 Signal support, requires linking with libjobs.
72 #define sigbit(s) (1L << ((s)-1))
76 /* Taken from the sym1 kernel in machdep.c:startup() */
77 _SigMask
= sigbit (SIGTSTP
) | sigbit (SIGTTOU
) | sigbit (SIGTTIN
) |
78 sigbit (SIGCHLD
) | sigbit (SIGTINT
);
83 return (1 << (signo
- 1));
86 sigsetmask (unsigned int sigmask
)
89 int lastmask
= _SigMask
;
91 for (i
= 0; i
< NSIG
; i
++)
95 if (!(_SigMask
& mask
))
101 else if (_SigMask
& mask
)
111 sigblock (unsigned int sigmask
)
114 int lastmask
= _SigMask
;
116 for (i
= 0; i
< NSIG
; i
++)
118 if ((sigmask
& mask
) && !(_SigMask
& mask
))
130 /* Initialization code for this module. */
133 _initialize_ultra3 (void)
This page took 0.046497 seconds and 4 git commands to generate.