HP3000-L Archives

June 2001, 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:
Mark Bixby <[log in to unmask]>
Date:
Wed, 20 Jun 2001 08:26:18 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
Peter Osborne wrote:
> Second, this one is probably for Mark, after compiling mod_fastcgi as a DSO &
> installing it, when I run Apache, it gives me unresolved externals on
> "setresuid" & "nice", where to I find these to fix the problem.

MPE only has setuid(), not setresuid().  You'll need to look at the surrounding
source code to determine the correct solution.  Some apps call the setxxxuid
functions just out of paranoia, and in the case the best solution might be to
simply not compile the function call on MPE, i.e.:

#ifndef mpeix
   setresuid(nnn);
#endif

But if you really do need to change uids, be aware then setuid() requires
priv-mode:

#ifdef mpeix
  GETPRIVMODE();
  setuid(nnn);
  GETUSERMODE();
#endif

There is no nice() function on MPE, so just omit it from the compile:

#ifndef mpeix
  nice(nnn);
#endif
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2