Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3proc/Pissyscall.3proc
+++ new/usr/src/man/man3proc/Pissyscall.3proc
1 1 .\"
2 2 .\" This file and its contents are supplied under the terms of the
3 3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 4 .\" You may only use this file in accordance with the terms of version
5 5 .\" 1.0 of the CDDL.
6 6 .\"
7 7 .\" A full copy of the text of the CDDL should have accompanied this
8 8 .\" source. A copy of the CDDL is also available via the Internet at
9 9 .\" http://www.illumos.org/license/CDDL.
10 10 .\"
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
11 11 .\"
12 12 .\" Copyright 2015 Joyent, Inc.
13 13 .\"
14 14 .Dd May 11, 2016
15 15 .Dt PISSYSCALL 3PROC
16 16 .Os
17 17 .Sh NAME
18 18 .Nm Pissyscall ,
19 19 .Nm Pissyscall_prev
20 20 .Nd determine if instructions are system call instructions
21 -.Sh SYNOPSIS
21 +.Sh LIBRARY
22 22 .Lb libproc
23 +.Sh SYNOPSIS
23 24 .In libproc.h
24 25 .Ft int
25 26 .Fo Pissyscall
26 27 .Fa "struct ps_prochandle *P"
27 28 .Fa "uintptr_t addr"
28 29 .Fc
29 30 .Ft int
30 31 .Fo Pissyscall_prev
31 32 .Fa "struct ps_prochandle *P"
32 33 .Fa "uintptr_t addr"
33 34 .Fa "uintptr_t *dst"
34 35 .Fc
35 36 .Sh DESCRIPTION
36 37 The
37 38 .Fn Pissyscall
38 39 function determines whether or not the instructions at
39 40 .Fa addr
40 41 in the process handle
41 42 .Fa P
42 43 corresponds to one of the architecture's system call instructions.
43 44 .Pp
44 45 the
45 46 .Fn Pissyscall_prev
46 47 function determines whether or not the instruction before
47 48 .Fa addr
48 49 in the process handle
49 50 .Fa P
50 51 corresponds to one of the architecture's system call instructions.
51 52 If it does, and
52 53 .Fa dst
53 54 is a
54 55 .Pf non- Dv NULL
55 56 pointer, then the address of the system call instruction will be copied
56 57 into the location pointed to by
57 58 .Fa dst .
58 59 .Sh RETURN VALUES
59 60 Upon successful completion, the
60 61 .Fn Pissyscall
61 62 function returns
62 63 .Sy non-zero
63 64 if
64 65 .Fa addr
65 66 corresponds to a system call instruction.
66 67 Otherwise,
67 68 .Sy 0
68 69 is returned.
69 70 .Pp
70 71 Upon successful completion, the
71 72 .Fn Pissyscall_prev
72 73 function returns
73 74 .Sy non-zero
74 75 if
75 76 .Fa addr
76 77 corresponds to a system call instruction and if
77 78 .Fa dst
78 79 is
79 80 .Pf non- Dv NULL ,
80 81 .Fa dst
81 82 is updated.
82 83 Otherwise,
83 84 .Sy 0
84 85 is returned.
85 86 .Sh INTERFACE STABILITY
86 87 .Sy Uncommitted
87 88 .Sh MT-LEVEL
88 89 See
89 90 .Sy LOCKING
90 91 in
91 92 .Xr libproc 3LIB .
92 93 .Sh SEE ALSO
93 94 .Xr libproc 3LIB
↓ open down ↓ |
61 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX