-{ SOCK_STREAM, &localdomain, 0, PR_CONNREQUIRED|PR_WANTRCVD|PR_RIGHTS,
- 0, 0, 0, uipc_ctloutput,
- 0,
- 0, 0, 0, 0,
- 0,
- &uipc_usrreqs,
- 0, 0, 0
-
-},
-{ SOCK_DGRAM, &localdomain, 0, PR_ATOMIC|PR_ADDR|PR_RIGHTS,
- 0, 0, 0, uipc_ctloutput,
- 0,
- 0, 0, 0, 0,
- 0,
- &uipc_usrreqs,
- 0, 0, 0
-},
-{ 0, 0, 0, 0,
- 0, 0, raw_ctlinput, 0,
- 0,
- 0, 0, 0, 0,
- 0,
- &raw_usrreqs,
- 0, 0, 0
-}
+ {
+ .pr_type = SOCK_STREAM,
+ .pr_domain = &localdomain,
+ .pr_flags = PR_CONNREQUIRED|PR_WANTRCVD|PR_RIGHTS|PR_PCBLOCK,
+ .pr_ctloutput = uipc_ctloutput,
+ .pr_usrreqs = &uipc_usrreqs,
+ .pr_lock = unp_lock,
+ .pr_unlock = unp_unlock,
+ .pr_getlock = unp_getlock
+ },
+ {
+ .pr_type = SOCK_DGRAM,
+ .pr_domain = &localdomain,
+ .pr_flags = PR_ATOMIC|PR_ADDR|PR_RIGHTS,
+ .pr_ctloutput = uipc_ctloutput,
+ .pr_usrreqs = &uipc_usrreqs,
+ .pr_lock = unp_lock,
+ .pr_unlock = unp_unlock,
+ .pr_getlock = unp_getlock
+ },
+ {
+ .pr_ctlinput = raw_ctlinput,
+ .pr_usrreqs = &raw_usrreqs,
+ },