*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> tell (3c)              
Title
Content
Arch
Section
 

Contents


TELL(3C)							      TELL(3C)


NAME    [Toc]    [Back]

     tell, tell64 - return the read/write file pointer

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     off_t tell	(int filedes);

     off64_t tell64 (int filedes);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

      
      
     lseek(2), lseek64(2)

DIAGNOSTICS    [Toc]    [Back]

     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.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
AFreadmisc IRIX read from / write to / move logical read/write pointer for data in a miscellaneous chunk in an audio file
lseek IRIX move read/write file pointer
lseek HP-UX move read/write file pointer; seek
SSL_SESSION_print_fp Tru64 Write data in the SSL_SESSION structure to the BIO or to an I/O stream specified by the file pointer
SSL_SESSION_print Tru64 Write data in the SSL_SESSION structure to the BIO or to an I/O stream specified by the file pointer
VOP_WRITE FreeBSD read or write a file
VOP_READ FreeBSD read or write a file
VOP_RDWR FreeBSD read or write a file
AFseekframe IRIX move logical file read pointer for a specified audio track to a desired sample frame location / retrieve curre
curs_scr_dmp IRIX read (write) a curses screen from (to) a file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service