Generated from utility.c with ROBODoc v3.2.3 on Fri Aug 02 11:27:57 2002
TABLE OF CONTENTS
- lp5250d/tn5250_closeall
- lp5250d/tn5250_daemon
- lib5250/tn5250_char_map_to_remote
- lib5250/tn5250_char_map_to_local
- lib5250/tn5250_char_map_new
- lib5250/tn5250_char_map_destroy
- lib5250/tn5250_char_map_printable_p
- lib5250/tn5250_char_map_attribute_p
- lib5250/tn5250_log_open
- lib5250/tn5250_log_close
- lib5250/tn5250_log_printf
- lib5250/tn5250_log_assert
- lib5250/tn5250_parse_color
- lib5250/tn5250_setenv
NAME
tn5250_closeall
SYNOPSIS
tn5250_closeall (fd);
INPUTS
int fd - The starting file descriptor.
DESCRIPTION
Closes all file descriptors >= a specified value.
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.
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.
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.
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.
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.
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;
}
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.
NAME
tn5250_log_open
SYNOPSIS
tn5250_log_open (fname);
INPUTS
const char * fname - Filename of tracefile.
DESCRIPTION
Opens the debug tracefile for this session.
NAME
tn5250_log_close
SYNOPSIS
tn5250_log_close ();
INPUTS
None
DESCRIPTION
Close the current tracefile if one is open.
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.
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.
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.
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.