Subject: Re: Bug in compat sunos?
To: Krister Walfridsson <cato@df.lth.se>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-sparc
Date: 08/26/1996 15:26:48
On Sun, 25 Aug 1996 19:25:09 +0200 (CED) 
 Krister Walfridsson <cato@df.lth.se> wrote:

 > It's using #59. I changed the item for #59 in syscalls.master to
 >    
 >    59      STD             { int sunos_sys_execv(char *path, char **argp); }
 > 
 > and everything seems to be working now.

Hmm ... that's probably not correct ... On a SunOS system, I see:

#define SYS_execve      59

...which looks like:

int	execve(char *path, char *argv[], char *envp[]);

The SunOS execv() doesn't provide the envp argument.  Looks like what 
needs to happen is a sunos_sys_execve() needs to be written as a wrapper 
function around NetBSD's sys_execve(), doing the pathname translation.

(It feels like there's some inconsistency in how alt-path translation is 
dealt with across the various emulations...)

 -- save the ancient forests - http://www.bayarea.net/~thorpej/forest/ -- 
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939