Re: The sysctl(3) is changed to sysctl(2)?

2018-03-12 Thread Philip Guenther
On Mon, Mar 12, 2018 at 7:52 PM, Theo de Raadt wrote: > It is a library routine that calls a system call. > It isn't worth changing at this point. > Actually we did. > > I find sysctl(3) in OpenBSD 6.2 is changed to system call in -current > > (please refer the manua

Re: The sysctl(3) is changed to sysctl(2)?

2018-03-12 Thread Theo de Raadt
It is a library routine that calls a system call. It isn't worth changing at this point. > I find sysctl(3) in OpenBSD 6.2 is changed to system call in -current > (please refer the manual: https://man.openbsd.org/sysctl.2). > > So the sysctl would be a system call instead of li

The sysctl(3) is changed to sysctl(2)?

2018-03-12 Thread Nan Xiao
Hi all, Greetings from me! I find sysctl(3) in OpenBSD 6.2 is changed to system call in -current (please refer the manual: https://man.openbsd.org/sysctl.2). So the sysctl would be a system call instead of library function in future OpenBSD? Thanks in advance! Best Regards Nan Xiao

Re: do we have a Perl interface to sysctl(3)?

2013-01-14 Thread Joel Sing
On Tue, 15 Jan 2013, Jonathan Thornburg wrote: > I wrote > > | FreeBSD has the BSD-Sysctl perl module available from CPAN, which would > | be ideal for my purposes... except that it doesn't (yet) support OpenBSD. > > On Mon, 14 Jan 2013, Philip Guenther wrote: > > So, uh, what fails if you try to b

Re: do we have a Perl interface to sysctl(3)?

2013-01-14 Thread Jonathan Thornburg
I wrote | FreeBSD has the BSD-Sysctl perl module available from CPAN, which would | be ideal for my purposes... except that it doesn't (yet) support OpenBSD. On Mon, 14 Jan 2013, Philip Guenther wrote: > So, uh, what fails if you try to build it? % uname -a OpenBSD cobalt.astro.indiana.edu 5.1 GE

Re: do we have a Perl interface to sysctl(3)?

2013-01-14 Thread Jérémie Courrèges-Anglas
Philip Guenther writes: > On Mon, Jan 14, 2013 at 1:16 AM, Jonathan Thornburg > wrote: >> FreeBSD has the BSD-Sysctl perl module available from CPAN, which would >> be ideal for my purposes... except that it doesn't (yet) support OpenBSD. > > So, uh, what fails if you try to build it? [...] OS

Re: do we have a Perl interface to sysctl(3)?

2013-01-14 Thread Philip Guenther
On Mon, Jan 14, 2013 at 1:16 AM, Jonathan Thornburg wrote: > FreeBSD has the BSD-Sysctl perl module available from CPAN, which would > be ideal for my purposes... except that it doesn't (yet) support OpenBSD. So, uh, what fails if you try to build it? Philip Guenther

do we have a Perl interface to sysctl(3)?

2013-01-14 Thread Jonathan Thornburg
Is there an (OpenBSD) perl interface to sysctl(3)? Parsing the output of `sysctl $string` works, but is clumsy. FreeBSD has the BSD-Sysctl perl module available from CPAN, which would be ideal for my purposes... except that it doesn't (yet) support OpenBSD. Rex::Commands::Sysctl looks li

Re: sysctl(3)

2010-03-12 Thread Toni Mueller
Hi, On Fri, 12.03.2010 at 13:21:45 +0001, Jason McIntyre wrote: > On Thu, Mar 11, 2010 at 12:23:22AM +0100, Toni Mueller wrote: > > > what exactly is missing from sysctl(3)? > > the sections I read seem to exhaustively list the settings that can > > be used with the 

Re: sysctl(3)

2010-03-12 Thread Jason McIntyre
On Thu, Mar 11, 2010 at 12:23:22AM +0100, Toni Mueller wrote: > > what exactly is missing from sysctl(3)? > > the sections I read seem to exhaustively list the settings that can > be used with the 'mib' parameter, but not for PF_KEY. > ok, PF_KEY is now documented. jmc

Re: sysctl(3)

2010-03-11 Thread Jason McIntyre
On Thu, Mar 11, 2010 at 05:22:39PM +0001, Jason McIntyre wrote: > On Thu, Mar 11, 2010 at 06:02:49PM +0100, Toni Mueller wrote: > > On Thu, 11.03.2010 at 14:31:46 +0100, Toni Mueller > > wrote: > > > But I'll now grab 'comp' too and see if that helps. > > > > I've now looked at the man page in -

Re: sysctl(3)

2010-03-11 Thread Jason McIntyre
On Thu, Mar 11, 2010 at 06:02:49PM +0100, Toni Mueller wrote: > On Thu, 11.03.2010 at 14:31:46 +0100, Toni Mueller > wrote: > > But I'll now grab 'comp' too and see if that helps. > > I've now looked at the man page in -current, and it does not cover the > "leaves" below PF_KEY. > i think otto

Re: sysctl(3)

2010-03-11 Thread Toni Mueller
On Thu, 11.03.2010 at 14:31:46 +0100, Toni Mueller wrote: > But I'll now grab 'comp' too and see if that helps. I've now looked at the man page in -current, and it does not cover the "leaves" below PF_KEY. -- Kind regards, --Toni++

Re: sysctl(3)

2010-03-11 Thread Toni Mueller
Hi Otto, On Thu, 11.03.2010 at 07:08:24 +0100, Otto Moerbeek wrote: > On Thu, Mar 11, 2010 at 12:23:22AM +0100, Toni Mueller wrote: > > Btw, in the snapshot of today, the sysctl(3) man page is absent: > > > > $ find . -name 'sysctl*' > > ./cat8/sysctl.0 &g

Re: sysctl(3)

2010-03-10 Thread Otto Moerbeek
On Thu, Mar 11, 2010 at 12:23:22AM +0100, Toni Mueller wrote: > Hi, > > On Wed, 10.03.2010 at 21:48:38 +0001, Jason McIntyre > wrote: > > what exactly is missing from sysctl(3)? > > the sections I read seem to exhaustively list the settings that can > be used with t

Re: sysctl(3)

2010-03-10 Thread Toni Mueller
Hi, On Wed, 10.03.2010 at 21:48:38 +0001, Jason McIntyre wrote: > what exactly is missing from sysctl(3)? the sections I read seem to exhaustively list the settings that can be used with the 'mib' parameter, but not for PF_KEY. Btw, in the snapshot of today, the sysctl(3) man p

Re: sysctl(3)

2010-03-10 Thread Jason McIntyre
On Wed, Mar 10, 2010 at 09:42:30PM +0100, Toni Mueller wrote: > Hi, > > while digging into my problem with bogus SADB entries, I noticed that > sysctl(3) is incomplete, and the online man page doesn't show up (I only > get sysctl(8) to see when accessing this link: > htt

sysctl(3)

2010-03-10 Thread Toni Mueller
Hi, while digging into my problem with bogus SADB entries, I noticed that sysctl(3) is incomplete, and the online man page doesn't show up (I only get sysctl(8) to see when accessing this link: http://www.openbsd.org/cgi-bin/man.cgi?query=sysctl&apropos=0&sektion=3&manpath=Ope

Re: sysctl(3) and iteration over HW_SENSORS

2006-07-11 Thread Constantine A. Murenin
ht the same thing the first time I encountered it. Plus you have to remember the fact that sysctl(3) has to go through the whole linked list once again to find the last sensor even if you call it in strictly increasing order, and it also has to go through the whole linked list to conclude about the no

Re: sysctl(3) and iteration over HW_SENSORS

2006-07-11 Thread Weldon Goree
Constantine A. Murenin wrote: > You can't get them all at once with one sysctl(3) call, as the memory > they occupy is not allocated continuously -- a linked list is used, > and each driver does sensor allocation on its own, and it's not a > sysctl(3) job to merge this linked

Re: sysctl(3) and iteration over HW_SENSORS

2006-07-11 Thread Constantine A. Murenin
On 11/07/06, Weldon Goree <[EMAIL PROTECTED]> wrote: the buffer must hold? And how do I get all of them at once like (I think) sysctl(3) says I can? You can't get them all at once with one sysctl(3) call, as the memory they occupy is not allocated continuously -- a linked list i

Re: sysctl(3) and iteration over HW_SENSORS

2006-07-11 Thread Otto Moerbeek
On Mon, 10 Jul 2006, Weldon Goree wrote: > sysctl(3) says that sysctl({CTL_HW, HW_SENSORS}, 2, NULL, &some_size_t, > NULL, 0) should give me the size of the array of struct sensor's that > sysctl({CTL_HW, HW_SENSORS}, 2, &some_buffer, &length_thereof, NULL, 0) &g

sysctl(3) and iteration over HW_SENSORS

2006-07-10 Thread Weldon Goree
sysctl(3) says that sysctl({CTL_HW, HW_SENSORS}, 2, NULL, &some_size_t, NULL, 0) should give me the size of the array of struct sensor's that sysctl({CTL_HW, HW_SENSORS}, 2, &some_buffer, &length_thereof, NULL, 0) will put into &some_buffer. Or so I thought. In fact, it retu