~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man3/makecontext.3

  • Committer: Bazaar Package Importer
  • Author(s): Joey Schulze
  • Date: 2008-11-29 12:01:13 UTC
  • mfrom: (1.1.36 upstream) (2.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20081129120113-7nufimylf2grlth8
* New upstream version
  . Fix description of range of function value return in atan2(3)
    (closes: Bug#506299)
  . Clarify and add more detail in RETURN VALUE description in
    getpwnam(3) and getgrnam(3) (closes: Bug#504787)
  . Add text on use of pointer arguments to makecontext(3) (closes:
    Bug#504699)
  . Document that LOG_KERN messages can't be generated from user
    processes in syslog(3)
* Avoid distribution of more pthread manpages that are currently also
  provided by glibc-doc:
  . pthread_attr_setinheritsched(3)
  . pthread_cancel(3)
  . pthread_cleanup_pop(3)
  . pthread_cleanup_push(3)
  . pthread_setcancelstate(3)
  . pthread_setcanceltype(3)
  . pthread_testcancel(3)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
.\" the source, must acknowledge the copyright and authors of this work.
23
23
.\" 2006-08-02, mtk, Added example program
24
24
.\"
25
 
.TH MAKECONTEXT 3 2008-08-06 "GNU" "Linux Programmer's Manual"
 
25
.TH MAKECONTEXT 3 2008-11-07 "GNU" "Linux Programmer's Manual"
26
26
.SH NAME
27
27
makecontext, swapcontext \- manipulate user context
28
28
.SH SYNOPSIS
113
113
the stack.
114
114
Thus, it is not necessary for the user program to
115
115
worry about this direction.
 
116
 
 
117
On architectures where
 
118
.I int
 
119
and pointer types are the same size
 
120
(e.g., x86-32, where both types are 32 bits),
 
121
you may be able to get away with passing pointers as arguments to
 
122
.BR makecontext ()
 
123
following
 
124
.IR argc .
 
125
However, doing this is not guaranteed to be portable,
 
126
is undefined according to the standards,
 
127
and won't work on architectures where pointers are larger than
 
128
.IR int s.
 
129
Nevertheless, starting with version 2.8, glibc makes some changes to
 
130
.BR makecontext (3),
 
131
to permit this on some 64-bit architectures (e.g., x86-64).
116
132
.SH EXAMPLE
117
133
.PP
118
134
The example program below demonstrates the use of
203
219
.BR sigprocmask (2),
204
220
.BR sigsetjmp (3)
205
221
.SH COLOPHON
206
 
This page is part of release 3.13 of the Linux
 
222
This page is part of release 3.14 of the Linux
207
223
.I man-pages
208
224
project.
209
225
A description of the project,