www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:content-transfer-encoding | |
:content-type:message-id:date:from:reply-to:to:subject | |
:references:in-reply-to; q=dns; s=default; b=cGhRrzyRYsaV3L3DLzH | |
ZCSJ0tDXyJcgbzhHOt6KGx3U9RCabAZ1xsF/S2iV5zPkAGWE/kyZp6BnWzSWB89s | |
kcU6MQYn52Ej4vk3cLM1eRGe9QWwZ+YSj2evjZe6kN9IPacIB1TcYBTJMVctajdd | |
b4we4Q4k0o5fA3ZGnVSI8s7Y= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:content-transfer-encoding | |
:content-type:message-id:date:from:reply-to:to:subject | |
:references:in-reply-to; s=default; bh=peXfS4+sL2yHSEFffy8AXh/VV | |
v4=; b=IrxHgicegLTSxvw/2IQUrGVcb4u0lnpE6I2OUUpNyG74fkFmAfi+AlLYo | |
xigNJhCe5Y1fYRl3buZQErB4C6GXFWwwRTmpPE+BBToM+Ln6bw4IKOjo0L2yaMjV | |
RHIrUROQEDhtV8qNYL44IkY6c5NR/mSF/7cVmI9J5pGAXCinGw= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 |
X-HELO: | vms173025pub.verizon.net |
MIME-version: | 1.0 |
Message-id: | <52EAA171.406@cygwin.com> |
Date: | Thu, 30 Jan 2014 14:01:05 -0500 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: second call to mmap() results in error |
References: | <20140129181250 DOT GW2821 AT calimero DOT vinschen DOT de> <52E95786 DOT 8050606 AT gmail DOT com> <20140130095822 DOT GY2821 AT calimero DOT vinschen DOT de> <001801cf1db6$66c47c40$344d74c0$@lbmsys.com> <20140130124558 DOT GA2821 AT calimero DOT vinschen DOT de> <003801cf1dbd$fc3ffc70$f4bff550$@lbmsys.com> <20140130170142 DOT GD2821 AT calimero DOT vinschen DOT de> <5F8AAC04F9616747BC4CC0E803D5907D0C4763CC AT MLBXv04 DOT nih DOT gov> <52EA9A53 DOT 2050203 AT cygwin DOT com> <5F8AAC04F9616747BC4CC0E803D5907D0C4764C5 AT MLBXv04 DOT nih DOT gov> <20140130183956 DOT GA3573 AT ednor DOT casa DOT cgf DOT cx> <5F8AAC04F9616747BC4CC0E803D5907D0C4764ED AT MLBXv04 DOT nih DOT gov> <52EA9EA2 DOT 5030202 AT cygwin DOT com> <5F8AAC04F9616747BC4CC0E803D5907D0C476528 AT MLBXv04 DOT nih DOT gov> |
In-reply-to: | <5F8AAC04F9616747BC4CC0E803D5907D0C476528@MLBXv04.nih.gov> |
On 1/30/2014 1:52 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: >> Try adding -Wall to your compile line. > > I did. There was no warning (and it should not have because > #include <sys/mman.h> is there). Why <unistd.h> ? It's not > needed to compile and run the original code. Forget mmap(). That's not the issue here. It's ftruncate() which is declared in unistd.h. If 'gcc -Wall -o foo foo.c', where foo.c is Steve's code from the link below, doesn't result in a foo.c:18:28: error: ‘ftruncate’ was not declared in this scope ftruncate(shm_fd1, 524304); complaint, then I'd say you need to send a full problem report if you can't find a good reason for that behavior in your environment - <http://cygwin.com/problems.html> <http://cygwin.com/ml/cygwin/2014-01/msg00518.html> -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |