home *** CD-ROM | disk | FTP | other *** search
- From: djm@hpfcso.FC.HP.COM (Dan Magenheimer)
- Date: Tue, 28 Jul 1992 18:13:00 GMT
- Subject: CALLING UNIX (PORTABLY) FROM FORTRAN
- Message-ID: <9080025@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!darwin.sura.net!mips!sdd.hp.com!hplabs!hplextra!hpfcso!djm
- Newsgroups: comp.lang.fortran
- Lines: 63
-
- WANT TO CALL UNIX PORTABLY FROM FORTRAN? Read this:
-
- (Since only a small percentage of Fortran programmers read notes, please
- forward this message to others who might be interested. Thanks!)
-
- The IEEE Standards Board has recently approved IEEE Std 1003.9 aka
- "Fortran Bindings for POSIX". Published copies should be available
- in a couple of months from IEEE.
-
- As an ex-member of the committee, I'd like to poll the user community
- to determine 1) whether you will use it, and 2) whether you will be
- encouraging your system and/or Fortran vendors to provide it.
-
- What is "it"? Here's a brief description:
-
- IEEE Std 1003.9 is/contains/standardizes:
-
- o A portable way to call all POSIX system calls. The standard uses
- FORTRAN 77 standard features with only one extension -- long subroutine
- names. Examples: chmod, chdir, pipe, fork/exec, signal routines, getpid.
- o Access to system constants, both static and dynamic. Examples: LINK_MAX,
- PIPE_BUF, PATH_MAX, stat modes, open modes.
- o Access to system structures, such as stat.
- o A POSIX-based FORTRAN I/O layer which allows (portable) usage of files,
- pipes, and devices that do not use record-based FORTRAN conventions.
- Requirements are also defined for interactions between record-based
- FORTRAN I/O and POSIX-based FORTRAN I/O. Also, getc/putc equivalents.
- o Environment access routines (e.g. command line arguments, ENV access)
- o MIL-STD-like support routines (e.g. ior, and, not)
- o Extensibility. All interfaces use a consistent set of conventions that
- can be easily applied by a vendor to non-POSIX calls.
-
- Much of this of course already exists but differs from vendor to vendor
- and is therefore not portable. IEEE Std 1003.9 encourages portability.
- Of course, portability is not obtained unless the standard is supported
- by vendors, and it won't be supported by vendors unless users (YOU!)
- ask for it.
-
- Caveats: As you will see if you look at the standard (and as may be pointed
- out by some who opposed the standard), the standard contains some
- compromises that may be considered less than aesthetic. This tends to be
- true of any standard, but the reasoning for each decision is carefully
- described in the Rationale appendix to the standard. Also, some areas
- that might have proved useful to standardize were left out to increase
- consensus. These may be standardized by future standards committees.
-
- Still, we're proud that we were able to complete the standards process
- and would like to find out if and how widely it would be used. So,
- please reply to this message (email or notes/news) with:
-
- 1) Will you use it if its available? (Optional: How? Why? When?)
- 2) Will you be encouraging your system/Fortran vendor to provide it?
-
- I will openly post email responses.
-
- Finally, if you are interested in participating in related POSIX/FORTRAN
- standardization activities, please contact Michael Hannah, mjhanna@sandia.org.
-
- Thanks,
- Dan Magenheimer
- POSIX 1003.9 (ex-)Technical Editor
- djm@fc.hp.com
- FAX: 303-229-6409
-