rdchk man page on Xenix

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



     RDCHK(S)		      XENIX System V		      RDCHK(S)

     Name
	  rdchk - Checks to see if there is data to be read.

     Syntax
	  int rdchk(fdes);
	  int fdes;

     Description
	  rdchk checks to see if a process will block if it attempts
	  to read the file designated by fdes. rdchk returns 1 if
	  there is data to be read or if it is the end of the file
	  (EOF).  In this context, the proper sequence of calls using
	  rdchk is:

	       if(rdchk(fildes) > 0)
		    read(fildes, buffer, nbytes);

     See Also
	  read(S)

     Diagnostics
	  rdchk returns -1 if an error occurs (e.g., EBADF), 0 if the
	  process will block if it issues a read and 1 if it is okay
	  to read.  EBADF is returned if a rdchk is done on a
	  semaphore file or if the file specified doesn't exist.

     Notes
	  This function must be linked with the linker option -lx.

     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