Chapter Contents

Previous

Next
Porting UNIX Socket Applications to the SAS/C Environment

Introduction

The SAS/C Socket Library provides the highest practical level of compatibility with the BSD UNIX socket library for OS/390 and CMS environments. Programs whose only UNIX dependencies are in the area of sockets or other UNIX features already supported by the SAS/C Library can be compiled and run with little or no modification.

Because the socket functions are integrated with the existing SAS/C Library and are not add-on features, many of the incompatibilities of other OS/390 and CMS socket implementations have been avoided. For example, there are no requirements for additional header files that are specific to OS/390 or CMS environments; errno , and not some other variable specific to OS/390 or CMS, is used for socket function error codes, and the close , read , and write calls operate on both files and sockets, just as they do in a UNIX operating system.

There are still some areas where compatibility between OS/390 and CMS and the UNIX operating system is not possible. This chapter describes the areas of incompatibility that may cause problems when porting socket code from UNIX socket implementations to the SAS/C environment.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.