Subject: Re: Problems Running Netscape
To: None <port-sparc@NetBSD.ORG>
From: Christos Zoulas <christos@deshaw.com>
List: port-sparc
Date: 06/30/1996 03:53:57
In article <Pine.NEB.3.93.960629185321.4083A-100000@didactic> curt@portal.ca (Curt Sampson) writes:
>  netscape_dns CALL  #25 (unimplemented sunos_stime)
>  netscape_dns PSIG  SIGSYS SIG_DFL
>  netscape_dns NAMI  "netscape_dns.core"
>

I really, *really* cannot believe that netscape is using an obsolete system
call. On the other hand, it is trivial to implement:

*** sunos_misc.c.dist	Sat Jun 29 23:49:16 1996
--- sunos_misc.c	Sat Jun 29 23:44:01 1996
***************
*** 103,108 ****
--- 103,121 ----
  static void sunos_pollscan __P((struct proc *, struct sunos_pollfd *, 
  				int, register_t *));
  int
+ sunos_sys_stime(p, v, retval)
+ 	struct proc *p;
+ 	void *v;
+ 	register_t *retval;
+ {
+ 	struct sunos_sys_stime_args *uap = v;
+ 	struct timeval tv;
+ 	*retval = 0;
+ 	microtime(&tv);
+ 	return copyout(&tv.tv_sec, SCARG(uap, tp), sizeof(*(SCARG(uap, tp))));
+ }
+ 
+ int
  sunos_sys_wait4(p, v, retval)
  	struct proc *p;
  	void *v;
*** syscalls.master.dist	Fri Jun 28 13:16:16 1996
--- syscalls.master	Sat Jun 29 23:45:18 1996
***************
*** 65,71 ****
  22	UNIMPL		System V umount
  23	NOARGS		{ int sys_setuid(uid_t uid); }
  24	NOARGS		{ uid_t sys_getuid(void); }
! 25	UNIMPL		sunos_stime
  26	STD		{ long sunos_sys_ptrace(int req, pid_t pid, \
  			    caddr_t addr, int data, char *addr2); }
  27	UNIMPL		sunos_alarm
--- 65,71 ----
  22	UNIMPL		System V umount
  23	NOARGS		{ int sys_setuid(uid_t uid); }
  24	NOARGS		{ uid_t sys_getuid(void); }
! 25	STD		{ int sunos_sys_stime(time_t *tp); }
  26	STD		{ long sunos_sys_ptrace(int req, pid_t pid, \
  			    caddr_t addr, int data, char *addr2); }
  27	UNIMPL		sunos_alarm