From owner-cvs-src@FreeBSD.ORG Thu Jan 10 22:11:21 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB11516A41A; Thu, 10 Jan 2008 22:11:21 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8992413C448; Thu, 10 Jan 2008 22:11:21 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0AMBLFr018033; Thu, 10 Jan 2008 22:11:21 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0AMBLVQ018032; Thu, 10 Jan 2008 22:11:21 GMT (envelope-from jhb) Message-Id: <200801102211.m0AMBLVQ018032@repoman.freebsd.org> From: John Baldwin Date: Thu, 10 Jan 2008 22:11:21 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/include unistd.h src/lib/libc/gen Makefile.inc feature_present.3 feature_present.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2008 22:11:21 -0000 jhb 2008-01-10 22:11:21 UTC FreeBSD src repository Modified files: include unistd.h lib/libc/gen Makefile.inc Added files: lib/libc/gen feature_present.3 feature_present.c Log: Add a feature_present(3) function which checks to see if a named kernel feature is present by checking the kern.features sysctl MIB. MFC after: 1 week Revision Changes Path 1.81 +1 -0 src/include/unistd.h 1.130 +3 -2 src/lib/libc/gen/Makefile.inc 1.1 +72 -0 src/lib/libc/gen/feature_present.3 (new) 1.1 +62 -0 src/lib/libc/gen/feature_present.c (new)