From owner-svn-src-all@freebsd.org Tue Jan 17 21:34:35 2017 Return-Path: Delivered-To: svn-src-all@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 283FECB5890 for ; Tue, 17 Jan 2017 21:34:35 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com [IPv6:2607:f8b0:4001:c0b::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E235014AE for ; Tue, 17 Jan 2017 21:34:34 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mail-it0-x22f.google.com with SMTP id k200so15135530itb.1 for ; Tue, 17 Jan 2017 13:34:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sippysoft-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=an+zzmbcc4NXJ9RHhd0Ukxlry+sRFIqg43GVtGpsrB4=; b=EUHDXzq+QXeQXwvd7DU37umFMQ7pLodka1UVrrN8F4/rzRJ4su/eics8W9009V1Bpv PheT/ACQDDDPwIDXPxXQguGz/zSsVMPDv5rhIDw0nuCnEE4oSLkzLodMA5fEi0kka/jn D1ekiO6CbAVyGxFZtDd48nXXzy2xnPrFfWe2Um8lcCol2Q4x3F/hCBUVQqbq7TrByv0e qBM7qUjrqWrY8gUbYt/nD0vu7ojzH4QphoY9h7UKQrqYdAlH59H8j96HlIBGawzzGwyY 9NKGpQn+U6+8UqbeVBXDButVlsfRd5g5kPtyKmhNpwgM+6cPEIVVNn91GYc/otuUjY3r JT5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=an+zzmbcc4NXJ9RHhd0Ukxlry+sRFIqg43GVtGpsrB4=; b=SVFvz1NpTkpjEluMXSJ5rfGgf/DBZpVp0RfhgijHB0y9XZ3kieViB4PgnfLrmDpEj4 htD0Pd9heiXfi/YN9HFwlXuDS4wmwQGz1N/pqGfcp3jnpiUiQFA7d4Npultzw5bInrE7 2ZGeTG+GVuLFnjEEUpixEMpP0vWuixAZDQPQEAHn2/X6Q5ugHkLjphQTD0c12tcvydev YQ9eycv7cuwdu97yEliS4b1oIYC6YGqxcM/WelCPagcw7XvbnrE94r0/2cbQw2vg4f41 n6mIhn7GpcGa2S3s1Zxh7Ekxpg1eJBydA+FJh4JfTGSJ1ZxfhC7cyozF842AY1K2nTfo mn2Q== X-Gm-Message-State: AIkVDXLlbSmC0WnsExDqVN6UmeJ17Q0MrnILL0HULDc6SAZFk0VH+Kee/7xK9pokWL8UQ8XD13V3EFkI4KBZqHDO X-Received: by 10.36.13.195 with SMTP id 186mr23031794itx.22.1484688874169; Tue, 17 Jan 2017 13:34:34 -0800 (PST) MIME-Version: 1.0 Sender: sobomax@sippysoft.com Received: by 10.36.160.66 with HTTP; Tue, 17 Jan 2017 13:34:33 -0800 (PST) In-Reply-To: <20170117212713.GZ2611@FreeBSD.org> References: <201701161746.v0GHkcPX071529@repo.freebsd.org> <20170117065231.GW2611@FreeBSD.org> <20170117212713.GZ2611@FreeBSD.org> From: Maxim Sobolev Date: Tue, 17 Jan 2017 13:34:33 -0800 X-Google-Sender-Auth: bh6V8wlG4fGk3t-ngmI9rsF18TM Message-ID: Subject: Re: svn commit: r312296 - in head: lib/libc/sys sys/kern sys/netinet sys/netinet6 sys/sys tools/regression/sockets/udp_pingpong tools/regression/sockets/unix_cmsg To: Gleb Smirnoff Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 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: Tue, 17 Jan 2017 21:34:35 -0000 Well as other pointed out there are some concerns with using enums from C++ and ABI prospective. So it looks to me that there is no general consensus on that direction. -Max On Tue, Jan 17, 2017 at 1:27 PM, Gleb Smirnoff wrote: > On Tue, Jan 17, 2017 at 08:40:50AM -0800, Maxim Sobolev wrote: > M> That being said, is there any other socket option value in there > M> implemented as enum? I don't see anything obvious, so that I am curious > if > M> it would stick out as an odd one in there. What do you think? > > Simply because 30 years ago the language didn't allow that, and later > additions mimiced the older sockopts. We need to break this loop :) > > -- > Totus tuus, Glebius. > >