27.04.2013 Views

MVS Jan 2005.p65 - CBT Tape

MVS Jan 2005.p65 - CBT Tape

MVS Jan 2005.p65 - CBT Tape

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DBL2 DS 2D Dbl word work area<br />

WORKLEN EQU *-DETAWORK<br />

RØ EQU Ø<br />

R1 EQU 1<br />

R2 EQU 2<br />

R3 EQU 3<br />

R4 EQU 4<br />

R5 EQU 5<br />

R6 EQU 6<br />

R7 EQU 7<br />

R8 EQU 8<br />

R9 EQU 9<br />

R1Ø EQU 1Ø<br />

R11 EQU 11<br />

R12 EQU 12<br />

R13 EQU 13<br />

R14 EQU 14<br />

R15 EQU 15<br />

END<br />

TESTATT C<br />

/*<br />

* The TESTATT program is designed to test the ATTACH()/DETACH()<br />

* function pair. The ATTACH() function can be used as an alternative<br />

* to other IBM C/C++ multi-tasking tools such as fork(), spawn(),<br />

* pthread_create(), or the C Multi-Tasking Facility (MTF).<br />

*<br />

* This program can be compiled as either an IBM C or an IBM C++<br />

* program. Use standard C or C++ compile and prelink procedures.<br />

*<br />

* Be sure to convert all occurrences of '[' to x'AD' and all<br />

* occurrences of ']' to x'BD' prior to performing the program<br />

* compile.<br />

*/<br />

#pragma runopts("POSIX(ON)")<br />

#define _POSIX_SOURCE<br />

#include <br />

#include <br />

#include <br />

#include <br />

#include <br />

/* Indicate to the compiler that standard OS linkage will be used. */<br />

#ifdef __cplusplus<br />

extern "OS" int ATTACH(char*, unsigned char**, unsigned int*,<br />

unsigned int*, unsigned int*, ...);<br />

extern "OS" int DETACH(unsigned int*, char*);<br />

#else<br />

#pragma linkage (ATTACH, OS)<br />

42 © 2005. Xephon USA telephone (214) 340 5690, fax (214) 341 7081.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!