Added the mysterious system call 331 (it does not seems to be in the
header files anywhere). This is pthread_exit.
This commit is contained in:
parent
b1a19ea0e1
commit
bab8693bba
|
@ -1,10 +1,10 @@
|
|||
/* $NetBSD: darwin_syscall.h,v 1.15 2002/12/24 12:15:45 manu Exp $ */
|
||||
/* $NetBSD: darwin_syscall.h,v 1.16 2002/12/26 14:41:05 manu Exp $ */
|
||||
|
||||
/*
|
||||
* System call numbers.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.8 2002/12/08 21:53:18 manu Exp
|
||||
* created from NetBSD: syscalls.master,v 1.9 2002/12/24 12:15:46 manu Exp
|
||||
*/
|
||||
|
||||
/* syscall: "syscall" ret: "int" args: "int" "..." */
|
||||
|
@ -402,5 +402,8 @@
|
|||
/* syscall: "load_shared_file" ret: "int" args: "char *" "caddr_t" "u_long" "caddr_t *" "int" "mach_sf_mapping_t *" "int *" */
|
||||
#define DARWIN_SYS_load_shared_file 296
|
||||
|
||||
/* syscall: "pthread_exit" ret: "void" args: "void *" */
|
||||
#define DARWIN_SYS_pthread_exit 331
|
||||
|
||||
#define DARWIN_SYS_MAXSYSCALL 350
|
||||
#define DARWIN_SYS_NSYSENT 512
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* $NetBSD: darwin_syscallargs.h,v 1.15 2002/12/24 12:15:45 manu Exp $ */
|
||||
/* $NetBSD: darwin_syscallargs.h,v 1.16 2002/12/26 14:41:05 manu Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.8 2002/12/08 21:53:18 manu Exp
|
||||
* created from NetBSD: syscalls.master,v 1.9 2002/12/24 12:15:46 manu Exp
|
||||
*/
|
||||
|
||||
#ifndef _DARWIN_SYS__SYSCALLARGS_H_
|
||||
|
@ -226,6 +226,10 @@ struct darwin_sys_load_shared_file_args {
|
|||
syscallarg(int *) flags;
|
||||
};
|
||||
|
||||
struct darwin_sys_pthread_exit_args {
|
||||
syscallarg(void *) value_ptr;
|
||||
};
|
||||
|
||||
/*
|
||||
* System call prototypes.
|
||||
*/
|
||||
|
@ -409,4 +413,5 @@ int sys_mlock(struct proc *, void *, register_t *);
|
|||
int sys_munlock(struct proc *, void *, register_t *);
|
||||
int bsd_sys_undelete(struct proc *, void *, register_t *);
|
||||
int darwin_sys_load_shared_file(struct proc *, void *, register_t *);
|
||||
int darwin_sys_pthread_exit(struct proc *, void *, register_t *);
|
||||
#endif /* _DARWIN_SYS__SYSCALLARGS_H_ */
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
/* $NetBSD: darwin_syscalls.c,v 1.15 2002/12/24 12:15:46 manu Exp $ */
|
||||
/* $NetBSD: darwin_syscalls.c,v 1.16 2002/12/26 14:41:05 manu Exp $ */
|
||||
|
||||
/*
|
||||
* System call names.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.8 2002/12/08 21:53:18 manu Exp
|
||||
* created from NetBSD: syscalls.master,v 1.9 2002/12/24 12:15:46 manu Exp
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_syscalls.c,v 1.15 2002/12/24 12:15:46 manu Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_syscalls.c,v 1.16 2002/12/26 14:41:05 manu Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ktrace.h"
|
||||
|
@ -383,7 +383,7 @@ const char *const darwin_syscallnames[] = {
|
|||
"#328 (unimplemented __pthread_kill)", /* 328 = unimplemented __pthread_kill */
|
||||
"#329 (unimplemented pthread_sigmask)", /* 329 = unimplemented pthread_sigmask */
|
||||
"#330 (unimplemented sigwait)", /* 330 = unimplemented sigwait */
|
||||
"#331 (unimplemented)", /* 331 = unimplemented */
|
||||
"pthread_exit", /* 331 = pthread_exit */
|
||||
"#332 (unimplemented)", /* 332 = unimplemented */
|
||||
"#333 (unimplemented)", /* 333 = unimplemented */
|
||||
"#334 (unimplemented)", /* 334 = unimplemented */
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
/* $NetBSD: darwin_sysent.c,v 1.15 2002/12/24 12:15:46 manu Exp $ */
|
||||
/* $NetBSD: darwin_sysent.c,v 1.16 2002/12/26 14:41:05 manu Exp $ */
|
||||
|
||||
/*
|
||||
* System call switch table.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.8 2002/12/08 21:53:18 manu Exp
|
||||
* created from NetBSD: syscalls.master,v 1.9 2002/12/24 12:15:46 manu Exp
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_sysent.c,v 1.15 2002/12/24 12:15:46 manu Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_sysent.c,v 1.16 2002/12/26 14:41:05 manu Exp $");
|
||||
|
||||
#include "opt_ktrace.h"
|
||||
#include "opt_nfsserver.h"
|
||||
|
@ -719,8 +719,8 @@ struct sysent darwin_sysent[] = {
|
|||
sys_nosys }, /* 329 = unimplemented pthread_sigmask */
|
||||
{ 0, 0, 0,
|
||||
sys_nosys }, /* 330 = unimplemented sigwait */
|
||||
{ 0, 0, 0,
|
||||
sys_nosys }, /* 331 = unimplemented */
|
||||
{ 1, s(struct darwin_sys_pthread_exit_args), 0,
|
||||
darwin_sys_pthread_exit }, /* 331 = pthread_exit */
|
||||
{ 0, 0, 0,
|
||||
sys_nosys }, /* 332 = unimplemented */
|
||||
{ 0, 0, 0,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: darwin_thread.c,v 1.1 2002/12/08 21:53:18 manu Exp $ */
|
||||
/* $NetBSD: darwin_thread.c,v 1.2 2002/12/26 14:41:06 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_thread.c,v 1.1 2002/12/08 21:53:18 manu Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: darwin_thread.c,v 1.2 2002/12/26 14:41:06 manu Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -90,3 +90,21 @@ darwin_sys_vfork(p, v, retval)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
darwin_sys_pthread_exit(p, v, retval)
|
||||
struct proc *p;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
#ifdef notyet
|
||||
struct darwin_sys_pthread_exit_args /* {
|
||||
syscallarg(void *) value_ptr;
|
||||
} */ *uap = v;
|
||||
#endif
|
||||
/*
|
||||
* This is called on thread termination. We should make value_ptr
|
||||
* available to other threads doing a join operation.
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: syscalls.master,v 1.9 2002/12/24 12:15:46 manu Exp $
|
||||
$NetBSD: syscalls.master,v 1.10 2002/12/26 14:41:06 manu Exp $
|
||||
|
||||
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
||||
|
||||
|
@ -515,7 +515,7 @@
|
|||
328 UNIMPL __pthread_kill
|
||||
329 UNIMPL pthread_sigmask
|
||||
330 UNIMPL sigwait
|
||||
331 UNIMPL
|
||||
331 STD { void darwin_sys_pthread_exit(void *value_ptr); }
|
||||
332 UNIMPL
|
||||
333 UNIMPL
|
||||
334 UNIMPL
|
||||
|
|
Loading…
Reference in New Issue