fstat.c (1c17fc996d386433fe8843024b5c8dec4226ff43) fstat.c (ca7e3117d443779a9e74b01072157cff8be0f5a2)
1/*-
2 * Copyright (c) 1988, 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

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

327 */
328 vtrans(filed.fd_cdir, CDIR, FREAD);
329 /*
330 * ktrace vnode, if one
331 */
332 if (p->p_tracep)
333 vtrans(p->p_tracep, TRACE, FREAD|FWRITE);
334 /*
1/*-
2 * Copyright (c) 1988, 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

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

327 */
328 vtrans(filed.fd_cdir, CDIR, FREAD);
329 /*
330 * ktrace vnode, if one
331 */
332 if (p->p_tracep)
333 vtrans(p->p_tracep, TRACE, FREAD|FWRITE);
334 /*
335 * text vnode, if one
336 */
337 if (p->p_textvp)
338 vtrans(p->p_textvp, TEXT, FREAD);
339 /*
335 * open files
336 */
337#define FPSIZE (sizeof (struct file *))
338 ALLOC_OFILES(filed.fd_lastfile+1);
339 if (filed.fd_nfiles > NDFILE) {
340 if (!KVM_READ(filed.fd_ofiles, ofiles,
341 (filed.fd_lastfile+1) * FPSIZE)) {
342 dprintf(stderr,

--- 451 unchanged lines hidden ---
340 * open files
341 */
342#define FPSIZE (sizeof (struct file *))
343 ALLOC_OFILES(filed.fd_lastfile+1);
344 if (filed.fd_nfiles > NDFILE) {
345 if (!KVM_READ(filed.fd_ofiles, ofiles,
346 (filed.fd_lastfile+1) * FPSIZE)) {
347 dprintf(stderr,

--- 451 unchanged lines hidden ---