From owner-svn-src-vendor@FreeBSD.ORG Thu Jun 26 20:02:04 2014 Return-Path: Delivered-To: svn-src-vendor@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 E1634FB2 for ; Thu, 26 Jun 2014 20:02:03 +0000 (UTC) Received: from nm45-vm4.bullet.mail.bf1.yahoo.com (nm45-vm4.bullet.mail.bf1.yahoo.com [216.109.115.63]) (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 8EDDD22C5 for ; Thu, 26 Jun 2014 20:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1403812576; bh=oU3lKHUmhXXeH+ydMPf2ZMTch7oEGxrDk0NtWrBW2hw=; 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:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ZHqjo52H2ZAyjGcgOriZhqTwIHroKkQDWgLQ+c8Czak88wBqSIAQUSuEixuHT+YtioU5yr4brQbOi7HcCBT7mA9WljCz5FrSqrKRE9AjB3w6n+klvHZp0ZmlNS9gWCmVEmfbNssrw3tdUvXuQBOdhccKbLfIha1AwffBzBbyNOppO1+UBpKLN+f9QVGsTI2Wzz4EfzDFIS1BCT881yntqKaIMTSibQQb5bHcnybC6wFnX92ortt8oc/1zvMAgk74w45JkVcQivtjdtcqQR6GW9Mp4nVOjgfrjZqWCakXBgovHVLM6PQJDWfGZgvDHHszaV3pChm6+WaWBfuvGldWEA== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=BMVeB1H/gGTAN64g6fiT7KeCLoAIfUc8rfl58H4I/oaZo4TUk0TMKh8Ma6eoiwxHmE9eCAYkJxEcNphyRuHqvDfoimAxiU/ZEkeZzPZxqBu3vhTooCnYZGYNeqNE4alvGu4OoF0CsAOkP9midpXVnr/44x2adz5qIC1KqNFSYpgdivgiZG0PdRU9GN9piIGITowbSThrZsF02ejHwAAgcPeLnxbqS1t1w38h/ELw0cBWZ6TY2nMvp708AHT2lgbH1YwS+UFjyMvUw6PAgPYk1lqzc3FaSnD/XWB0G1BrixZJY/PDQ2Dm6+JHtEmtU6+2MEpKjv0z0Md0NUxVhndqcQ==; Received: from [66.196.81.170] by nm45.bullet.mail.bf1.yahoo.com with NNFMP; 26 Jun 2014 19:56:16 -0000 Received: from [98.139.211.203] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 26 Jun 2014 19:56:16 -0000 Received: from [127.0.0.1] by smtp212.mail.bf1.yahoo.com with NNFMP; 26 Jun 2014 19:56:16 -0000 X-Yahoo-Newman-Id: 509868.52565.bm@smtp212.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 7pbfxccVM1nH8JlKHQSpALkCvJrWOW8AweuPkiGV1pJFj9m 5zSJ1xWzEPOQe.8nf8k6BEdLiIUc3Lq6iQ6MoZu.vcAd8P9COnodEyez6Wjr FrzpOd93UxeQG4zrPD2QivVr74arI5pes9iaGWEJCHCTTfxyA9Ydu6t8qgvN NjzmC_pJmCQQBwJjDnx2GvW.nbz_B3GFUZ3CIFVgg1CcSBfUejVjYKcl3drt VE6xZ8zurI5MkAs37oVY85tnT86nKyqwDvu4yzNebtB9VqmCs1ZH6gtInAJD gG5Iqj4CC2Js_n7qe5r6vlONFrDJGzQ0yZu_mBV1ZL9g1HH7oKiIYE1Qhpgw 6Q2HMhFWo14r_XJL_71X6QfVK3rRmM1WYQ5rMColwEWkV8r6ZEFDfaKbePfg J1WfBqUH5vuge73Qhp37sL.BECoCjWcdVt92qzQjX56yshxUZ0dVCd.IXavy r9z9QYmFpxYoDlAh1AdRXgXnWMVVoud0mHw2Jbixcm.AP6aXTXMIDfkBeloa ojZpfkmcXDTJ8od07Yh4RURxMDDq08HgW_UiYWXQMfeAUxRUS27TrPOt.kGG qCHxnCP1Az07wcyIpA48o9xjtaQ9vt7ddqV_eJefFC2jOy_mot8rlmVniiTy Mx3y1PNnSyC5hTszybgdJCEHGchD0Dn_3kpc.OH8qlm97cAfxcMM6smQAUK5 lO_AtagWgdqtVsWDrtxJVPek- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with plain [98.138.105.21]) by smtp212.mail.bf1.yahoo.com with SMTP; 26 Jun 2014 12:56:16 -0700 PDT Message-ID: <53AC7AE0.8020704@freebsd.org> Date: Thu, 26 Jun 2014 14:56:16 -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 , svn-src-vendor@freebsd.org Subject: Re: svn commit: r267931 - vendor/illumos/dist/common/util References: <201406261949.s5QJn04M079547@svn.freebsd.org> In-Reply-To: <201406261949.s5QJn04M079547@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 20:02:04 -0000 Ugh... I copied the same file to vendor-sys ... Should I revert? Pedro. On 06/26/14 14:49, Rui Paulo wrote: > Author: rpaulo > Date: Thu Jun 26 19:48:59 2014 > New Revision: 267931 > URL: http://svnweb.freebsd.org/changeset/base/267931 > > Log: > OS-1723 DTrace should speak JSON > Reviewed by: Bryan Cantrill > > illumos/illumos-gate@8017f1f8eea31bd1160b5e50755242a2a9aabc7d > > Added: > vendor/illumos/dist/common/util/ > vendor/illumos/dist/common/util/strtolctype.h (contents, props changed) > > Added: vendor/illumos/dist/common/util/strtolctype.h > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ vendor/illumos/dist/common/util/strtolctype.h Thu Jun 26 19:48:59 2014 (r267931) > @@ -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 */ >