Re: OT: Is "fileno()" conform to ANSI or POSIX?

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Mon Mar 05 2001 - 10:48:13 PST

  • Next message: Petter Reinholdtsen: "Re: OT: Is "fileno()" conform to ANSI or POSIX?"

    "Collins, Martin" wrote:
    >
    > Oliver Rauch asked:
    > > The question is if I can expect that fileno() is available
    > > on most/all systems xsane does compile on.
    >
    > I believe fileno() is specified in POSIX 1003.1 and is available
    > on HP-UX, AIX and QNX as well as in glibc. So you're probably safe
    > using it.

    Fine, thanks.

    By the way, does anyone know if mmap does anything else than
    buffer=malloc(size) + fread(buffer, size, 1, file) ?

    This way I would not depend on mmap and fileno.

    Bye
    Oliver

    -- 
    Homepage:	http://www.rauch-domain.de
    sane-umax:	http://www.rauch-domain.de/sane-umax
    xsane:		http://www.xsane.org
    E-Mail:		mailto:Oliver.Rauch@rauch-domain.de
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Mon Mar 05 2001 - 10:31:17 PST