Deleted Added
full compact
kvm_file.c (17141) kvm_file.c (38534)
1/*-
2 * Copyright (c) 1989, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 108 unchanged lines hidden (view full) ---

117}
118
119char *
120kvm_getfiles(kd, op, arg, cnt)
121 kvm_t *kd;
122 int op, arg;
123 int *cnt;
124{
1/*-
2 * Copyright (c) 1989, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 108 unchanged lines hidden (view full) ---

117}
118
119char *
120kvm_getfiles(kd, op, arg, cnt)
121 kvm_t *kd;
122 int op, arg;
123 int *cnt;
124{
125 int mib[2], size, st, nfiles;
125 int mib[2], st, nfiles;
126 size_t size;
126 struct file *fp, *fplim;
127 struct filelist filehead;
128
129 if (ISALIVE(kd)) {
130 size = 0;
131 mib[0] = CTL_KERN;
132 mib[1] = KERN_FILE;
133 st = sysctl(mib, 2, NULL, &size, NULL, 0);

--- 54 unchanged lines hidden ---
127 struct file *fp, *fplim;
128 struct filelist filehead;
129
130 if (ISALIVE(kd)) {
131 size = 0;
132 mib[0] = CTL_KERN;
133 mib[1] = KERN_FILE;
134 st = sysctl(mib, 2, NULL, &size, NULL, 0);

--- 54 unchanged lines hidden ---