X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 565A13858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1678661727; bh=WPdo1Ck2Eg1cLfpbyvYrjtu+/85Vjd8hsEaSawgwnkg=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=jozi7PxCVKaDWk2FtYoIYAp3jZdbrasxc9caP0dO1E6UxYB8/+fm56AdulCMk7SLp bgVVlfAIlfYgiJOIiEsFXy0WwLqRKW2SviHcmnn7ftecjw7USG5U455NOihbrR10dg Tzz8HTXaaQQPogBU3HtjzYoo6gZPf5VaW9KWrqTY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA2B03858D32 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678661710; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UgtSXcdfyU8rI8W9+6Jk2CBajYIz07XgY8mEKmFbi94=; b=5NDKkZdIM+/NPucG1NXzYIkYNb62C7e7KE5I2zTDFKrnc4jrMKqYZwSzNadq9m6GvG YxTQrzVbdPHdhJYKdYhj4Ku61dpOmdMJYCXXrXF1I6bwnFtE/UpcfNlN2l/fB4lmAUdq h5RQwvmOoNOv4eYp9FzjtMH9xI/7o51hiX4nPCGwMJyUuf4Z5icMLhtF7Ry+UvYpfOgM j02EGBfXyB3RqP4j4UL/O2ptsZKLrtPZfbFdJRfW5QkaDMvXPbKS0YmTeq7WISp+zBBR asbCL9h2Qc0bWOow5TfRlLHhstZQoHC7twwHO2EiC56OUR1sTt9v5bZUUy7AEgKujUtD qLuQ== X-Gm-Message-State: AO0yUKWUAhU1uVl+MNlksL5bTb/wTsAMXiDqNtI3C95OxSZNmBtAc/bZ oGhp9+binenmUGKgG5F9y978Op9DUOc= X-Google-Smtp-Source: AK7set/bspWyLm45L1f5gLz5v+LJeOA8WLTV4Uap3NrU3KQxVGrhbxIfc6JspulNDY5dRiAbBEGwkg== X-Received: by 2002:a17:903:1d1:b0:19e:608d:6844 with SMTP id e17-20020a17090301d100b0019e608d6844mr42998575plh.10.1678661709763; Sun, 12 Mar 2023 15:55:09 -0700 (PDT) Message-ID: <9ee76b85-9d35-8e30-43b4-5bfd51ff78fb@gmail.com> Date: Mon, 13 Mar 2023 09:55:09 +1100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: 3.4.6-1 shm_open always returns -1, errno EINVAL Content-Language: en-US To: Csaba Raduly , cygwin list References: In-Reply-To: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Matthew Rickard via Cygwin Reply-To: Matthew Rickard Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" That's perfect, thank you! On 12/03/2023 9:35 pm, Csaba Raduly wrote: > Hi Matthew, ... > https://man7.org/linux/man-pages/man3/shm_open.3.html says: > > For portable use, a shared memory object should be identified by > a name of the form /somename; that is, a null-terminated string > of up to NAME_MAX (i.e., 255) characters consisting of an initial > slash, followed by one or more characters, none of which are > slashes. > > Changing the shm_open call to > > shm_open("/123", O_CREAT | O_RDWR, 0666); > > returns 3 and sets errno to zero. > > Csaba -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple