delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/03/12/01:46:05

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0B313858417
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1678603524;
bh=ua0NqSOaBjJKI9gZ8pgEIV0jjSBTVDN3XWB6Ko1wx30=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=Q4IykoXvJmi392l92m6gyHwr0327km/pB1WHsMZaXDBWN9jTXBRhPURMUd7YvJpO5
YdY2/+IPCpEC+qHrxKhf6FMsi/1ECretKPAj9kd0ZuhXT8W11JxEFBDv0GBJ9bNF98
NB5ngpBjk1jQRCDM/YvWfNYgjvstv1p7k22aMoV0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D2DA3858D1E
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112; t=1678603486;
h=content-transfer-encoding:to:content-language:subject:from
:user-agent:mime-version:date:message-id:x-gm-message-state:from:to
:cc:subject:date:message-id:reply-to;
bh=G6LF/SRTzHBwuHulUkvtd6T2nUw6pbbFwWcPfI5sV6U=;
b=yD0Wb2dz8vmGIZjQRJ3zZYxvdDrwvQiXfQ0RatTRE3k5ymymeAPkkVTkK3dd30qbhY
C/tQkYnqk2I4s6hNUXZHDjmXdYVP1cI36v8lPeCuNf7JGpgZFg7nF2YmL/yGoF6J4fKN
6BXjDjlwc4D1lE6CPh1W0Uat8VVvslm/jiJ6EQ+PJEZj8mRx4ce0UUyTN8jflEhFjvS4
gHBGG6eSjmS53+DG0k60iIijkT+WxqT9zgkHxr5ejxekXTZX5MkhBH/Fqn65bKtudXYY
ArD3jgBdr6bo4zbt3VwTBgg690fxUth7xr5VEoEU7j1xmX1YWtVKOqIwC5/nle97vBz4
pMFQ==
X-Gm-Message-State: AO0yUKUX2MrL3x1dVRzliUEkc4RLaWkJie21mMcJ7JQjW22ETY/cw9KV
G91P09EEMj5KPO9H47RUsptfkrhpAEM=
X-Google-Smtp-Source: AK7set8C5PEiufxeFD7wuIqO0KmK/YwFFaUwy0VHDvrct1Dk9nE+UxALH6I5kMls4SNsdGvcqp/E1g==
X-Received: by 2002:a17:902:d502:b0:19d:16e4:ac0f with SMTP id
b2-20020a170902d50200b0019d16e4ac0fmr38293845plg.5.1678603485940;
Sat, 11 Mar 2023 22:44:45 -0800 (PST)
Message-ID: <da1d3c87-b83d-c5f2-95e9-d38952da0703@gmail.com>
Date: Sun, 12 Mar 2023 17:44:43 +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: 3.4.6-1 shm_open always returns -1, errno EINVAL
To: cygwin AT cygwin DOT com
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, 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 <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Matthew Rickard via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Matthew Rickard <rickard DOT matt AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 32C6joGk021265

Hi all,

Cygwin 3.4.6-1 shm_open seems to reject all calls, returning  the value 
-1 and setting errno to 22 EINVAL.

For example, this program:

#include <sys/mman.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>

int main() {
   int res = shm_open("123", O_CREAT | O_RDWR, 0666);
   int error = errno;
   printf("res=%d errno=%d\n", res, errno);
   if (error == EINVAL)
     printf("That's EINVAL\n");
   return 0;
}

Says:

$ gcc -Og -o tiny tiny.c; ./tiny
res=-1 errno=22
That's EINVAL

Not sure if relevant, but I am currently running cygserver, with a 
default config.



-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019