X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: RayeR Newsgroups: comp.os.msdos.djgpp Subject: Re: _rdtsc(void) inline function in time.h - cause problem with multiple definition during linking Date: Sun, 30 Oct 2011 13:29:37 -0700 (PDT) Organization: http://groups.google.com Lines: 22 Message-ID: <851c9b46-4f07-439f-bd59-a3a7c0c00f39@a12g2000vbz.googlegroups.com> References: <4ce51722-c2fd-4fe0-8cb9-ebae498c3271 AT r1g2000yqm DOT googlegroups DOT com> <83k47tc9u2 DOT fsf AT gnu DOT org> <65da0e3d-29ea-46ae-b23d-ae08652594aa AT a17g2000yqj DOT googlegroups DOT com> <0a80c084-8135-4c4d-a25c-b56f3eb41e36 AT y36g2000yqm DOT googlegroups DOT com> <4EA8D10E DOT 8030200 AT iki DOT fi> NNTP-Posting-Host: 78.45.168.98 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1320006696 6066 127.0.0.1 (30 Oct 2011 20:31:36 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 30 Oct 2011 20:31:36 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: a12g2000vbz.googlegroups.com; posting-host=78.45.168.98; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14,gzip(gfe) Bytes: 2498 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Just a small note to FCNTL.H: When I compiled a program (for limnux) using function open() it couldn't find S_IRUSR and S_IWUSR constants. They are referenced from FCNTL.H, line 104 #define S_IREAD S_IRUSR #define S_IWRITE S_IWUSR #define S_IEXEC S_IXUSR but not defined here. I found they are in STAT.H, line 30 #define S_IRUSR 00400 #define S_IRGRP 00040 #define S_IROTH 00004 #define S_IWUSR 00200 so I tried to add #include and then it compiled OK. Wouldn't be better to include sys/stat.h directly from FCNTL.H?