Programmer's Guide to Writing Programs
Table of Contents
Index
Chapter 11: Mixed-language Programming
11.1 COBOL calling C Functions
11.1.1 Calling C Functions
11.1.2 Canceling C Functions
11.1.3 Demonstration Program
11.2 Calling COBOL from C
11.2.1 Demonstration Programs
11.3 Interfacing with High-level Languages on UNIX
11.3.1 Routines That Enable COBOL to be Called From C
11.3.2 Routines that Enable Use of a C main()
11.3.3 Routines That Enable Use of C Threads
11.3.4 Routines That Enable Use of COBOL Data From C Programs
11.3.4.1 Comparing C and COBOL Data Representations
11.3.4.2 Representing COBOL Data Records in C
11.3.4.3 Accessing COBOL Data with cobget/cobput Routines
11.3.5 Environment Handling
11.3.6 Screen Handling from C
11.3.7 Terminal Specific Routines
11.3.8 Interfacing with the UNIX Operating System
11.3.9 Error and Exception Handling
11.3.10 Signal Handling
11.3.10.1 Posting Signal Handlers
11.3.10.2 Writing Signal Handlers
11.3.10.2.1 Example - setting up a handler for the SIGALRM signal
11.3.10.3 Coping with More than One Handler for the Same Signal
11.3.10.4 Converting Signal Handlers Written for the signal() Function
11.3.10.5 Coping with Third Party Software that Uses Signals
11.3.10.6 Comparing the Signal() and Sigaction() Functions