if test x$OPSYS != xLINUX; then
AC_CHECK_LIB(nsl, main)
fi
-AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop if_indextoname)
+AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl prctl sendmsg inet_ntop if_indextoname)
AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h stropts.h sys/conf.h sys/stream.h sys/tihdr.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h linux/icmp.h linux/in6.h sys/uio.h sys/aio.h linux/netlink.h linux/if_packet.h poll.h sys/poll.h sys/vfs.h netinet/tcp.h netinet/udp.h asm/sysmips.h linux/utsname.h sys/nscsys.h)
AC_DECL_SYS_ERRLIST
AC_DECL_SYS_SIGLIST
*/
#include "defs.h"
+#include <sys/syscall.h>
#ifdef HAVE_POLL_H
#include <poll.h>
return RVAL_HEX | RVAL_STR;
}
-#ifdef HAVE_PUTPMSG
-
+#if defined SYS_putpmsg || defined SYS_getpmsg
static struct xlat pmsgflags[] = {
#ifdef MSG_HIPRI
{ MSG_HIPRI, "MSG_HIPRI" },
#endif
{ 0, NULL },
};
+#endif
+#ifdef SYS_putpmsg
int
sys_putpmsg(tcp)
struct tcb *tcp;
}
return 0;
}
+#endif /* SYS_putpmsg */
+#ifdef SYS_getpmsg
int
sys_getpmsg(tcp)
struct tcb *tcp;
}
return RVAL_HEX | RVAL_STR;
}
+#endif /* SYS_getpmsg */
-#endif /* HAVE_PUTPMSG */
#endif /* !FREEBSD */
long addr;
int len;
{
- /* We don't know how to tell if TLI (socket) or XTI
+ /* We don't know how to tell if TLI (socket) or XTI
optmgmt is being used yet, assume TLI. */
#if defined (HAVE_OPTHDR)
print_sock_optmgmt (tcp, addr, len);
while (0)
#define COMMA() \
- do { if (c++) tprintf (", "); } while (0)
-
+ do { if (c++) tprintf (", "); } while (0)
+
#define STRUCT(struct, elem, print) \
do { \
while (0)
#define ADDR(struct, elem) STRUCT (struct, elem, printstr)
-
+
switch (m.type) {
#ifdef T_CONN_REQ
case T_CONN_REQ: /* connect request */
#undef ADDR
#undef COMMA
#undef STRUCT
-
+
return 0;
}
return RVAL_STR + 1;
}
}
-
+
return 1;
}
}
}
-#endif /* !linux && !FREEBSD */
+#endif /* !linux && !FREEBSD */
#endif /* HAVE_SYS_STREAM_H || linux || FREEBSD */
-