fstat.c (cd72f2180bfff020d03180e6eba1c3a0e0125468) fstat.c (48e3128b34dad9618402f1f4095f7655e779843c)
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

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

376 if (ofiles[i] == NULL)
377 continue;
378 if (!KVM_READ(ofiles[i], &file, sizeof (struct file))) {
379 dprintf(stderr, "can't read file %d at %p for pid %d\n",
380 i, (void *)ofiles[i], Pid);
381 continue;
382 }
383 if (file.f_type == DTYPE_VNODE)
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

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

376 if (ofiles[i] == NULL)
377 continue;
378 if (!KVM_READ(ofiles[i], &file, sizeof (struct file))) {
379 dprintf(stderr, "can't read file %d at %p for pid %d\n",
380 i, (void *)ofiles[i], Pid);
381 continue;
382 }
383 if (file.f_type == DTYPE_VNODE)
384 vtrans(file.un_data.vnode, i, file.f_flag);
384 vtrans(file.f_data, i, file.f_flag);
385 else if (file.f_type == DTYPE_SOCKET) {
386 if (checkfile == 0)
385 else if (file.f_type == DTYPE_SOCKET) {
386 if (checkfile == 0)
387 socktrans(file.un_data.socket, i);
387 socktrans(file.f_data, i);
388 }
389#ifdef DTYPE_PIPE
390 else if (file.f_type == DTYPE_PIPE) {
391 if (checkfile == 0)
388 }
389#ifdef DTYPE_PIPE
390 else if (file.f_type == DTYPE_PIPE) {
391 if (checkfile == 0)
392 pipetrans(file.un_data.pipe, i, file.f_flag);
392 pipetrans(file.f_data, i, file.f_flag);
393 }
394#endif
395#ifdef DTYPE_FIFO
396 else if (file.f_type == DTYPE_FIFO) {
397 if (checkfile == 0)
393 }
394#endif
395#ifdef DTYPE_FIFO
396 else if (file.f_type == DTYPE_FIFO) {
397 if (checkfile == 0)
398 vtrans(file.un_data.vnode, i, file.f_flag);
398 vtrans(file.f_data, i, file.f_flag);
399 }
400#endif
401 else {
402 dprintf(stderr,
403 "unknown file type %d for file %d of pid %d\n",
404 file.f_type, i, Pid);
405 }
406 }

--- 531 unchanged lines hidden ---
399 }
400#endif
401 else {
402 dprintf(stderr,
403 "unknown file type %d for file %d of pid %d\n",
404 file.f_type, i, Pid);
405 }
406 }

--- 531 unchanged lines hidden ---