HP3000-L Archives

April 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Tue, 20 Apr 1999 16:05:33 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Michael P. Smith writes:
>
> I am working on a project where I need to convert some source code from
> POSIX C to MPE C.  The software calls the following functions:
>
> getuid
> chmod
> getgrnam
> chown
> ioctl
> dup2
>
> The question is what switches do I need to set or libraries to include to be
> able to access these routines from the MPE C compiler?  Normally I would
> figure this out myself, but I really need to get this stuff working
> yesterday.

All of those functions exist on MPE and I believe they all live in libc.  I've
never used the HP C/iX compiler, but with with freeware gcc you don't need
any special link-time switches or to include any explicit libraries for the
functions listed above.

Note that many POSIX functions on MPE require you to compile with
-D_POSIX_SOURCE to get the proper include definitions.

Also note that MPE ioctl() almost certainly has fewer supported opcodes than
standard Unix ioctl().
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2