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

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

Contents


seek(3Tcl)							    seek(3Tcl)


NAME    [Toc]    [Back]

     seek - Change the access position for an open file

SYNOPSIS    [Toc]    [Back]

     seek fileId offset	?origin?

DESCRIPTION    [Toc]    [Back]

     Change the	current	access position	for 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.  The offset and
     origin arguments specify the position at which the	next read or write
     will occur	for fileId.  Offset must be an integer (which may be negative)
     and origin	must be	one of the following:

     start
	  The new access position will be offset bytes from the	start of the
	  file.

     current
	  The new access position will be offset bytes from the	current	access
	  position; a negative offset moves the	access position	backwards in
	  the file.

     end  The new access position will be offset bytes from the	end of the
	  file.	 A negative offset places the access position before the endof-file,
 and a positive offset places	the access position after the
	  end-of-file.

     The origin	argument defaults to start.  This command returns an empty
     string.

KEYWORDS    [Toc]    [Back]

     access position, file, seek


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
tell IRIX Return current access position for an open file
chmod Linux change file access permissions
chmod Tru64 Change file access permissions
fchmod Tru64 Change file access permissions
chmod HP-UX change file mode access permissions
fchmod HP-UX change file mode access permissions
touch FreeBSD change file access and modification times
chmod HP-UX change file mode access permissions
touch OpenBSD change file access and modification times
chacl IRIX change the access control list of a file or directory
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service