lseek man page on Xenix

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



     LSEEK(S)		      XENIX System V		      LSEEK(S)

     Name
	  lseek - Moves read/write file pointer.

     Syntax
	  long lseek (fildes, offset, whence)
	  int fildes;
	  long offset;
	  int whence;

     Description
	  fildes is a file descriptor returned from a creat, open,
	  dup, or fcntl system call.  lseek sets the file pointer
	  associated with fildes as follows:

	  If whence is 0, the pointer is set to offset bytes.

	  If whence is 1, the pointer is set to its current location
	  plus offset.

	  If whence is 2, the pointer is set to the size of the file
	  plus offset.

	  Upon successful completion, the resulting pointer location
	  as measured in bytes from the beginning of the file is
	  returned.

	  lseek will fail and the file pointer will remain unchanged
	  if one or more of the following are true:

	       fildes is not an open file descriptor.  [EBADF]

	       fildes is associated with a pipe or fifo.  [ESPIPE]

	       whence is not 0, 1 or 2.	 [EINVAL and SIGSYS signal]

	       The resulting file pointer would be negative.  [EINVAL]

	  Some devices are incapable of seeking.  The value of the
	  file pointer associated with such a device is undefined.

     Return Value
	  Upon successful completion, a nonnegative integer indicating
	  the file pointer value is returned.  Otherwise, a value of
	  -1 is returned and errno is set to indicate the error.

     See Also
	  creat(S), dup(S), fcntl(S), open(S)

     Page 1					      (printed 8/7/87)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

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