Tue Oct 13 20:06:38 2009 UTC ()
Expand rump curlwp macro.


(pooka)
diff -r1.21 -r1.22 src/lib/libp2k/p2k.c

cvs diff -r1.21 -r1.22 src/lib/libp2k/p2k.c (expand / switch to unified diff)

--- src/lib/libp2k/p2k.c 2009/10/09 16:37:30 1.21
+++ src/lib/libp2k/p2k.c 2009/10/13 20:06:38 1.22
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: p2k.c,v 1.21 2009/10/09 16:37:30 pooka Exp $ */ 1/* $NetBSD: p2k.c,v 1.22 2009/10/13 20:06:38 pooka Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved. 4 * Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
5 * 5 *
6 * Development of this software was supported by the 6 * Development of this software was supported by the
7 * Finnish Cultural Foundation. 7 * Finnish Cultural Foundation.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -116,27 +116,27 @@ cred_destroy(kauth_cred_t cred) @@ -116,27 +116,27 @@ cred_destroy(kauth_cred_t cred)
116{ 116{
117 117
118 rump_cred_put(cred); 118 rump_cred_put(cred);
119} 119}
120 120
121static struct componentname * 121static struct componentname *
122makecn(const struct puffs_cn *pcn, int myflags) 122makecn(const struct puffs_cn *pcn, int myflags)
123{ 123{
124 kauth_cred_t cred; 124 kauth_cred_t cred;
125 125
126 cred = cred_create(pcn->pcn_cred); 126 cred = cred_create(pcn->pcn_cred);
127 /* LINTED: prehistoric types in first two args */ 127 /* LINTED: prehistoric types in first two args */
128 return rump_makecn(pcn->pcn_nameiop, pcn->pcn_flags | myflags, 128 return rump_makecn(pcn->pcn_nameiop, pcn->pcn_flags | myflags,
129 pcn->pcn_name, pcn->pcn_namelen, cred, curlwp); 129 pcn->pcn_name, pcn->pcn_namelen, cred, rump_get_curlwp());
130} 130}
131 131
132static __inline void 132static __inline void
133freecn(struct componentname *cnp, int flags) 133freecn(struct componentname *cnp, int flags)
134{ 134{
135 135
136 rump_freecn(cnp, flags | RUMPCN_FREECRED); 136 rump_freecn(cnp, flags | RUMPCN_FREECRED);
137} 137}
138 138
139static void 139static void
140makelwp(struct puffs_usermount *pu) 140makelwp(struct puffs_usermount *pu)
141{ 141{
142 pid_t pid; 142 pid_t pid;