[next] [tail] [up]

### 18.1 Introduction

The ports unit implements the port constructs found in Turbo Pascal. It uses classes and default array properties to do this.

The unit exists on L I N U X, O S/2 and D O S. It is implemented only for compatibility with Turbo Pascal. It’s usage is discouraged, because using ports is not portable programming, and the operating system may not even allow it (for instance WI N D O W S).

Under L I N U X, your program must be run as root, or the IOPerm call must be set in order to set appropriate permissions on the port access.

[next] [front] [up]