Generated from utility.c with ROBODoc v3.2.3 on Fri Aug 02 11:27:57 2002

TABLE OF CONTENTS

  1. lp5250d/tn5250_closeall
  2. lp5250d/tn5250_daemon
  3. lib5250/tn5250_char_map_to_remote
  4. lib5250/tn5250_char_map_to_local
  5. lib5250/tn5250_char_map_new
  6. lib5250/tn5250_char_map_destroy
  7. lib5250/tn5250_char_map_printable_p
  8. lib5250/tn5250_char_map_attribute_p
  9. lib5250/tn5250_log_open
  10. lib5250/tn5250_log_close
  11. lib5250/tn5250_log_printf
  12. lib5250/tn5250_log_assert
  13. lib5250/tn5250_parse_color
  14. lib5250/tn5250_setenv

lp5250d/tn5250_closeall

NAME
    tn5250_closeall
SYNOPSIS
    tn5250_closeall (fd);
INPUTS
    int fd      - The starting file descriptor.
DESCRIPTION
    Closes all file descriptors >= a specified value.

lp5250d/tn5250_daemon

NAME
    tn5250_daemon
SYNOPSIS
    ret = tn5250_daemon (nochdir, noclose);
INPUTS
    int nochdir - 0 to perform chdir.
    int noclose - 0 to close all file handles.
DESCRIPTION
    Detach process from user and disappear into the background
    returns -1 on failure, but you can't do much except exit in that 
    case since we may already have forked. Believed to work on all 
    Posix systems.

lib5250/tn5250_char_map_to_remote

NAME
    tn5250_char_map_to_remote
SYNOPSIS
    ret = tn5250_char_map_to_remote (map,ascii);
INPUTS
    Tn5250Char           ascii      - The local character to translate.
DESCRIPTION
    Translate the specified character from local to remote.

lib5250/tn5250_char_map_to_local

NAME
    tn5250_char_map_to_local
SYNOPSIS
    local = tn5250_char_map_to_local (map, ebcdic);
INPUTS
    Tn5250Char           ebcdic     - The remote character to translate.
DESCRIPTION
    Translate the specified character from remote character to local.

lib5250/tn5250_char_map_new

NAME
    tn5250_char_map_new
SYNOPSIS
    cmap = tn5250_char_map_new ("37");
INPUTS
    const char *         map        - Name of the character translation map.
DESCRIPTION
    Create a new translation map.
NOTES
    Translation maps are currently statically allocated, although you should
    call tn5250_char_map_destroy (a no-op) for future compatibility.

lib5250/tn5250_char_map_destroy

NAME
    tn5250_char_map_destroy
SYNOPSIS
    tn5250_char_map_destroy (map);
INPUTS
    Tn5250CharMap *         map     - The character map to destroy.
DESCRIPTION
    Frees the character map's resources.

lib5250/tn5250_char_map_printable_p

NAME
    tn5250_char_map_printable_p
SYNOPSIS
    if (tn5250_char_map_printable_p (map,ec))
         ;
INPUTS
    Tn5250CharMap *      map        - the character map to use.
    Tn5250Char           ec         - the character to test.
DESCRIPTION
    Determines whether the specified character is printable, which means 
    either it is a displayable EBCDIC character, an ideographic control
    character, a NUL, or a few other odds and ends.
SOURCE
    int tn5250_char_map_printable_p(Tn5250CharMap *map, Tn5250Char data)
    {
       switch (data)
         {
           /*
             Ideographic Shift-In and Shift-Out.
             case 0x0e:
             case 0x0f:
           */
         default:
           break;
         }
       return 1;
    }

lib5250/tn5250_char_map_attribute_p

NAME
    tn5250_char_map_attribute_p
SYNOPSIS
    ret = tn5250_char_map_attribute_p (map,ec);
INPUTS
    Tn5250CharMap *      map        - the translation map to use.
    Tn5250Char           ec         - the character to test.
DESCRIPTION
    Determines whether the character is a 5250 attribute.

lib5250/tn5250_log_open

NAME
    tn5250_log_open
SYNOPSIS
    tn5250_log_open (fname);
INPUTS
    const char *         fname      - Filename of tracefile.
DESCRIPTION
    Opens the debug tracefile for this session.

lib5250/tn5250_log_close

NAME
    tn5250_log_close
SYNOPSIS
    tn5250_log_close ();
INPUTS
    None
DESCRIPTION
    Close the current tracefile if one is open.

lib5250/tn5250_log_printf

NAME
    tn5250_log_printf
SYNOPSIS
    tn5250_log_printf (fmt, );
INPUTS
    const char *         fmt        - 
DESCRIPTION
    This is an internal function called by the TN5250_LOG() macro.  Use
    the macro instead, since it can be conditionally compiled.

lib5250/tn5250_log_assert

NAME
    tn5250_log_assert
SYNOPSIS
    tn5250_log_assert (val, expr, file, line);
INPUTS
    int                  val        - 
    char const *         expr       - 
    char const *         file       - 
    int                  line       - 
DESCRIPTION
    This is an internal function called by the TN5250_ASSERT() macro.  Use
    the macro instead, since it can be conditionally compiled.

lib5250/tn5250_parse_color

NAME
    tn5250_parse_color
SYNOPSIS
    tn5250_parse_color (config, "green", &red, &green, &blue);
INPUTS
    Tn5250Config *       config     -
    const char   *       colorname  -
    int          *       red        - 
    int          *       green      - 
    int          *       blue       - 
DESCRIPTION
    This loads a color from the TN5250 config object, and then
    parses it into it's red, green, blue components.

lib5250/tn5250_setenv

NAME
    tn5250_setenv
SYNOPSIS
    tn5250_setenv ("TN5250_CCSID", "37", 1);
INPUTS
    const char   *       name       -
    const char   *       value      - 
    int                  overwrite  - 
DESCRIPTION
    This works just like setenv(3), but setenv(3) doesn't
    exist on all systems.