close man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

close(2)							      close(2)

       close - close a file descriptor

       closes  the  file  descriptor  indicated	 by  fildes.  fildes is a file
       descriptor obtained from a or system call.  All	associated  file  seg‐
       ments  which  have  been	 locked	 by this process with the function are
       released (i.e., unlocked).

       Upon successful completion, returns a value of 0; otherwise, it returns
       −1 and sets to indicate the error.

       fails if the any of following conditions are encountered:

	      [EBADF]	     fildes is not a valid open file descriptor.

	      [EINTR]	     An	 attempt  to close a slow device or connection
			     or file with pending aio requests was interrupted
			     by	 a signal. The file descriptor still points to
			     an open device or connection or file.

	      [ENOSPC]	     Not enough space on the file system.  This	 error
			     can occur when closing a file on an NFS file sys‐
			     tem.  [When a system call is executed on a	 local
			     file system and if a new buffer needs to be allo‐
			     cated to hold the data, the buffer is mapped onto
			     the  disk	at that time.  A full disk is detected
			     at this time and returns an error.	 When the sys‐
			     tem  call	is executed on an NFS file system, the
			     new buffer	 is  allocated	without	 communicating
			     with  the NFS server to see if there is space for
			     the buffer (to improve NFS performance).	It  is
			     only when the buffer is written to the server (at
			     file close or the buffer is full) that the	 disk-
			     full condition is detected.]

       creat(2),   dup(2),  exec(2),  fcntl(2),	 lockf(2),  open(2),  pipe(2),


List of man pages available for HP-UX

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]
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