| @@ -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 | |
121 | static struct componentname * | | 121 | static struct componentname * |
122 | makecn(const struct puffs_cn *pcn, int myflags) | | 122 | makecn(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 | |
132 | static __inline void | | 132 | static __inline void |
133 | freecn(struct componentname *cnp, int flags) | | 133 | freecn(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 | |
139 | static void | | 139 | static void |
140 | makelwp(struct puffs_usermount *pu) | | 140 | makelwp(struct puffs_usermount *pu) |
141 | { | | 141 | { |
142 | pid_t pid; | | 142 | pid_t pid; |