public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eric Blake <ebb9@byu.net>
To: cygwin@cygwin.com
Subject: Re: lseek() returning Invalid Argument
Date: Tue, 15 Sep 2009 23:08:00 -0000	[thread overview]
Message-ID: <loom.20090916T010637-811@post.gmane.org> (raw)
In-Reply-To: <h8p54p$j1l$1@ger.gmane.org>

gballey <galley <at> ace-co.com> writes:

> Anyone got an idea of what is going on here?

Yep.


Oh, you wanted to know what your bug is?

> 
> Thanks.
> 
> /* begin test.c */
> 
> #include <fcntl.h>
> #include <stdio.h>

Oops - no #include <unistd.h>.  lseek takes 64-bit type arguments, but without 
a declaration from the correct header, the compiler assumes it takes int 
arguments.  Try compiling with -Wall.

-- 
Eric Blake




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2009-09-15 23:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15 22:45 gballey
2009-09-15 23:08 ` Eric Blake [this message]
2009-09-15 23:58   ` gballey

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=loom.20090916T010637-811@post.gmane.org \
    --to=ebb9@byu.net \
    --cc=cygwin@cygwin.com \
    /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).