From owner-svn-src-head@freebsd.org Tue Jan 17 21:34:35 2017 Return-Path: Delivered-To: svn-src-head@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 316E9CB5891 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 EB7F614B0 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 203so104772911ith.0 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=cHlIU2O3f/O9RSb1FKb1a+u263QV2VOV5wT3OZB2gcFAgdJy90+ZF5gzCQLyAIZYOX YqOfzH246//V74MsJ/0hETmZIs1GYadMcNqslMBb57E72lVRiubeWmv9XL/AdXBpzaor Yup+zYBSzNF5XM3DpciEsVm5S80jdcUT4haYpu/km4Fk3yTUtEGJt85bVmuVwit5XIiM bilGcWzEQz2wACShMy8szHUX/DdrUp7V+OWyb01tfssTWeZKi5NHu5BZhKMf0KO/nCGc IlT6AugCuKojzZEBlhatLR2g9iG4e3WY3cPcLKBtYjn9kPSM12OcR+PaiVJvV8VoY+/l 39vw== X-Gm-Message-State: AIkVDXLbEs5W917mtkKM8QRrRsdNwdtNa0nd4odSBbP5i4Fqb+O0RwDJDOHS0EPlBF8wjaMGqI6eYcL6zs+zQJ/K 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-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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. > >