Subject: Re: core dump filename format
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-userlevel
Date: 09/08/1999 12:01:31
Manuel Bouyer <bouyer@antioche.lip6.fr> writes:
> I don't think there are per-process sysctl variables (yet).
In fact there's the SYSCTL_KERN/KERN_PROC hierarchy, but it's meant
for something different (getting eproc structs). however, it, or the
choices it provides, could probably be used as a model for something
like what's desired here...
Maybe something like:
SYSCTL_PROCATTR/PROCATTR_foo/<process_selector>/<pid,ID,whatever>
Or i could see flipping it around:
SYSCTL_PROCATTR/<process_selector>/<pid,ID,whatever>/PROCATTR_foo
so you could easily show multiple procs' complete sets of values at
once in a clean way. I dunno, this may or may not be a good idea. 8-)
IIRC, at least one system (Compaq Tru64 UNIX (formerly Digital UNIX
(formerly DEC OSF/1))) provides a syscall to do the alignment
attribute setting, but i forget what it is. I'd guess solaris might
do something similar for sparc.
cgd
--
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.