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:
Ken Graham <[log in to unmask]>
Reply To:
Ken Graham <[log in to unmask]>
Date:
Tue, 20 Apr 1999 16:11:23 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (54 lines)
__posix
_POSIX_SOURCE
_SOCKET_SOURCE

/*
you typically need all three, even if you do not intend to use Sockets.

compiling/linking from the shell is different than the CI.
If you intend to run them from the CI, compile them from the CI.

The base block size for memory allocated by malloc() are based on what loads
your code, the CI or the shell.
Code compiled in the shell, and executed in the CI, will abort, uncleanly
due to this "feature", if anything directly or indirectly calls malloc().

Hope this helps.
*/

Ken Graham

-----Original Message-----
From: Michael P. Smith [mailto:[log in to unmask]]
Sent: Tuesday, April 20, 1999 3:38 PM
To: [log in to unmask]
Subject: How do you access GETUID outside of POSIX?


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.

TIA

 ---------------------------------------------------------------
| Michael P. Smith                                              |
| Sr. Systems Programmer                                        |
| The Hertz Corporation    [log in to unmask] (work)          |
| Oklahoma City, OK        [log in to unmask] (personal)      |
 ---------------------------------------------------------------
The thoughts, views and expressions contained in this message are those
of Michael P. Smith, and do not necessarily reflect those of the Hertz
Corporation.  To reply via email, remove the .xx from email address.

ATOM RSS1 RSS2