View | Details | Raw Unified | Return to bug 151640
Collapse All | Expand All

(-)fuser/Makefile (-2 / +2 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	fuser
8
PORTNAME=	fuser
9
PORTVERSION=	1142334561
9
PORTVERSION=	1142334561
10
PORTREVISION=	2
10
PORTREVISION=	3
11
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
12
MASTER_SITES=	http://mbsd.msk.ru/dist/
12
MASTER_SITES=	http://mbsd.msk.ru/dist/
13
13
Lines 35-41 EXTRA_PATCHES+= ${FILESDIR}/extra::patch Link Here
35
EXTRA_PATCHES+=	${FILESDIR}/extra::patch-nfs.c
35
EXTRA_PATCHES+=	${FILESDIR}/extra::patch-nfs.c
36
.endif
36
.endif
37
.if ${OSVERSION} >= 900000
37
.if ${OSVERSION} >= 900000
38
BROKEN=		does not build
38
EXTRA_PATCHES+=	${FILESDIR}/extra::patch_ansify
39
.endif
39
.endif
40
40
41
.if ${ARCH} == "powerpc"
41
.if ${ARCH} == "powerpc"
(-)fuser/files/extra::patch_ansify (+247 lines)
Line 0 Link Here
1
--- devfs.c	2006-03-14 14:07:08.000000000 +0300
2
+++ devfs.c	2010-10-22 13:06:31.000000000 +0400
3
@@ -50,9 +50,7 @@
4
 #include "fuser.h"
5
 
6
 int
7
-devfs_filestat(vp, fsp)
8
-	const vnode_t	*vp;
9
-	finfo_t		*fsp;
10
+devfs_filestat(const vnode_t *vp, finfo_t *fsp)
11
 {
12
 	struct devfs_dirent	devfs_dirent;
13
 	struct mount		mount;
14
--- fuser.c	2010-10-22 12:08:03.000000000 +0400
15
+++ fuser.c	2010-10-22 13:05:43.000000000 +0400
16
@@ -249,10 +249,7 @@
17
 }
18
 
19
 void
20
-print_file_info(pid, uid, ufl)
21
-	pid_t		pid;
22
-	uid_t		uid;
23
-	int		ufl;
24
+print_file_info(pid_t pid, uid_t uid, int ufl)
25
 {
26
 	uint	i;
27
 
28
@@ -273,8 +270,7 @@
29
  * Add file to the list.
30
  */
31
 static int
32
-addfile(path)
33
-	const char	*path;
34
+addfile(const char *path)
35
 {
36
 	struct stat	sb;
37
 	int		type;
38
@@ -314,9 +310,7 @@
39
  * by a given process and add suitable entries to list. 
40
  */
41
 static int
42
-add_ofiles(fd, head)
43
-	const struct filedesc	*fd;
44
-	fds_head_t		*head;
45
+add_ofiles(const struct filedesc *fd, fds_head_t *head)
46
 {
47
 	struct file	**ofiles;
48
 	struct file	file;
49
@@ -389,8 +383,7 @@
50
  * This routine returns controlling tty of the process, if exist.
51
  */
52
 const vnode_t *
53
-get_ctty(p)
54
-	const kinfo_proc_t	*p;
55
+get_ctty(const kinfo_proc_t *p)
56
 {
57
 	struct proc	proc;
58
 	struct pgrp	pgrp;
59
@@ -430,8 +423,7 @@
60
  * given process. The structure's pointer will be inserted in the list.
61
  */
62
 int
63
-gather_pinfo(p)
64
-	const kinfo_proc_t	*p;
65
+gather_pinfo(const kinfo_proc_t *p)
66
 {
67
 	struct filedesc	fd_info;
68
 	pinfo_t		*pinfo;
69
@@ -484,10 +476,7 @@
70
  * Insert finfo structure for given vnode into the list
71
  */
72
 static int
73
-vp2finfo(vp, head, ufl)
74
-	const vnode_t	*vp;
75
-	fds_head_t	*head;
76
-	int		ufl;
77
+vp2finfo(const vnode_t *vp, fds_head_t *head, int ufl)
78
 {
79
 	vnode_t		vn;
80
 	finfo_t		*finfo;
81
@@ -540,9 +529,7 @@
82
  * informations how given file is used.
83
  */
84
 static int
85
-get_uflags(rfile, pinfo)
86
-	const reqfile_t	*rfile;
87
-	const pinfo_t	*pinfo;
88
+get_uflags(const reqfile_t *rfile, const pinfo_t *pinfo)
89
 {
90
 	finfo_t	*fd;
91
 	int	ufl = 0;
92
@@ -586,8 +573,7 @@
93
  * Helper routine to free pinfo structure
94
  */
95
 static void
96
-pinfo_free(pinfo)
97
-	pinfo_t	*pinfo;
98
+pinfo_free(pinfo_t *pinfo)
99
 {
100
 	
101
 	ASSERT(pinfo);
102
@@ -596,9 +582,7 @@
103
 }
104
 
105
 int
106
-main(argc, argv)
107
-	int	argc;
108
-	char	*argv[];	
109
+main(int argc, char *argv[])
110
 {
111
 	reqfile_t	*rfile;
112
 	pinfo_t		*pinfo;
113
@@ -724,8 +708,7 @@
114
  * associated dev_t.
115
  */
116
 dev_t
117
-dev2udev(dev)
118
-	struct cdev	*dev;
119
+dev2udev(struct cdev *dev)
120
 {
121
 	struct cdev_priv	priv;
122
 	int			ret;
123
@@ -740,9 +723,7 @@
124
 }
125
 
126
 int
127
-add_mmapped(p, head)
128
-	const kinfo_proc_t	*p;
129
-	fds_head_t		*head;
130
+add_mmapped(const kinfo_proc_t *p, fds_head_t *head)
131
 {
132
 	vm_map_t map;
133
 	struct vmspace vmspace;
134
@@ -803,8 +784,7 @@
135
  * Returns signal number for it's string representation
136
  */
137
 static int
138
-str2sig(str)
139
-	const char	*str;
140
+str2sig(const char *str)
141
 {
142
         int n;
143
 
144
--- isofs.c	2005-08-25 05:19:02.000000000 +0400
145
+++ isofs.c	2010-10-22 13:06:15.000000000 +0400
146
@@ -55,9 +55,7 @@
147
 #include "fuser.h"
148
 
149
 int
150
-isofs_filestat(vp, fsp)
151
-	const vnode_t	*vp;
152
-	finfo_t		*fsp;
153
+isofs_filestat(const vnode_t *vp, finfo_t *fsp)
154
 {
155
 	struct iso_node	node;
156
 	struct iso_mnt	mnt;
157
--- msdosfs.c	2010-10-22 12:08:03.000000000 +0400
158
+++ msdosfs.c	2010-10-22 13:05:59.000000000 +0400
159
@@ -65,9 +65,7 @@
160
 #define VTODE(vp)	((struct denode *)(vp)->v_data)
161
 
162
 int
163
-msdosfs_filestat(vp, fsp)
164
-	const vnode_t	*vp;
165
-	finfo_t		*fsp;
166
+msdosfs_filestat( const vnode_t *vp, finfo_t *fsp)
167
 {
168
 	struct denode		denode;
169
 	u_long			dirsperblk;
170
--- nfs.c	2010-10-22 12:08:03.000000000 +0400
171
+++ nfs.c	2010-10-22 13:07:04.000000000 +0400
172
@@ -50,9 +50,7 @@
173
 #include "fuser.h"
174
 
175
 int
176
-nfs_filestat(vp, fsp)
177
-	const vnode_t	*vp;
178
-	finfo_t		*fsp;
179
+nfs_filestat(const vnode_t *vp, finfo_t *fsp)
180
 {
181
 	struct nfsnode	nfsnode;
182
 	int		ret;
183
--- ntfs.c	2005-08-25 05:19:02.000000000 +0400
184
+++ ntfs.c	2010-10-22 13:07:22.000000000 +0400
185
@@ -42,9 +42,7 @@
186
 #include "fuser.h"
187
 
188
 int
189
-ntfs_filestat(vp, fsp)
190
-	const vnode_t	*vp;
191
-	finfo_t		*fsp;
192
+ntfs_filestat(const vnode_t *vp, finfo_t *fsp)
193
 {
194
 	struct fnode		fnod;
195
 	struct ntnode		node;
196
--- nwfs.c	2005-08-25 05:19:02.000000000 +0400
197
+++ nwfs.c	2010-10-22 13:07:36.000000000 +0400
198
@@ -44,9 +44,7 @@
199
 #include "fuser.h"
200
 
201
 int
202
-nwfs_filestat(vp, fsp)
203
-	const vnode_t	*vp;
204
-	finfo_t		*fsp;
205
+nwfs_filestat(const vnode_t *vp, finfo_t *fsp)
206
 {
207
 	struct nwnode	node;
208
 	struct mount	mnt;
209
--- smbfs.c	2005-08-25 05:27:58.000000000 +0400
210
+++ smbfs.c	2010-10-22 13:07:53.000000000 +0400
211
@@ -44,9 +44,7 @@
212
 #include "fuser.h"
213
 
214
 int
215
-smbfs_filestat(vp, fsp)
216
-	const vnode_t	*vp;
217
-	finfo_t		*fsp;
218
+smbfs_filestat(const vnode_t *vp, finfo_t *fsp)
219
 {
220
 	struct smbnode	node;
221
 	struct mount	mnt;
222
--- udf.c	2006-03-14 14:07:08.000000000 +0300
223
+++ udf.c	2010-10-22 13:08:07.000000000 +0400
224
@@ -75,9 +75,7 @@
225
 #define VTON(vp)	((struct udf_node *)((vp)->v_data))
226
 
227
 int
228
-udf_filestat(vp, fsp)
229
-	const vnode_t	*vp;
230
-	finfo_t		*fsp;
231
+udf_filestat(const vnode_t *vp, finfo_t *fsp)
232
 {
233
 	struct udf_node	node;
234
 	struct udf_mnt	mnt;
235
--- ufs.c	2005-08-24 18:05:29.000000000 +0400
236
+++ ufs.c	2010-10-22 13:06:50.000000000 +0400
237
@@ -50,9 +50,7 @@
238
 #include "fuser.h"
239
 
240
 int
241
-ufs_filestat(vp, finfo)
242
-	const vnode_t	*vp;
243
-	finfo_t		*finfo;
244
+ufs_filestat(const vnode_t *vp, finfo_t *finfo)
245
 {
246
 	struct inode	inode;
247
 	int		ret;

Return to bug 151640