This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: EB40 Serial port #1 question.
- To: <harri dot siirtola at vtt dot fi>
- Subject: RE: [ECOS] EB40 Serial port #1 question.
- From: "Mathieu Routhier" <mrouthier-list at softacoustik dot com>
- Date: Thu, 11 Oct 2001 11:40:32 -0400
- Cc: <ecos-discuss at sources dot redhat dot com>
In my docs here, 'r+' stands for "Opens for both reading and writing.
(The file must exist.)"
Appending is 'a'.
Mathieu Routhier
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of
harri.siirtola@vtt.fi
Sent: Thursday, October 11, 2001 6:51 AM
To: felixwong@i-technologies.cc; Jonathan Larmour
Cc: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] EB40 Serial port #1 question.
At 09:29 11.10.2001 +0800, felixwong@i-technologies.cc wrote:
>Now have no problem in output part using fprintf & other file
operations.
>What if I want to have a READ/WRITE device open?
>use "r+w" instead of "rw" or "wr"?
AFAIK, r+ means "read and append", so the plus stands for writing,
doesn't it?
>
>FW
Harri