diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
commit | fba45db2faf619e71856ee38ec63949c0ef6903e (patch) | |
tree | 107efc21d2b12f54d84b59e75251449e3d5fd096 /gdb/ultra3-xdep.c | |
parent | 29e6d33b03a5e39540d17bc8235573b1dac13341 (diff) | |
download | gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.zip gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.gz gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/ultra3-xdep.c')
-rw-r--r-- | gdb/ultra3-xdep.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/gdb/ultra3-xdep.c b/gdb/ultra3-xdep.c index 83aa770..c1b91c4 100644 --- a/gdb/ultra3-xdep.c +++ b/gdb/ultra3-xdep.c @@ -43,14 +43,13 @@ /* FIXME: Kludge this for now. It really should be system call. */ int -getpagesize () +getpagesize (void) { return (8192); } /* FIXME: Fake out the fcntl() call, which we don't have. */ -fcntl (fd, cmd, arg) - int fd, cmd, arg; +fcntl (int fd, int cmd, int arg) { switch (cmd) @@ -71,21 +70,19 @@ fcntl (fd, cmd, arg) static int _SigMask; #define sigbit(s) (1L << ((s)-1)) -init_SigMask () +init_SigMask (void) { /* Taken from the sym1 kernel in machdep.c:startup() */ _SigMask = sigbit (SIGTSTP) | sigbit (SIGTTOU) | sigbit (SIGTTIN) | sigbit (SIGCHLD) | sigbit (SIGTINT); } -sigmask (signo) - int signo; +sigmask (int signo) { return (1 << (signo - 1)); } -sigsetmask (sigmask) - unsigned int sigmask; +sigsetmask (unsigned int sigmask) { int i, mask = 1; int lastmask = _SigMask; @@ -110,8 +107,7 @@ sigsetmask (sigmask) return (lastmask); } -sigblock (sigmask) - unsigned int sigmask; +sigblock (unsigned int sigmask) { int i, mask = 1; int lastmask = _SigMask; @@ -133,7 +129,7 @@ sigblock (sigmask) /* Initialization code for this module. */ void -_initialize_ultra3 () +_initialize_ultra3 (void) { #ifdef SYM1 init_SigMask (); |