| @@ -1,21 +1,21 @@ | | | @@ -1,21 +1,21 @@ |
1 | /* $NetBSD: namei.h,v 1.74 2011/01/02 05:12:56 dholland Exp $ */ | | 1 | /* $NetBSD: namei.h,v 1.75 2011/01/07 11:25:43 pooka Exp $ */ |
2 | | | 2 | |
3 | | | 3 | |
4 | /* | | 4 | /* |
5 | * WARNING: GENERATED FILE. DO NOT EDIT | | 5 | * WARNING: GENERATED FILE. DO NOT EDIT |
6 | * (edit namei.src and run make namei in src/sys/sys) | | 6 | * (edit namei.src and run make namei in src/sys/sys) |
7 | * by: NetBSD: gennameih.awk,v 1.5 2009/12/23 14:17:19 pooka Exp | | 7 | * by: NetBSD: gennameih.awk,v 1.5 2009/12/23 14:17:19 pooka Exp |
8 | * from: NetBSD: namei.src,v 1.21 2011/01/02 05:12:33 dholland Exp | | 8 | * from: NetBSD: namei.src,v 1.22 2011/01/07 11:25:10 pooka Exp |
9 | */ | | 9 | */ |
10 | | | 10 | |
11 | /* | | 11 | /* |
12 | * Copyright (c) 1985, 1989, 1991, 1993 | | 12 | * Copyright (c) 1985, 1989, 1991, 1993 |
13 | * The Regents of the University of California. All rights reserved. | | 13 | * The Regents of the University of California. All rights reserved. |
14 | * | | 14 | * |
15 | * Redistribution and use in source and binary forms, with or without | | 15 | * Redistribution and use in source and binary forms, with or without |
16 | * modification, are permitted provided that the following conditions | | 16 | * modification, are permitted provided that the following conditions |
17 | * are met: | | 17 | * are met: |
18 | * 1. Redistributions of source code must retain the above copyright | | 18 | * 1. Redistributions of source code must retain the above copyright |
19 | * notice, this list of conditions and the following disclaimer. | | 19 | * notice, this list of conditions and the following disclaimer. |
20 | * 2. Redistributions in binary form must reproduce the above copyright | | 20 | * 2. Redistributions in binary form must reproduce the above copyright |
21 | * notice, this list of conditions and the following disclaimer in the | | 21 | * notice, this list of conditions and the following disclaimer in the |
| @@ -159,27 +159,27 @@ struct nameidata { | | | @@ -159,27 +159,27 @@ struct nameidata { |
159 | */ | | 159 | */ |
160 | #define NOCROSSMOUNT 0x0000100 /* do not cross mount points */ | | 160 | #define NOCROSSMOUNT 0x0000100 /* do not cross mount points */ |
161 | #define RDONLY 0x0000200 /* lookup with read-only semantics */ | | 161 | #define RDONLY 0x0000200 /* lookup with read-only semantics */ |
162 | #define ISDOTDOT 0x0002000 /* current component name is .. */ | | 162 | #define ISDOTDOT 0x0002000 /* current component name is .. */ |
163 | #define MAKEENTRY 0x0004000 /* entry is to be added to name cache */ | | 163 | #define MAKEENTRY 0x0004000 /* entry is to be added to name cache */ |
164 | #define ISLASTCN 0x0008000 /* this is last component of pathname */ | | 164 | #define ISLASTCN 0x0008000 /* this is last component of pathname */ |
165 | #define ISSYMLINK 0x0010000 /* symlink needs interpretation */ | | 165 | #define ISSYMLINK 0x0010000 /* symlink needs interpretation */ |
166 | #define ISWHITEOUT 0x0020000 /* found whiteout */ | | 166 | #define ISWHITEOUT 0x0020000 /* found whiteout */ |
167 | #define DOWHITEOUT 0x0040000 /* do whiteouts */ | | 167 | #define DOWHITEOUT 0x0040000 /* do whiteouts */ |
168 | #define REQUIREDIR 0x0080000 /* must be a directory */ | | 168 | #define REQUIREDIR 0x0080000 /* must be a directory */ |
169 | #define CREATEDIR 0x0200000 /* trailing slashes are ok */ | | 169 | #define CREATEDIR 0x0200000 /* trailing slashes are ok */ |
170 | #define INRENAME 0x0400000 /* operation is a part of ``rename'' */ | | 170 | #define INRENAME 0x0400000 /* operation is a part of ``rename'' */ |
171 | #define INRELOOKUP 0x0800000 /* set while inside relookup() */ | | 171 | #define INRELOOKUP 0x0800000 /* set while inside relookup() */ |
172 | #define PARAMASK 0x0efef00 /* mask of parameter descriptors */ | | 172 | #define PARAMASK 0x0efe300 /* mask of parameter descriptors */ |
173 | | | 173 | |
174 | /* | | 174 | /* |
175 | * Initialization of an nameidata structure. | | 175 | * Initialization of an nameidata structure. |
176 | */ | | 176 | */ |
177 | #define NDINIT(ndp, op, flags, pathbuf) { \ | | 177 | #define NDINIT(ndp, op, flags, pathbuf) { \ |
178 | (ndp)->ni_cnd.cn_nameiop = op; \ | | 178 | (ndp)->ni_cnd.cn_nameiop = op; \ |
179 | (ndp)->ni_cnd.cn_flags = flags; \ | | 179 | (ndp)->ni_cnd.cn_flags = flags; \ |
180 | (ndp)->ni_pathbuf = pathbuf; \ | | 180 | (ndp)->ni_pathbuf = pathbuf; \ |
181 | (ndp)->ni_cnd.cn_cred = kauth_cred_get(); \ | | 181 | (ndp)->ni_cnd.cn_cred = kauth_cred_get(); \ |
182 | } | | 182 | } |
183 | #endif | | 183 | #endif |
184 | | | 184 | |
185 | /* | | 185 | /* |
| @@ -316,16 +316,16 @@ extern struct nchstats nchstats; | | | @@ -316,16 +316,16 @@ extern struct nchstats nchstats; |
316 | #define NAMEI_MODMASK 0x010000fc | | 316 | #define NAMEI_MODMASK 0x010000fc |
317 | #define NAMEI_NOCROSSMOUNT 0x0000100 | | 317 | #define NAMEI_NOCROSSMOUNT 0x0000100 |
318 | #define NAMEI_RDONLY 0x0000200 | | 318 | #define NAMEI_RDONLY 0x0000200 |
319 | #define NAMEI_ISDOTDOT 0x0002000 | | 319 | #define NAMEI_ISDOTDOT 0x0002000 |
320 | #define NAMEI_MAKEENTRY 0x0004000 | | 320 | #define NAMEI_MAKEENTRY 0x0004000 |
321 | #define NAMEI_ISLASTCN 0x0008000 | | 321 | #define NAMEI_ISLASTCN 0x0008000 |
322 | #define NAMEI_ISSYMLINK 0x0010000 | | 322 | #define NAMEI_ISSYMLINK 0x0010000 |
323 | #define NAMEI_ISWHITEOUT 0x0020000 | | 323 | #define NAMEI_ISWHITEOUT 0x0020000 |
324 | #define NAMEI_DOWHITEOUT 0x0040000 | | 324 | #define NAMEI_DOWHITEOUT 0x0040000 |
325 | #define NAMEI_REQUIREDIR 0x0080000 | | 325 | #define NAMEI_REQUIREDIR 0x0080000 |
326 | #define NAMEI_CREATEDIR 0x0200000 | | 326 | #define NAMEI_CREATEDIR 0x0200000 |
327 | #define NAMEI_INRENAME 0x0400000 | | 327 | #define NAMEI_INRENAME 0x0400000 |
328 | #define NAMEI_INRELOOKUP 0x0800000 | | 328 | #define NAMEI_INRELOOKUP 0x0800000 |
329 | #define NAMEI_PARAMASK 0x0efef00 | | 329 | #define NAMEI_PARAMASK 0x0efe300 |
330 | | | 330 | |
331 | #endif /* !_SYS_NAMEI_H_ */ | | 331 | #endif /* !_SYS_NAMEI_H_ */ |