1050 sigwait(sigset_t *set)
1051 {
1052 return (sigtimedwait(set, NULL, NULL));
1053 }
1054
1055 int
1056 sigwaitinfo(const sigset_t *set, siginfo_t *info)
1057 {
1058 return (sigtimedwait(set, info, NULL));
1059 }
1060
1061 int
1062 sigqueue(pid_t pid, int signo, const union sigval value)
1063 {
1064 extern int __sigqueue(pid_t pid, int signo,
1065 /* const union sigval */ void *value, int si_code, int block);
1066 return (__sigqueue(pid, signo, value.sival_ptr, SI_QUEUE, 0));
1067 }
1068
1069 int
1070 _so_accept(int sock, struct sockaddr *addr, uint_t *addrlen, int version,
1071 int flags)
1072 {
1073 extern int __so_accept(int, struct sockaddr *, uint_t *, int, int);
1074 int rv;
1075
1076 PERFORM(__so_accept(sock, addr, addrlen, version, flags))
1077 }
1078
1079 int
1080 _so_connect(int sock, struct sockaddr *addr, uint_t addrlen, int version)
1081 {
1082 extern int __so_connect(int, struct sockaddr *, uint_t, int);
1083 int rv;
1084
1085 PERFORM(__so_connect(sock, addr, addrlen, version))
1086 }
1087
1088 int
1089 _so_recv(int sock, void *buf, size_t len, int flags)
1090 {
1091 extern int __so_recv(int, void *, size_t, int);
1092 int rv;
1093
1094 PERFORM(__so_recv(sock, buf, len, flags))
1095 }
1096
1097 int
1098 _so_recvfrom(int sock, void *buf, size_t len, int flags,
1099 struct sockaddr *addr, int *addrlen)
1100 {
1101 extern int __so_recvfrom(int, void *, size_t, int,
1102 struct sockaddr *, int *);
1103 int rv;
1104
1105 PERFORM(__so_recvfrom(sock, buf, len, flags, addr, addrlen))
1106 }
1107
1108 int
1109 _so_recvmsg(int sock, struct msghdr *msg, int flags)
1110 {
1111 extern int __so_recvmsg(int, struct msghdr *, int);
1112 int rv;
1113
1114 PERFORM(__so_recvmsg(sock, msg, flags))
1115 }
1116
1117 int
1118 _so_send(int sock, const void *buf, size_t len, int flags)
1119 {
1120 extern int __so_send(int, const void *, size_t, int);
1121 int rv;
1122
1123 PERFORM(__so_send(sock, buf, len, flags))
1124 }
1125
1126 int
1127 _so_sendmsg(int sock, const struct msghdr *msg, int flags)
1128 {
1129 extern int __so_sendmsg(int, const struct msghdr *, int);
1130 int rv;
1131
1132 PERFORM(__so_sendmsg(sock, msg, flags))
1133 }
1134
1135 int
1136 _so_sendto(int sock, const void *buf, size_t len, int flags,
1137 const struct sockaddr *addr, int *addrlen)
1138 {
1139 extern int __so_sendto(int, const void *, size_t, int,
1140 const struct sockaddr *, int *);
1141 int rv;
1142
1143 PERFORM(__so_sendto(sock, buf, len, flags, addr, addrlen))
1144 }
1145
1146 int
1147 tcdrain(int fildes)
1148 {
1149 extern int __tcdrain(int);
1150 int rv;
1151
1152 PERFORM(__tcdrain(fildes))
1153 }
1154
1155 int
1156 waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
1157 {
1158 extern int __waitid(idtype_t, id_t, siginfo_t *, int);
1159 int rv;
1160
|
1050 sigwait(sigset_t *set)
1051 {
1052 return (sigtimedwait(set, NULL, NULL));
1053 }
1054
1055 int
1056 sigwaitinfo(const sigset_t *set, siginfo_t *info)
1057 {
1058 return (sigtimedwait(set, info, NULL));
1059 }
1060
1061 int
1062 sigqueue(pid_t pid, int signo, const union sigval value)
1063 {
1064 extern int __sigqueue(pid_t pid, int signo,
1065 /* const union sigval */ void *value, int si_code, int block);
1066 return (__sigqueue(pid, signo, value.sival_ptr, SI_QUEUE, 0));
1067 }
1068
1069 int
1070 _so_accept(int sock, struct sockaddr *addr, socklen_t *addrlen,
1071 int version, int flags)
1072 {
1073 extern int __so_accept(int, struct sockaddr *, socklen_t *, int, int);
1074 int rv;
1075
1076 PERFORM(__so_accept(sock, addr, addrlen, version, flags))
1077 }
1078
1079 int
1080 _so_connect(int sock, const struct sockaddr *addr, socklen_t addrlen,
1081 int version)
1082 {
1083 extern int __so_connect(int, const struct sockaddr *, socklen_t, int);
1084 int rv;
1085
1086 PERFORM(__so_connect(sock, addr, addrlen, version))
1087 }
1088
1089 ssize_t
1090 _so_recv(int sock, void *buf, size_t len, int flags)
1091 {
1092 extern ssize_t __so_recv(int, void *, size_t, int);
1093 int rv;
1094
1095 PERFORM(__so_recv(sock, buf, len, flags))
1096 }
1097
1098 ssize_t
1099 _so_recvfrom(int sock, void *buf, size_t len, int flags, struct sockaddr *addr,
1100 socklen_t *addrlen)
1101 {
1102 extern ssize_t __so_recvfrom(int, void *, size_t, int,
1103 struct sockaddr *, socklen_t *);
1104 int rv;
1105
1106 PERFORM(__so_recvfrom(sock, buf, len, flags, addr, addrlen))
1107 }
1108
1109 ssize_t
1110 _so_recvmsg(int sock, struct msghdr *msg, int flags)
1111 {
1112 extern ssize_t __so_recvmsg(int, struct msghdr *, int);
1113 int rv;
1114
1115 PERFORM(__so_recvmsg(sock, msg, flags))
1116 }
1117
1118 ssize_t
1119 _so_send(int sock, const void *buf, size_t len, int flags)
1120 {
1121 extern ssize_t __so_send(int, const void *, size_t, int);
1122 int rv;
1123
1124 PERFORM(__so_send(sock, buf, len, flags))
1125 }
1126
1127 ssize_t
1128 _so_sendmsg(int sock, const struct msghdr *msg, int flags)
1129 {
1130 extern ssize_t __so_sendmsg(int, const struct msghdr *, int);
1131 int rv;
1132
1133 PERFORM(__so_sendmsg(sock, msg, flags))
1134 }
1135
1136 ssize_t
1137 _so_sendto(int sock, const void *buf, size_t len, int flags,
1138 const struct sockaddr *addr, socklen_t addrlen)
1139 {
1140 extern ssize_t __so_sendto(int, const void *, size_t, int,
1141 const struct sockaddr *, socklen_t);
1142 int rv;
1143
1144 PERFORM(__so_sendto(sock, buf, len, flags, addr, addrlen))
1145 }
1146
1147 int
1148 tcdrain(int fildes)
1149 {
1150 extern int __tcdrain(int);
1151 int rv;
1152
1153 PERFORM(__tcdrain(fildes))
1154 }
1155
1156 int
1157 waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
1158 {
1159 extern int __waitid(idtype_t, id_t, siginfo_t *, int);
1160 int rv;
1161
|