File: modify_ldt.2

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (124 lines) | stat: -rw-r--r-- 3,590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (c) 1995 Michael Chastain (mec@duracef.shout.net), 22 July 1995.
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
.\"         all rights reserved.
.\" Translated Sun Feb 23 16:35:28 JST 1997
.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Updated & Modified Thu Feb 24 01:47:31 JST 2005
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.\"WORD:	ldt			ldt
.\"WORD:	local descriptor table	롦ǥץơ֥
.\"WORD:	processer		ץå
.\"WORD:	entry			ȥ
.\"
.TH MODIFY_LDT 2 1995-07-22 "Linux 1.3.6" "Linux Programmer's Manual"
.SH ̾
modify_ldt \- ldt ޤϼ
.SH 
.nf
.B #include <sys/types.h>
.br
.B #include <linux/unistd.h>
.br
.B #include <errno.h>
.sp
.BI "_syscall3(int, modify_ldt, int, " func ", void *, " ptr , 
.BI "          unsigned long, " bytecount )
          /* Using \fBsyscall\fP(2) may be preferable; see \fBintro\fP(2) */
.sp
.BI "int modify_ldt(int " "func" ", void *" "ptr" ", unsigned long " "bytecount" );
.fi
.SH 
.BR modify_ldt ()
ϥץΥ롦ǥץơ֥ (local descriptor table; ldt)
ɤ߽񤭤롣
ldt  i386 ץåǻѤץȤΥơ֥Ǥ롣
Υơ֥˴ؤƤΤܤ Intel 386 processor handbook 
Ȥ뤳ȡ
.PP
.I func
 0 ʤС
.BR modify_ldt ()
 ldt 
.I ptr 
ؤƤɤ߹ࡣ
ɤ߹Хȿϼºݤ ldt Υ
.I bytecount
꾮Ǥ롣
.PP
.I func
 1 ʤС
.BR modify_ldt ()
 ldt ȥΰĤѹ롣
.I ptr

.I modify_ldt_ldt_s
¤Τؤ
.I bytecount
Ϥι¤Τ礭ʤФʤʤ
.\" .PP
.\" ldt ϸƤӽФץ˸ͭΤΤǤ롣
.\" ¾Υץ䥫ͥΥɥ쥹֤ޤ褦 ldt ѹ褦ȡ
.\" ץɥ쥹֤γΥ˥褦ȤȤˡ
.\" ơȿ (segmentation violation) ˤʤ롣
.\" ݸϥڡ󥰥쥤Ǽ»ܤ롣
.SH ֤
ϡ
.BR modify_ldt ()
 (ɤ߹ߤξ) ºݤɤ߹Хȿ
ޤ (񤭹ߤξ) 0 ֤
Ԥ
.BR modify_ldt ()
 \-1 ֤
.I errno 
ꤹ롣
.SH 顼
.TP
.B EFAULT
.I ptr
ɥ쥹֤γؤƤ롣
.TP
.B EINVAL
.I ptr
 0 Ǥ롢
ޤ
.I func
 1 
.I bytecount

.IR modify_ldt_ldt_s 
¤ΤΥʤ
.I func
 1 ǿ ldt ȥ̵꤬ͤǤ롣
.TP
.B ENOSYS
.I func
 0 Ǥ 1 Ǥʤ
.SH 
Υ Linux ͭǤꡢܿտޤץǤ
ѤƤϤʤ
.SH Ϣ
.BR vm86 (2)