Sun Jul 27 16:12:23 2008 UTC ()
UKFS_UIOINIT() functionality has been provided for ages by rump
function interfaces, so remove the macro.


(pooka)
diff -r1.13 -r1.14 src/sys/rump/fs/lib/libukfs/ukfs.h

cvs diff -r1.13 -r1.14 src/sys/rump/fs/lib/libukfs/Attic/ukfs.h (expand / switch to unified diff)

--- src/sys/rump/fs/lib/libukfs/Attic/ukfs.h 2008/07/22 20:02:16 1.13
+++ src/sys/rump/fs/lib/libukfs/Attic/ukfs.h 2008/07/27 16:12:23 1.14
@@ -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
85int ukfs_lchflags(struct ukfs *, const char *, u_long); 85int ukfs_lchflags(struct ukfs *, const char *, u_long);
86 86
87int ukfs_utimes(struct ukfs *, const char *,  87int ukfs_utimes(struct ukfs *, const char *,
88 const struct timeval *); 88 const struct timeval *);
89int ukfs_lutimes(struct ukfs *, const char *,  89int ukfs_lutimes(struct ukfs *, const char *,
90 const struct timeval *); 90 const struct timeval *);
91 91
92struct mount *ukfs_getmp(struct ukfs *); 92struct mount *ukfs_getmp(struct ukfs *);
93struct vnode *ukfs_getrvp(struct ukfs *); 93struct vnode *ukfs_getrvp(struct ukfs *);
94 94
95/* Utilities */ 95/* Utilities */
96int ukfs_util_builddirs(struct ukfs *, const char *, mode_t); 96int ukfs_util_builddirs(struct ukfs *, const char *, mode_t);
97 97
98#define UKFS_UIOINIT(uio, iov, buf, bufsize, offset, rw) \ 
99do { \ 
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_ */