From owner-freebsd-hackers Sat May 20 01:42:21 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA19108 for hackers-outgoing; Sat, 20 May 1995 01:42:21 -0700 Received: from lirmm.lirmm.fr (lirmm.lirmm.fr [193.49.104.10]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id BAA19100 for ; Sat, 20 May 1995 01:42:18 -0700 Received: from lirmm.fr (baobab.lirmm.fr [193.49.106.14]) by lirmm.lirmm.fr (8.6.10/8.6.4) with ESMTP id KAA00523 for ; Sat, 20 May 1995 10:42:16 +0200 Message-Id: <199505200842.KAA00523@lirmm.lirmm.fr> To: hackers@FreeBSD.org Subject: sysctl(3) in kernel modules. Date: Sat, 20 May 1995 10:42:13 +0200 From: "Philippe Charnier" Sender: hackers-owner@FreeBSD.org Precedence: bulk Hello, I'm trying to patch the snake saver, in the way it can find itself the name and version (i.e return value of uname -s and uname -r). The code is made but it use sysctl(3) for now, ... and don't compile (sysctl is part of libc). The question is: Can I replace it by __sysctl ? Is this THE right choice when -DKERNEL. -------- -------- Philippe Charnier charnier@lirmm.fr LIRMM, 161 rue Ada, 34392 Montpellier cedex 5 -- France ------------------------------------------------------------------------