From owner-freebsd-hackers@freebsd.org Sat Jun 27 22:02:59 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C58ED98DE59 for ; Sat, 27 Jun 2015 22:02:59 +0000 (UTC) (envelope-from sbruno@ignoranthack.me) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ABA4B1513 for ; Sat, 27 Jun 2015 22:02:56 +0000 (UTC) (envelope-from sbruno@ignoranthack.me) Received: from [192.168.200.214] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 43C5D193DA3 for ; Sat, 27 Jun 2015 22:02:49 +0000 (UTC) Message-ID: <558F1D88.8010407@ignoranthack.me> Date: Sat, 27 Jun 2015 15:02:48 -0700 From: Sean Bruno Reply-To: sbruno@freebsd.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "freebsd-hackers@freebsd.org" Subject: sysctl(3) man page examples Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2015 22:02:59 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 sysctl(3) specifies three easy to understand examples. The first appears to depend on a FreeBSD libc() function or library that is missing, "printkproc()". Is this a deprecated/deleted function from the past? The second example works just fine. The third accesss user.cs_path which seems to be empty across all platforms. I'm not sure if we should replace this example with something more meaningful(that is to say that its proper for user.cs_path to be empty) or if there is a bug causing user.cs_path to be empty. sean -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJVjx2IXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kMRsIAKLX678aJ0TDAKWA8Q3Rsf9z EQ1o0E7wdqnfjoNLVfje+xGAJaYBDUnKTtJX3CRORd+h9kVV2RjgTS0PhZSW95xb 9dM+NU6J1mOzahechEV+7SvSie1J/EpUYh4Px2CAMXWp/b6XFJsrr96bwERgf5+s cSBK2f/YjA6j03dG+oIS4ZbpUPvFb1EfaOtibq05ToN4L9I7R9hzfyC5UwGRTsrj x4rBvbGEDDy2orlZqzDQWK2VnpZdp0Lp4u/UI6rJn3krRJgK2IXgzkkYaTufz7gh BWFUCdluGtOuRsFdWim8obW1m8ZYbPVPL14+icibsJlNBy4L693p9gK0EQQlUzE= =Wyv7 -----END PGP SIGNATURE-----