From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12713 Path: news.gmane.org!.POSTED!not-for-mail From: "Laurent Bercot" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [PATCH] add SOCK_STREAM support for syslog Date: Fri, 13 Apr 2018 01:54:21 +0000 Message-ID: References: <20170821104740.10802-1-hrvoje.varga@sartura.hr> <20180412150431.1f754356d4360531017e8560@sartura.hr> <20180413003940.GR3094@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1523584350 21297 195.159.176.226 (13 Apr 2018 01:52:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2018 01:52:30 +0000 (UTC) User-Agent: eM_Client/7.1.31849.0 To: musl@lists.openwall.com Original-X-From: musl-return-12729-gllmg-musl=m.gmane.org@lists.openwall.com Fri Apr 13 03:52:26 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1f6nt3-0005Qf-Ok for gllmg-musl@m.gmane.org; Fri, 13 Apr 2018 03:52:25 +0200 Original-Received: (qmail 9679 invoked by uid 550); 13 Apr 2018 01:54:33 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 9659 invoked from network); 13 Apr 2018 01:54:33 -0000 In-Reply-To: <20180413003940.GR3094@brightrain.aerifal.cx> X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtgedriedugdehgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfpfgfogfftkfevteeunffgpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgjfhhrfgggtgfgsehtqhertddtreejnecuhfhrohhmpedfnfgruhhrvghnthcuuegvrhgtohhtfdcuoehskhgrqdguihgvthhlihgstgesshhkrghrnhgvthdrohhrgheqnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtnecuvehluhhsthgvrhfuihiivgeptd Xref: news.gmane.org gmane.linux.lib.musl.general:12713 Archived-At: >Yes, and it never really concluded. I think it's probably harmless to >support SOCK_STREAM if users want it though. I do want it. It's the first step towards a simple, non-bloated implementation of syslogd. Please support SOCK_STREAM whenever there's nothing more urgent to do. :P >One question I had that never got answered: are SOCK_DGRAM and >SOCK_STREAM unix socket addresses mutually exclusive, or can the same >name be listening as both types? They appear to be mutually exclusive. execve("./test-socket", ["./test-socket"], [/* 24 vars */]) =3D 0 arch_prctl(ARCH_SET_FS, 0x602538) =3D 0 set_tid_address(0x602570) =3D 9828 socket(PF_LOCAL, SOCK_STREAM|SOCK_NONBLOCK, 0) =3D 3 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) =3D 0 socket(PF_LOCAL, SOCK_DGRAM|SOCK_NONBLOCK, 0) =3D 4 setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) =3D 0 unlink("/tmp/socket") =3D 0 bind(3, {sa_family=3DAF_LOCAL, sun_path=3D"/tmp/socket"}, 110) =3D 0 bind(4, {sa_family=3DAF_LOCAL, sun_path=3D"/tmp/socket"}, 110) =3D -1=20 EADDRINUSE (Address already in use) -- Laurent