tell64 man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



TELL(3C)							      TELL(3C)

NAME
     tell, tell64 - return the read/write file pointer

SYNOPSIS
     #include <unistd.h>

     off_t tell (int filedes);

     off64_t tell64 (int filedes);

DESCRIPTION
     filedes is a file descriptor returned from a creat, open, dup, fcntl,
     pipe, or ioctl, system call.  tell and tell64 return the file pointer
     associated with filedes.

     The two differ in that tell returns an off_t and tell64 returns an
     off64_t.  The 64-bit offset returned by tell64 is useful for 32 bit
     applications working with 64 bit files.  This is because the 32 bit
     offset returned by tell might not be large enough to represent the
     current file offset.

     tell(filedes) is equivalent to:

	  lseek(filedes, 0, SEEK_CUR).

     tell64(filedes) is equivalent to:

	  lseek64(filedes, 0, SEEK_CUR).

SEE ALSO
     lseek(2), lseek64(2)

DIAGNOSTICS
     On success, tell and tell64 return the current pointer location, as
     measured in bytes from the beginning of the file.

     tell and tell64 fail if one or more of the following are true:

     EBADF	    fildes is not an open file descriptor.

     ESPIPE	    fildes is associated with a pipe or fifo.

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net