summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_newprocessattr.rst
blob: a01e55498f4c85c5f6a01cdae8bf449a79cb2da0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PR_NewProcessAttr
=================

Creates a process attributes structure.


Syntax
------

.. code::

   #include <prlink.h>

   PRProcessAttr *PR_NewProcessAttr(void);


Parameters
~~~~~~~~~~

The function has no parameters.


Returns
~~~~~~~

A pointer to the new process attributes structure.


Description
-----------

This function creates a new :ref:`PRProcessAttr`\ structure that specifies
the attributes of a new process, then returns a pointer to the
structure. The new :ref:`PRProcessAttr`\ structure is initialized with
these default attributes:

-  The standard I/O streams (standard input, standard output, and
   standard error) are not redirected.
-  No file descriptors are inherited by the new process.