sys_procdesc.c (523d66730c861d517ce39724b850556acded784d) sys_procdesc.c (2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2009, 2016 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * This software was developed at the University of Cambridge Computer
8 * Laboratory with support from a grant from Google, Inc.

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

503 knlist_add(&pd->pd_selinfo.si_note, kn, 0);
504 return (0);
505 default:
506 return (EINVAL);
507 }
508}
509
510static int
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2009, 2016 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * This software was developed at the University of Cambridge Computer
8 * Laboratory with support from a grant from Google, Inc.

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

503 knlist_add(&pd->pd_selinfo.si_note, kn, 0);
504 return (0);
505 default:
506 return (EINVAL);
507 }
508}
509
510static int
511procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred,
512 struct thread *td)
511procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
513{
514 struct procdesc *pd;
515 struct timeval pstart, boottime;
516
517 /*
518 * XXXRW: Perhaps we should cache some more information from the
519 * process so that we can return it reliably here even after it has
520 * died. For example, caching its credential data.

--- 40 unchanged lines hidden ---
512{
513 struct procdesc *pd;
514 struct timeval pstart, boottime;
515
516 /*
517 * XXXRW: Perhaps we should cache some more information from the
518 * process so that we can return it reliably here even after it has
519 * died. For example, caching its credential data.

--- 40 unchanged lines hidden ---