1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
- #include <netdissect-stdinc.h>
- #ifndef HAVE___ATTRIBUTE__
- #define __attribute__(x)
- #endif
- #ifdef __osf__
- #include <sys/sysinfo.h>
- #include <sys/proc.h>
- #if !defined(HAVE_SNPRINTF)
- int snprintf(char *, size_t, const char *, ...)
- #ifdef __ATTRIBUTE___FORMAT_OK
- __attribute__((format(printf, 3, 4)))
- #endif
- ;
- #endif
- #endif
- #include "machdep.h"
- int
- abort_on_misalignment(char *ebuf _U_, size_t ebufsiz _U_)
- {
- #ifdef __osf__
- static int buf[2] = { SSIN_UACPROC, UAC_SIGBUS };
- if (setsysinfo(SSI_NVPAIRS, (caddr_t)buf, 1, 0, 0) < 0) {
- (void)snprintf(ebuf, ebufsiz, "setsysinfo: errno %d", errno);
- return (-1);
- }
- #endif
- return (0);
- }
|