Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2008 17:25:46 +0200 (CEST)
From:      Dan Lukes <dan@obluda.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/125751: man 3 pthread_getschedparam section ERRORS incomplete
Message-ID:  <200807181525.m6IFPk4Z025333@kulesh.obluda.cz>
Resent-Message-ID: <200807181530.m6IFU276070836@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         125751
>Category:       docs
>Synopsis:       man 3 pthread_getschedparam section ERRORS incomplete
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 18 15:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD 6.3-STABLE i386
>Organization:
Obludarium
>Environment:
src/share/man/man3/pthread_schedparam.3,v 1.9.8.1 2006/10/20 18:59:44 ru

>Description:
    The function

int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param);

will return EINVAL in the case the policy or param is NULL

It apply to al three implementations:
     Reentrant C Library (libc_r, -lc_r)
     POSIX Threads Library (libpthread, -lpthread)
     1:1 Threading Library (libthr, -lthr)

    Unfortunately, the manual page mention the ESRCH as the only error code fur such function.

>How-To-Repeat:
>Fix:

	Add the EINVAL error code to ERRORS section, pthread_getschedparam subsection of manual page



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807181525.m6IFPk4Z025333>