| 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:from:subject:reply-to:to:references:message-id | |
| :date:mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; q=dns; s=default; b=Or9VyV4ZmaOAGWel | |
| scFuIFCG8fPSPMScPTqNW5ii/AqGHDqgOpc2HoNAmdujYINKQIE7APeQdoSySB9d | |
| BY+Wc1zUj3qHxhuuxhXifS9naDAPpOuOrPq3KjyFRmrEAke1mY0DhDdxDQ6IFUp7 | |
| 8JXEscULOJVs8yKiPjP0rch/Lfs= | |
| 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:from:subject:reply-to:to:references:message-id | |
| :date:mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; s=default; bh=J6KDZ7qJcrCSiNDRuSF04L | |
| rMLkU=; b=qdKs8TcZRPUPIDuJk8XBj6lU7Hqr5uvcRUxuL142xRBEDu/yhPwc6B | |
| edtsb+koMO/ShAzTC6ZkMtLBqz2a/qefZgJcqmPSb4gdPxZvSIWK0oQSJ0P1tSC2 | |
| 2rQKnOWJS+S9QPiNziXz5sh3FpdqizNfakpR8vho/DBQNquWuCt7M= | |
| 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-Spam-SWARE-Status: | No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*R:D*ca, H*r:sk:smtp-ou, HX-Spam-Relays-External:sk:smtp-ou, HX-HELO:sk:smtp-ou |
| X-HELO: | smtp-out-no.shaw.ca |
| From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
| Subject: | Re: netinet/* in Cygwin |
| Reply-To: | Brian DOT Inglis AT SystematicSw DOT ab DOT ca |
| To: | cygwin AT cygwin DOT com |
| References: | <61fcbddd17cbfe370eb3ae95489d17e8 AT ithena DOT net> <4c91c547-1f85-c24d-3404-bbd3d947cb63 AT SystematicSw DOT ab DOT ca> <6cbe355551e6c6bdc6a55645b693fbcf AT ithena DOT net> |
| Openpgp: | preference=signencrypt |
| Message-ID: | <90ea37e6-913d-87af-ed4f-8853fec79e29@SystematicSw.ab.ca> |
| Date: | Fri, 6 Sep 2019 11:39:22 -0600 |
| User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <6cbe355551e6c6bdc6a55645b693fbcf@ithena.net> |
| X-IsSubscribed: | yes |
On 2019-09-05 00:49, Lukasz Swierczewski wrote:
> W dniu 2019-09-04 18:34, Brian Inglis napisaĆ(a):
>> On 2019-09-04 00:36, Lukasz Swierczewski wrote:
>>> I have question.
>>> I need netinet/* in my C project.
>>> For example:
>>> #include <netinet/icmp6.h>
>>> #include <netinet/ip_icmp.h>
>>> #include <netinet/in.h>
>>> #include <netinet/ip6.h>
>>> Is this available in Cygwin?
>>
>> $ cygcheck -p usr/include/netinet/
>> Found 6 matches for usr/include/netinet/
>> cygwin-devel-3.0.6-1 - cygwin-devel: Core development files
>> cygwin-devel-3.0.7-1 - cygwin-devel: Core development files
>> cygwin-devel-3.1.0-0.3 - cygwin-devel: Core development files
>> cygwin32-2.10.0-1 - cygwin32: Cygwin 32bit toolchain
>> cygwin32-2.6.0-1 - cygwin32: Cygwin 32bit toolchain (installed binaries and
>> support files)
>> cygwin32-2.8.2-1 - cygwin32: Cygwin 32bit toolchain
>>
>> $ zfgrep netinet /etc/setup/cygwin-devel.lst.gz
>> usr/include/netinet/
>> usr/include/netinet/in.h
>> usr/include/netinet/in_systm.h
>> usr/include/netinet/ip.h
>> usr/include/netinet/ip6.h
>> usr/include/netinet/ip_icmp.h
>> usr/include/netinet/tcp.h
>> usr/include/netinet/udp.h
>>
>> Install cygwin-devel package.
>>
>>> There are problems as standard ...
>>> What do you need to do to compile with these libs?
>>
>> In many cases, nothing, as the functions are built into libc in the cygwin dll;
>> otherwise for other libraries, add -l... to your build command line as you would
>> on Unix.
> Thanks!
> It looks like it works ...
> You can tell where I can find:
> #include <linux/types.h>
> #include <linux/errqueue.h>
> Any idea? ;)
Unfortunately, system specific includes like linux/types.h and linux/errqueue.h
make no sense on other systems which do not have those features, although there
are lots of types to choose from on all systems:
$ find /usr/include/{asm,machine,sys} -name _default_types.h \
-o -name _types.h -o -name types.h -o -name stddef.h \
-o -name stdint.h -o -name _stdint.h ; \
ls -1 /usr/include/{inttypes,stdint}.h \
/lib/gcc/x86_64-pc-cygwin/*/include/std{def,int}.h
/usr/include/asm/types.h
/usr/include/machine/types.h
/usr/include/machine/_default_types.h
/usr/include/machine/_types.h
/usr/include/sys/types.h
/usr/include/sys/_stdint.h
/usr/include/sys/_types.h
/lib/gcc/x86_64-pc-cygwin/7.4.0/include/stddef.h
/lib/gcc/x86_64-pc-cygwin/7.4.0/include/stdint.h
/usr/include/inttypes.h
/usr/include/stdint.h
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
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 |