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

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

Contents


tell(3Tcl)							    tell(3Tcl)


NAME    [Toc]    [Back]

     tell - Return current access position for an open file

SYNOPSIS    [Toc]    [Back]

     tell fileId

DESCRIPTION    [Toc]    [Back]

     Returns a decimal string giving the current access	position in fileId.
     FileId must have been the return value from a previous call to open, or
     it	may be stdin, stdout, or stderr	to refer to one	of the standard	I/O
     channels.

KEYWORDS    [Toc]    [Back]

     access position, file
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
seek IRIX Change the access position for an open file
TIFFSetDirectory IRIX set the current directory for an open TIFF file
TIFFsize IRIX return the size of various items associated with an open TIFF file
TIFFWriteDirectory IRIX write the current directory in an open TIFF file
TIFFReadRawTile IRIX return an undecoded tile of data from an open TIFF file
TIFFReadRawStrip IRIX return the undecoded contents of a strip of data from an open TIFF file
tt_default_file HP-UX return the current default file
getgpos IRIX gets the current graphics position
getcpos IRIX returns the current character position
cmov IRIX updates the current character position
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service