lotus



previous page: 66  Other System Issues (MachTen)
  
page up: MachTen & CodeBuilder FAQ
  
next page: 68 h. Why do active network applications stop when I launch MachTen?

67 d. Why can't I compile my C code that uses memory mapping system calls?




Description

This article is from the MachTen & CodeBuilder FAQ, by Jaime Julca jjulca@tenon.com with numerous contributions by others.

67 d. Why can't I compile my C code that uses memory mapping system calls?

Memory mapping will not work under Power MachTen since we do not yet have a
true UNIX virtual memory implementation. I would recommend that you, instead
of using distinct processes and trying to communicate between them, try
using a multithreaded approach -- we do have the POSIX threads library, and
all threads share the same memory space. Alternately, you can use sockets
for IPC.

G7.e. I only seem able to start Macintosh applications from within Power
MachTen by becoming root, even though the documentation (and file
protections) indicate that any user should be able to do this. Why?

As of now only root, or users authorized in the following manner, can
execute Mac apps -- the Power MachTen documentation is incorrect. Before
proceeding, please recognize that allowing users to run Macintosh
applications will make your system significantly less secure. To allow users
to run Macintosh applications, you have to change the resource settings of
the MachTen application. First start MachTen and get the user ID (the
numbers) of the users you want to allow to run Macintosh applications. Exit
MachTen and start ResEdit. Inside ResEdit, open the MachTen application (in
the MachTen Root:MachTen folder). Double click on the Luid icon, this will
open a window titled "Luids from MachTen". In that window, double click on
the line that contains "Launch User ID's". This will open a window titled
"Luid 'Launch User IDs' ID=-8192 from MachTen". Highlight the last number in
this window with your mouse, then select "Insert New Field(s)" from the
Resources menu. This will create a box below the highlighted number; in that
box enter one of the user id's that you previously retrieved. Repeat this
process: select last number, etc. until you have entered all the user id's
that you want. Remember to save the file.

G7.f. How I can check the status of Mac applications launched from Power
MachTen?

Power MachTen, unlike Professional MachTen, is unable to check the status of
currently running Macintosh applications.

G7.g. I have ftp'd some files using the Macintosh program Fetch. I had the
files downloaded as binary files. Is there any way to convert them to the
MachTen format so I can use them?

Fetch (and basically all other Macintosh apps) saves your files with both a
resource fork and a data fork. Before using the file in MachTen, the
resource fork should be removed by running 'dfork -i <filename>'.

 

Continue to:















TOP
previous page: 66  Other System Issues (MachTen)
  
page up: MachTen & CodeBuilder FAQ
  
next page: 68 h. Why do active network applications stop when I launch MachTen?