public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Jonas Karlsson" <jonka750@student.liu.se>
To: "GCC Help mailinglist" <gcc-help@gcc.gnu.org>
Subject: Re: Cryptic error message from collect2
Date: Sun, 10 Aug 2008 04:29:00 -0000	[thread overview]
Message-ID: <op.ufneewzlllys5b@localhost.localdomain> (raw)
In-Reply-To: <489E30CA.C6FABDBA@dessent.net>

On Sun, 10 Aug 2008 02:05:30 +0200, Brian Dessent <brian@dessent.net> wrote:

> Jonas Karlsson wrote:
>
>> open("/tmp/ccc72aCK.ld", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EEXIST (File exists)
>
> I don't know why your filesystem returns an error for this syscall, but
> with a normal filesystem driver the exact same sequence occurs and
> succeeds:
>
> open("/tmp/ccPxl0Fa.ld", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
> close(3)                                = 0
> gettimeofday({1218326107, 17028}, NULL) = 0
> getpid()                                = 16870
> open("/tmp/ccCsztRa.le", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
> close(3)                                = 0
> open("/tmp/ccPxl0Fa.ld", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
>
> open() should fail with an existing file with O_CREAT|O_EXCL, but with
> O_CREAT|O_TRUNC it should succeed and truncate the file.
>
Yes! Thanks for the hint. This was all an error in the funionfs
implementation. Not being that experianced in file flags, I needed a
pointer. Thanks again.

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

      reply	other threads:[~2008-08-10  1:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-09 17:58 Jonas Karlsson
2008-08-09 20:26 ` Brian Dessent
2008-08-09 23:27   ` Jonas Karlsson
2008-08-10  1:58     ` Brian Dessent
2008-08-10  4:29       ` Jonas Karlsson [this message]

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=op.ufneewzlllys5b@localhost.localdomain \
    --to=jonka750@student.liu.se \
    --cc=gcc-help@gcc.gnu.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).