ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/11/01/13:30:06

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: RayeR <glaux AT centrum DOT cz>
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> <CAA2C=vAn=NZYHMCc58HqfNZ=cdVbom-cE4ZZV1Pz=ziTT8EsNA AT mail DOT gmail DOT com>
<65da0e3d-29ea-46ae-b23d-ae08652594aa AT a17g2000yqj DOT googlegroups DOT com>
<0a80c084-8135-4c4d-a25c-b56f3eb41e36 AT y36g2000yqm DOT googlegroups DOT com>
<CAA2C=vBVOTxMEjm4qhRkMZ8oT6VManx6_m30qgpFqzp4Gz=ZEQ AT mail DOT gmail DOT com>
<ec1c078d-cb5d-45c0-8c12-491b8ae012ac AT r28g2000yqj DOT googlegroups DOT com>
<CAA2C=vC7F7gz+yQg8FpyiPGu1SZCHOYjcnHd2iqa=-Svof2o1g AT mail DOT gmail DOT com>
<ef41aea8-5f10-4695-ae05-e43013abca25 AT q16g2000yqn DOT googlegroups DOT com>
<CAA2C=vAdrF7ekUek8oqGXJ6espJ4rUikT3H0AY_cA0sTKRzb+A AT mail DOT gmail DOT com>
<4EA8D10E DOT 8030200 AT iki DOT fi> <cfac8d8c-7215-46ef-b7de-d88d59fbf2f6 AT x21g2000yqb DOT googlegroups DOT com>
NNTP-Posting-Host: 78.45.168.98
Mime-Version: 1.0
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 <sys/stat.h>
and then it compiled OK.
Wouldn't be better to include sys/stat.h directly from FCNTL.H?

- Raw text -


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