+2011-02-07 Janne Blomqvist <jb@gcc.gnu.org>
+ Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * gfortran.texi (Thread-safety): texinfo styling fixes.
+ * intrinsic.texi: Likewise.
+
2011-02-06 Janne Blomqvist <jb@gcc.gnu.org>
* gfortran.texi (Compiler Characteristics): Add reference to
@code{ISO_C_BINDING} facility, or by GNU Fortran compiled library code
being called from a multi-threaded program.
-The GNU Fortran runtime library, (@var{libgfortran}), supports being
+The GNU Fortran runtime library, (@code{libgfortran}), supports being
called concurrently from multiple threads with the following
exceptions.
-During library initialization, the C @code{getenv()} function is used,
-which need not be thread-safe. Similarly, the @code{getenv()}
+During library initialization, the C @code{getenv} function is used,
+which need not be thread-safe. Similarly, the @code{getenv}
function is used to implement the @code{GET_ENVIRONMENT_VARIABLE} and
@code{GETENV} intrinsics. It is the responsibility of the user to
ensure that the environment is not being updated concurrently when any
of these actions are taking place.
The @code{EXECUTE_COMMAND_LINE} and @code{SYSTEM} intrinsics are
-implemented with the @code{system()} function, which need not be
+implemented with the @code{system} function, which need not be
thread-safe. It is the responsibility of the user to ensure that
-@code{system()} is not called concurrently.
+@code{system} is not called concurrently.
-Finally, for platforms not supporting thread-safe @code{POSIX}
-functions, further functionality might not be thread-safe. For
-details, please consult the documentation for your operating system.
+Finally, for platforms not supporting thread-safe POSIX functions,
+further functionality might not be thread-safe. For details, please
+consult the documentation for your operating system.
@c ---------------------------------------------------------------------
@c Extensions
asynchronously.
The @code{COMMAND} argument is passed to the shell and executed, using
-the C library's @code{system()} call. (The shell is @code{sh} on Unix
-systems, and @code{cmd.exe} on Windows.) If @code{WAIT} is present and
-has the value false, the execution of the command is asynchronous if the
-system supports it; otherwise, the command is executed synchronously.
+the C library's @code{system} call. (The shell is @code{sh} on Unix
+systems, and @code{cmd.exe} on Windows.) If @code{WAIT} is present
+and has the value false, the execution of the command is asynchronous
+if the system supports it; otherwise, the command is executed
+synchronously.
The three last arguments allow the user to get status information. After
synchronous execution, @code{EXITSTAT} contains the integer exit code of
if the command line was executed (whatever its exit status was).
@code{CMDMSG} is assigned an error message if an error has occurred.
-Note that the @code{system()} call need not be thread-safe. It is the
-responsibility of the user to ensure that @code{system()} is not
-called concurrently.
+Note that the @code{system} call need not be thread-safe. It is the
+responsibility of the user to ensure that @code{system} is not called
+concurrently.
@item @emph{Standard}:
Fortran 2008 and later
@item @emph{Note}:
-Because this intrinsic is implemented in terms of the @code{system()}
+Because this intrinsic is implemented in terms of the @code{system}
function call, its behavior with respect to signaling is processor
dependent. In particular, on POSIX-compliant systems, the SIGINT and
SIGQUIT signals will be ignored, and the SIGCHLD will be blocked. As
This intrinsic is provided in both subroutine and function forms;
however, only one form can be used in any given program unit.
-Note that the @code{system()} call need not be thread-safe. It is the
-responsibility of the user to ensure that @code{system()} is not
-called concurrently.
+Note that the @code{system} call need not be thread-safe. It is the
+responsibility of the user to ensure that @code{system} is not called
+concurrently.
@item @emph{Standard}:
GNU extension