chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regress/: Include the protocol family in socket(2) lines.
[adns]
/
regress
/
hcommon.c
diff --git
a/regress/hcommon.c
b/regress/hcommon.c
index 7aada144aed629c37d49df95de3da19cf666f141..3c2daa300bf1989ec27744b8ba9620697da63600 100644
(file)
--- a/
regress/hcommon.c
+++ b/
regress/hcommon.c
@@
-67,9
+67,12
@@
void Qpoll( const struct pollfd *fds , int nfds , int timeout ) {
Q_vb();
}
#endif
Q_vb();
}
#endif
-void Qsocket(
int type
) {
+void Qsocket(
int domain , int type
) {
vb.used= 0;
Tvba("socket");
vb.used= 0;
Tvba("socket");
+ Tvbf(domain==PF_INET ? " domain=PF_INET" :
+ domain==PF_INET6 ? " domain=PF_INET6" :
+ " domain=AF_???");
Tvbf(type==SOCK_STREAM ? " type=SOCK_STREAM" : " type=SOCK_DGRAM");
Q_vb();
}
Tvbf(type==SOCK_STREAM ? " type=SOCK_STREAM" : " type=SOCK_DGRAM");
Q_vb();
}