pclose man page on Tru64

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

pclose(3)							     pclose(3)

NAME
       pclose - Closes a pipe to a process

SYNOPSIS
       #include <stdio.h>

       int pclose(
	       FILE *stream );

LIBRARY
       Standard C Library (libc)

STANDARDS
       Interfaces  documented on this reference page conform to industry stan‐
       dards as follows:

       pclose():  XPG4, XPG4-UNIX

       Refer to the standards(5) reference page	 for  more  information	 about
       industry standards and associated tags.

PARAMETERS
       Points to a FILE structure for an open pipe returned by a previous call
       to the popen() function.

DESCRIPTION
       The pclose() function closes a pipe between the calling program	and  a
       shell  command  to  be executed. Use the pclose() function to close any
       stream you have opened with the popen() function. The pclose() function
       waits for the associated process to end, and then returns the exit sta‐
       tus of the command.

				       Caution

       If the original processes and the  process  started  with  the  popen()
       function	 concurrently  read or write a common file, neither should use
       buffered I/O. If they do, the results are unpredictable.

RETURN VALUES
       Upon successful completion, the pclose() function returns the exit sta‐
       tus of the command.

       If  an  error  is detected, pclose() sets errno to an appropriate value
       and returns a value of -1.

ERRORS
       If the pclose() function fails, errno  may  be  set  to	the  following
       value: The status of the child process could not be obtained.

SEE ALSO
       Functions: fclose(3), popen(3), wait(2)

       Standards: standards(5)

								     pclose(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Tru64

List of man pages available for Tru64

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