| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: ukfs.h,v 1.13 2008/07/22 20:02:16 pooka Exp $ */ | | 1 | /* $NetBSD: ukfs.h,v 1.14 2008/07/27 16:12:23 pooka Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2007 Antti Kantee. All Rights Reserved. | | 4 | * Copyright (c) 2007 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 |
| @@ -85,27 +85,14 @@ int ukfs_chflags(struct ukfs *, const c | | | @@ -85,27 +85,14 @@ int ukfs_chflags(struct ukfs *, const c |
85 | int ukfs_lchflags(struct ukfs *, const char *, u_long); | | 85 | int ukfs_lchflags(struct ukfs *, const char *, u_long); |
86 | | | 86 | |
87 | int ukfs_utimes(struct ukfs *, const char *, | | 87 | int ukfs_utimes(struct ukfs *, const char *, |
88 | const struct timeval *); | | 88 | const struct timeval *); |
89 | int ukfs_lutimes(struct ukfs *, const char *, | | 89 | int ukfs_lutimes(struct ukfs *, const char *, |
90 | const struct timeval *); | | 90 | const struct timeval *); |
91 | | | 91 | |
92 | struct mount *ukfs_getmp(struct ukfs *); | | 92 | struct mount *ukfs_getmp(struct ukfs *); |
93 | struct vnode *ukfs_getrvp(struct ukfs *); | | 93 | struct vnode *ukfs_getrvp(struct ukfs *); |
94 | | | 94 | |
95 | /* Utilities */ | | 95 | /* Utilities */ |
96 | int ukfs_util_builddirs(struct ukfs *, const char *, mode_t); | | 96 | int ukfs_util_builddirs(struct ukfs *, const char *, mode_t); |
97 | | | 97 | |
98 | #define UKFS_UIOINIT(uio, iov, buf, bufsize, offset, rw) \ | | | |
99 | do { \ | | | |
100 | iov.iov_base = buf; \ | | | |
101 | iov.iov_len = bufsize; \ | | | |
102 | uio.uio_iov = &(iov); \ | | | |
103 | uio.uio_iovcnt = 1; \ | | | |
104 | uio.uio_offset = offset; \ | | | |
105 | uio.uio_resid = bufsize; \ | | | |
106 | uio.uio_rw = rw; \ | | | |
107 | uio.uio_vmspace = UIO_VMSPACE_SYS; \ | | | |
108 | } while (/*CONSTCOND*/0) | | | |
109 | | | | |
110 | | | | |
111 | #endif /* _SYS_RUMPFS_UKFS_H_ */ | | 98 | #endif /* _SYS_RUMPFS_UKFS_H_ */ |