1LIBTSTDIO(3)                 LAM LIBRARY FUNCTIONS                LIBTSTDIO(3)
2
3
4

NAME

6       libtstdio.a - flexible LAM standard I/O package
7

SYNOPSIS

9       #include <tstdio.h>
10
11       TFILE *tstdin;
12       TFILE *tstdout;
13       TFILE *tstderr;
14

DESCRIPTION

16       The  LAM libtstdio.a library of C functions provides networked (remote)
17       services equivalent to those of the  stdio(3)  functions.   The  tstdio
18       library allows the user to designate the target node to/from which out‐
19       put/input is directed.  The tstdio functions have the  same  names  and
20       interfaces  as their counterpart in stdio(3), except that the names are
21       prefixed with the letter 't' (tprintf(),  tfopen(),  tfclose(),  etc.).
22       This  allows  them  to coexist with the stdio(3V) functions, giving the
23       user the choice to bypass the LAM I/O functions and access the  I/O  of
24       the native system.
25
26       Files  opened  using  fopen(3), fdopen(3), or freopen(3) are treated as
27       local to the node of the calling process.  To open files on the  origin
28       node,  from  any  LAM node, include a 'T' in the type field of the open
29       call.  For example:
30
31              #include <tstdio.h>
32
33              tfopen("/tmp/input", "rT");
34
35       By default, functions using tstdout or tstderr direct  the  streams  to
36       the  LAM origin node (see getorigin(2)) where the user is assumed to be
37       logged in.
38

SEE ALSO

40       getorigin(2)
41
42
43
44LAM 7.1.2                         March, 2006                     LIBTSTDIO(3)
Impressum