From owner-svn-src-all@FreeBSD.ORG Thu Jun 26 20:10:44 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 41F3367B for ; Thu, 26 Jun 2014 20:10:44 +0000 (UTC) Received: from nm22-vm1.bullet.mail.bf1.yahoo.com (nm22-vm1.bullet.mail.bf1.yahoo.com [98.139.212.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CBF84236B for ; Thu, 26 Jun 2014 20:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1403813054; bh=QcHeaTJTT+bdfBm4gDOHtiRYJGV+rGS2bD18KFBAn6w=; h=Received:Received:Received:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=qOXsSl57/4JKiMnUzwqRwtAouPFdO2SbFWxSFv7NlWAKI+/xjMicioQdiRj5Yb7OaUuETb2O3ry13hqJfgYHgTlm5TdA0NhfCMMQWRQq0OrcGhY0/fJVNS+DQuHR0/OPBiUfMkAs4jDWKL5/V+AIqMTKClaMo2cgHIBA3FDlZbKqlOPGERy5+fr9gh0Obr1l226i+lorvkhPsnC39EIRWabH2sW8scKql21nNpBPuPDmgGsg+EaACVlbBT/wkg4dIoKB+bKmQGrmeJhdVmU0uw6e5C9MAFx4IDDJ/sMMShzcOporKuzkqoNrLSj6mzxkaFKGyMJTBRcOBCcF84Ykxw== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=K6QOHbV7YRtgefN2bEtEfPMeVnZExGO8L/H20Rx7L4p6EqpH0dLon7ynNZvROFGIveb9K7y9EDiYbAm+esSRUlgG3tTKSbh34ghSS8Rq5CoaJb6Z/2cN3SvcRnezoDicJ5sb5UgtJ9DHIU3zuI2dsI6dFU8S3Oeq7GH/3+xTOqcEuChcjP/eQ8vyRlCWFz76wIxFP+AZ5yl2Ps1GhoKvzPkkVJUCUkUQUYh8vyGkajc/IBYdwoEZimWAr1uuY3eY6WxS5vMVL7LiyZu8MHE74sEon4XpTV0osSOy5gSf/y32v4c3iMe1OOD2pncJtdao6v9VNlK3IfFDbK5KcORjmQ==; Received: from [98.139.212.153] by nm22.bullet.mail.bf1.yahoo.com with NNFMP; 26 Jun 2014 20:04:14 -0000 Received: from [98.139.211.192] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 26 Jun 2014 20:04:14 -0000 Received: from [127.0.0.1] by smtp201.mail.bf1.yahoo.com with NNFMP; 26 Jun 2014 20:04:14 -0000 X-Yahoo-Newman-Id: 520544.61472.bm@smtp201.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 9jP7gXoVM1lR5CCt.oXJshD5th8X4MsfLQxt8WZPU8Sj_.4 mifczoO0kWF6Dy.GefMKHQyXL20lXol0dr.Oi0LlRTfMv2LGF1fadCfmhsin WahnE87EjsngHZuV2YwcLCRsiwWrPBBdaqvLdQqX_LoZdh7nrB26ctrAwO2Y P5Ns9AMr2hGV_YYzVik._OzlMmGI7AMKO22UIYWZAjj8gMD5H9bsxuRf48zU OxXcCh2prVyHZD0rbtoAZQwExgykSr4JKM99Nhsxm0RlG8_jdBUGwgetRCEl 2EaSXq6p9bhcM_qVFXA2EZ58LTR99zRKaQ62nmRpS9nnipPzELb6LkvpTnDa tYxgofqeZaW__OpL0mWT_pxg48wTq9LyA8mQUUg1sQkeqLKRpeLvvphrbrum izMRy4pV5T9GZ2owO4vog4RNdwEt4uuzyrwnpzvwV.gQcGqlELB_3RGuVs6r nr57iLachwv2A8Fqa2e4TWYkHsJpSYplD8Ar3IjZ4aKU50TfC_wGI18q_ZAO 9zPp30KC.IOfP67RMfP4_0vSlACGOyVZxGmlxx28eJSPPaYmkVXhYJLISLBk vs4cF_VG6Q9xRMLpeI6U6YpGjFoh71gUKzOxnYOfUzIoWeSaUoFaw9PMwgLz a X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with plain [98.138.105.21]) by smtp201.mail.bf1.yahoo.com with SMTP; 26 Jun 2014 13:04:14 -0700 PDT Message-ID: <53AC7CBE.5090904@freebsd.org> Date: Thu, 26 Jun 2014 15:04:14 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Rui Paulo Subject: Re: svn commit: r267930 - vendor-sys/illumos/dist/common/util References: <201406261945.s5QJjaM4079091@svn.freebsd.org> <03A51B26-0E01-4BD8-99D9-211514116EAF@felyko.com> In-Reply-To: <03A51B26-0E01-4BD8-99D9-211514116EAF@felyko.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "svn-src-all@freebsd.org" , "src-committers@freebsd.org" , "svn-src-vendor@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 20:10:44 -0000 On 06/26/14 14:57, Rui Paulo wrote: > It would be best if only one of us did this import... Please revert this. > The correct area is vendor, not vendor-sys because it comes from usr/src/common. > > -- > Rui Paulo > Yup, you missed my private email saying I was going to bring it in ... In any case, I won't interfere, you are doing a great job :). Pedro. >> On 26 Jun 2014, at 12:45, "Pedro F. Giffuni" wrote: >> >> Author: pfg >> Date: Thu Jun 26 19:45:35 2014 >> New Revision: 267930 >> URL: http://svnweb.freebsd.org/changeset/base/267930 >> >> Log: >> Bring a new header from OpenSolaris/Illumos. >> >> This is required for r266987 and probably other DTrace probes. >> >> Added: >> vendor-sys/illumos/dist/common/util/ >> vendor-sys/illumos/dist/common/util/strtolctype.h (contents, props changed) >> >> Added: vendor-sys/illumos/dist/common/util/strtolctype.h >> ============================================================================== >> --- /dev/null 00:00:00 1970 (empty, because file is newly added) >> +++ vendor-sys/illumos/dist/common/util/strtolctype.h Thu Jun 26 19:45:35 2014 (r267930) >> @@ -0,0 +1,79 @@ >> +/* >> + * CDDL HEADER START >> + * >> + * The contents of this file are subject to the terms of the >> + * Common Development and Distribution License (the "License"). >> + * You may not use this file except in compliance with the License. >> + * >> + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE >> + * or http://www.opensolaris.org/os/licensing. >> + * See the License for the specific language governing permissions >> + * and limitations under the License. >> + * >> + * When distributing Covered Code, include this CDDL HEADER in each >> + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. >> + * If applicable, add the following below this CDDL HEADER, with the >> + * fields enclosed by brackets "[]" replaced with your own identifying >> + * information: Portions Copyright [yyyy] [name of copyright owner] >> + * >> + * CDDL HEADER END >> + */ >> + >> +/* >> + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. >> + * Use is subject to license terms. >> + */ >> + >> +/* Copyright (c) 1988 AT&T */ >> +/* All Rights Reserved */ >> + >> +#ifndef _COMMON_UTIL_CTYPE_H >> +#define _COMMON_UTIL_CTYPE_H >> + >> +#ifdef __cplusplus >> +extern "C" { >> +#endif >> + >> +/* >> + * This header file contains a collection of macros that the strtou?ll? >> + * functions in common/util use to test characters. What we need is a kernel >> + * version of ctype.h. >> + * >> + * NOTE: These macros are used within several DTrace probe context functions. >> + * They must not be altered to make function calls or perform actions not >> + * safe in probe context. >> + */ >> + >> +#if defined(_KERNEL) && !defined(_BOOT) >> + >> +#define isalnum(ch) (isalpha(ch) || isdigit(ch)) >> +#define isalpha(ch) (isupper(ch) || islower(ch)) >> +#define isdigit(ch) ((ch) >= '0' && (ch) <= '9') >> +#define islower(ch) ((ch) >= 'a' && (ch) <= 'z') >> +#define isspace(ch) (((ch) == ' ') || ((ch) == '\r') || ((ch) == '\n') || \ >> + ((ch) == '\t') || ((ch) == '\f')) >> +#define isupper(ch) ((ch) >= 'A' && (ch) <= 'Z') >> +#define isxdigit(ch) (isdigit(ch) || ((ch) >= 'a' && (ch) <= 'f') || \ >> + ((ch) >= 'A' && (ch) <= 'F')) >> + >> +#endif /* _KERNEL && !_BOOT */ >> + >> +#define DIGIT(x) \ >> + (isdigit(x) ? (x) - '0' : islower(x) ? (x) + 10 - 'a' : (x) + 10 - 'A') >> + >> +#define MBASE ('z' - 'a' + 1 + 10) >> + >> +/* >> + * The following macro is a version of isalnum() that limits alphabetic >> + * characters to the ranges a-z and A-Z; locale dependent characters will not >> + * return 1. The members of a-z and A-Z are assumed to be in ascending order >> + * and contiguous. >> + */ >> +#define lisalnum(x) \ >> + (isdigit(x) || ((x) >= 'a' && (x) <= 'z') || ((x) >= 'A' && (x) <= 'Z')) >> + >> +#ifdef __cplusplus >> +} >> +#endif >> + >> +#endif /* _COMMON_UTIL_CTYPE_H */ >>