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

« back to all changes in this revision

Viewing changes to man3/sched_getcpu.3

  • Committer: Bazaar Package Importer
  • Author(s): Joey Schulze
  • Date: 2010-03-02 21:49:58 UTC
  • mfrom: (1.1.42 upstream) (2.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100302214958-69yjgb70t7wrjo3m
New upstream version
. Remove crufty statement in setuid(2) that seteuid() is not in POSIX
(closes: Bug#569812)
. Fix description of 'nochdir' argument in daemon(3) (closes: Bug#554819)
. Fix NAME line in path_resolution(7) (closes: Bug#558300)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
.\" Formatted or processed versions of this manual, if unaccompanied by
22
22
.\" the source, must acknowledge the copyright and authors of this work.
23
23
.\"
24
 
.TH SCHED_GETCPU 3 2008-07-03 "Linux" "Linux Programmer's Manual"
 
24
.TH SCHED_GETCPU 3 2009-12-08 "Linux" "Linux Programmer's Manual"
25
25
.SH NAME
26
26
sched_getcpu \- determine CPU on which the calling thread is running
27
27
.SH SYNOPSIS
28
28
.nf
29
29
.B #define _GNU_SOURCE
30
 
.B #include <utmpx.h>
 
30
.B #include <sched.h>
31
31
 
32
32
.B int sched_getcpu(void);
33
33
.fi
45
45
.SH RETURN VALUE
46
46
On success,
47
47
.BR sched_getcpu ()
48
 
returns a non-negative CPU number.
 
48
returns a nonnegative CPU number.
49
49
On error, \-1 is returned and
50
50
.I errno
51
51
is set to indicate the error.
82
82
.SH SEE ALSO
83
83
.BR getcpu (2)
84
84
.SH COLOPHON
85
 
This page is part of release 3.23 of the Linux
 
85
This page is part of release 3.24 of the Linux
86
86
.I man-pages
87
87
project.
88
88
A description of the project,