From: Indra Antonius Simalango <indra@vlsi.itb.ac.id>
To: <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] a question about removing file function in eCos programming
Date: Tue, 19 Jul 2005 14:46:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.33.0507192131360.23508-100000@ic.vlsi.itb.ac.id> (raw)
In-Reply-To: <1121783251.1835.ezmlm@ecos.sourceware.org>
deal all,
Below are my quote snippet. It terminate previous page if page number
is non-zero and start next output page if page number is non-negative. If
page is -1 removes the most recently opened file. Returns 0 if OK, 2 on
errors.
-----------------------------------------------------------------------
int wrpage ( OFILE *f, int page )
{
int err=0 ;
err = nextopage ( f, page ) ;
if ( ! err && page == -1 ) {
if ( remove ( f->cfname ) ) {
err = msg ( "ES2can't delete file %s:", f->cfname ) ;
} else {
msg ( "Fremoved %s", f->cfname ) ;
}
}
return err ;
}
-----------------------------------------------------------------------
I've successfully compiled and linked it in linux, but I've found error
while linking it in eCos v2.0 with this error message :
file.o : In function 'wrpage' :
file.o(.text+0x69a):undefined reference to 'remove'
Is 'remove' function really undefined in eCos?
--
regards,
IndrA on 21:31, Jul 19
http://ic.ee.itb.ac.id/~antonius
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next parent reply other threads:[~2005-07-19 14:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1121783251.1835.ezmlm@ecos.sourceware.org>
2005-07-19 14:46 ` Indra Antonius Simalango [this message]
2005-07-19 15:16 ` Andrew Lunn
2005-07-19 15:38 ` Indra Antonius Simalango
2005-07-19 18:17 ` Andrew Lunn
2005-07-19 18:38 ` Indra Antonius Simalango
2005-07-27 4:55 ` [ECOS] a question about fcntl() in ecos posix programming Indra Antonius Simalango
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.33.0507192131360.23508-100000@ic.vlsi.itb.ac.id \
--to=indra@vlsi.itb.ac.id \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).