start to phase out temp. off_t syscalls
This commit is contained in:
parent
76a7d3f63e
commit
551e92c16a
@ -2,7 +2,7 @@
|
||||
* System call switch table.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from: syscalls.master,v 1.14 1994/04/07 00:15:29
|
||||
* created from: syscalls.master,v 1.15 1994/04/16 23:19:06
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -170,8 +170,8 @@ int seteuid();
|
||||
int stat();
|
||||
int fstat();
|
||||
int lstat();
|
||||
int nosys();
|
||||
int smmap();
|
||||
int nosys();
|
||||
int lseek();
|
||||
int truncate();
|
||||
int ftruncate();
|
||||
@ -483,15 +483,15 @@ struct sysent sysent[] = {
|
||||
0, nosys, /* 194 = nosys */
|
||||
0, nosys, /* 195 = nosys */
|
||||
0, nosys, /* 196 = nosys */
|
||||
compat(8,nmmap), /* 197 = old nmmap */
|
||||
8, smmap, /* 197 = mmap */
|
||||
0, nosys, /* 198 = __syscall */
|
||||
compat(5,nlseek), /* 199 = old nlseek */
|
||||
compat(4,ntruncate), /* 200 = old ntruncate */
|
||||
compat(4,nftruncate), /* 201 = old nftruncate */
|
||||
8, smmap, /* 202 = mmap */
|
||||
5, lseek, /* 203 = lseek */
|
||||
4, truncate, /* 204 = truncate */
|
||||
4, ftruncate, /* 205 = ftruncate */
|
||||
5, lseek, /* 199 = lseek */
|
||||
4, truncate, /* 200 = truncate */
|
||||
4, ftruncate, /* 201 = ftruncate */
|
||||
compat(8,nmmap), /* 202 = old nmmap */
|
||||
compat(5,nlseek), /* 203 = old nlseek */
|
||||
compat(4,ntruncate), /* 204 = old ntruncate */
|
||||
compat(4,nftruncate), /* 205 = old nftruncate */
|
||||
0, nosys, /* 206 = nosys */
|
||||
0, nosys, /* 207 = nosys */
|
||||
0, nosys, /* 208 = nosys */
|
||||
|
@ -2,7 +2,7 @@
|
||||
* System call names.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from: syscalls.master,v 1.14 1994/04/07 00:15:29
|
||||
* created from: syscalls.master,v 1.15 1994/04/16 23:19:06
|
||||
*/
|
||||
|
||||
char *syscallnames[] = {
|
||||
@ -236,15 +236,15 @@ char *syscallnames[] = {
|
||||
"#194", /* 194 = nosys */
|
||||
"#195", /* 195 = nosys */
|
||||
"#196", /* 196 = nosys */
|
||||
"old.nmmap", /* 197 = old nmmap */
|
||||
"mmap", /* 197 = mmap */
|
||||
"__syscall", /* 198 = __syscall */
|
||||
"old.nlseek", /* 199 = old nlseek */
|
||||
"old.ntruncate", /* 200 = old ntruncate */
|
||||
"old.nftruncate", /* 201 = old nftruncate */
|
||||
"mmap", /* 202 = mmap */
|
||||
"lseek", /* 203 = lseek */
|
||||
"truncate", /* 204 = truncate */
|
||||
"ftruncate", /* 205 = ftruncate */
|
||||
"lseek", /* 199 = lseek */
|
||||
"truncate", /* 200 = truncate */
|
||||
"ftruncate", /* 201 = ftruncate */
|
||||
"old.nmmap", /* 202 = old nmmap */
|
||||
"old.nlseek", /* 203 = old nlseek */
|
||||
"old.ntruncate", /* 204 = old ntruncate */
|
||||
"old.nftruncate", /* 205 = old nftruncate */
|
||||
"#206", /* 206 = nosys */
|
||||
"#207", /* 207 = nosys */
|
||||
"#208", /* 208 = nosys */
|
||||
|
@ -1,4 +1,4 @@
|
||||
$Id: syscalls.master,v 1.14 1994/04/07 00:15:29 cgd Exp $
|
||||
$Id: syscalls.master,v 1.15 1994/04/16 23:19:06 cgd Exp $
|
||||
; from: @(#)syscalls.master 7.26 (Berkeley) 3/25/91
|
||||
; System call name/number master file.
|
||||
; Processed to created init_sysent.c, syscalls.c and syscall.h.
|
||||
@ -264,17 +264,16 @@
|
||||
194 UNIMPL 0 nosys
|
||||
195 UNIMPL 0 nosys
|
||||
196 UNIMPL 0 nosys
|
||||
; XXX THE FOLLOWING FIVE ENTRIES ARE TEMPORARY
|
||||
197 COMPAT 8 nmmap
|
||||
197 STD 8 smmap mmap
|
||||
198 STD 0 nosys __syscall
|
||||
199 COMPAT 5 nlseek
|
||||
200 COMPAT 4 ntruncate
|
||||
201 COMPAT 4 nftruncate
|
||||
199 STD 5 lseek
|
||||
200 STD 4 truncate
|
||||
201 STD 4 ftruncate
|
||||
; XXX THE FOLLOWING FOUR ENTRIES ARE TEMPORARY
|
||||
202 STD 8 smmap mmap
|
||||
203 STD 5 lseek
|
||||
204 STD 4 truncate
|
||||
205 STD 4 ftruncate
|
||||
202 COMPAT 8 nmmap
|
||||
203 COMPAT 5 nlseek
|
||||
204 COMPAT 4 ntruncate
|
||||
205 COMPAT 4 nftruncate
|
||||
206 UNIMPL 0 nosys
|
||||
207 UNIMPL 0 nosys
|
||||
208 UNIMPL 0 nosys
|
||||
|
@ -1 +1 @@
|
||||
revision 1.20 intentionally removed
|
||||
revision 1.21 intentionally removed
|
||||
|
@ -2,7 +2,7 @@
|
||||
* System call numbers.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from: syscalls.master,v 1.14 1994/04/07 00:15:29
|
||||
* created from: syscalls.master,v 1.15 1994/04/16 23:19:06
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SYSCALL_H
|
||||
@ -176,14 +176,14 @@
|
||||
#define SYS_stat 188
|
||||
#define SYS_fstat 189
|
||||
#define SYS_lstat 190
|
||||
/* 197 is old nmmap */
|
||||
#define SYS_mmap 197
|
||||
#define SYS___syscall 198
|
||||
/* 199 is old nlseek */
|
||||
/* 200 is old ntruncate */
|
||||
/* 201 is old nftruncate */
|
||||
#define SYS_mmap 202
|
||||
#define SYS_lseek 203
|
||||
#define SYS_truncate 204
|
||||
#define SYS_ftruncate 205
|
||||
#define SYS_lseek 199
|
||||
#define SYS_truncate 200
|
||||
#define SYS_ftruncate 201
|
||||
/* 202 is old nmmap */
|
||||
/* 203 is old nlseek */
|
||||
/* 204 is old ntruncate */
|
||||
/* 205 is old nftruncate */
|
||||
|
||||
#endif /* _SYS_SYSCALL_H */
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
* from: Utah Hdr: vm_mmap.c 1.3 90/01/21
|
||||
* from: @(#)vm_mmap.c 7.5 (Berkeley) 6/28/91
|
||||
* $Id: vm_mmap.c,v 1.22 1994/04/15 07:04:51 cgd Exp $
|
||||
* $Id: vm_mmap.c,v 1.23 1994/04/16 23:23:48 cgd Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -234,30 +234,13 @@ smmap(p, uap, retval) /* XXX SHOULD BE mmap() */
|
||||
}
|
||||
|
||||
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
|
||||
struct onmmap_args {
|
||||
caddr_t addr;
|
||||
int len;
|
||||
int prot;
|
||||
int flags;
|
||||
int fd;
|
||||
off_t pos;
|
||||
};
|
||||
|
||||
int
|
||||
onmmap(p, uap, retval)
|
||||
struct proc *p;
|
||||
register struct onmmap_args *uap;
|
||||
register struct mmap_args *uap;
|
||||
int *retval;
|
||||
{
|
||||
struct mmap_args ma;
|
||||
|
||||
ma.addr = uap->addr;
|
||||
ma.len = uap->len;
|
||||
ma.prot = uap->prot;
|
||||
ma.flags = uap->flags;
|
||||
ma.fd = uap->fd;
|
||||
ma.pos = uap->pos;
|
||||
return (smmap(p, &ma, retval));
|
||||
return (smmap(p, uap, retval));
|
||||
}
|
||||
|
||||
struct ommap_args {
|
||||
|
Loading…
Reference in New Issue
Block a user