mkstemp man page on OPENSTEP

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


MKTEMP(3)							     MKTEMP(3)

NAME
       mktemp - make a unique file name

SYNOPSIS
       char *mktemp(template)
       char *template;

       mkstemp(template)
       char *template;

DESCRIPTION
       Mktemp creates a unique file name, typically in a temporary filesystem,
       by replacing template with a unique file name, and returns the  address
       of  the	template.   The	 template  should contain a file name with six
       trailing X's, which are replaced with the  current  process  id	and  a
       unique  letter.	Mkstemp makes the same replacement to the template but
       returns a file descriptor for the template file open  for  reading  and
       writing.	  Mkstemp  avoids  the	race  between testing whether the file
       exists and opening it for use.

SEE ALSO
       getpid(2), open(2)

DIAGNOSTICS
       Mkstemp returns an open file descriptor upon success.  It returns -1 if
       no suitable file could be created.

7th Edition			 May 14, 1986			     MKTEMP(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OPENSTEP

List of man pages available for OPENSTEP

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