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

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Mon Mar 05 2001 - 08:56:34 PST

  • Next message: Collins, Martin: "RE: OT: Is "fileno()" conform to ANSI or POSIX?"

    Petter Reinholdtsen wrote:
    >
    > [Oliver Rauch]
    > > I can not find an info if fileno() is conform to ANSI or POSIX. Can
    > > someome tell me?!
    >
    > I'm pretty sure it is not ANSI C (which only operates on FILE*, not
    > file descriptors), but I do not know if it is POSIX og something else
    > (Unix98, etc). Why do you need to know?

    Hi Petter,

    for rotation of a scanned image I want to use mmap when available.
    mmap needs a filedescriptor and I have a FILE pointer. Fileno
    does exactly what I need.

    The question is if I can expect that fileno() is available
    on most/all systems xsane does compile on.

    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 - 08:37:15 PST