Subject: | |
From: | |
Reply To: | |
Date: | Sun, 29 Jul 2001 14:57:23 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Tracy wrote:
>I the 5.0 communicator article describing posix file security, it says "The
>bits ... can be changed by the chmod() function. These bits can be read by
>calling the stat() or fstat() functions".
>
>Fair enough, and when in the shell (sh.hpbin.sys), chmod is there and works.
>But where are stat() and fstat()? The only clue I have here is mention of
>"calling". But they're not MPE intrinsics. Where do I find these?
One cause for the confusion might be that there is a chmod command in
the Posix Shell and a chmod() library function (Posix API routine) in
the /lib/libc.a NMRL (as well as in /lib/libc.sl NMXL, I guess).
Regarding calling libc.a functions from COBOL, you might also find my
COBOL/iX CGI example on Jazz useful (in the "papers" section, as far
as I recall). It calls a few functions from the Posix libc and in the
source code it also mentions compile and link options.
Calling C from COBOL can be tricky when pointer passing gets involved.
Lars.
PS: The OnTopic subject tag is nice (given the recent OffTopic floods).
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|