Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 1998 07:09:30 -0400 (EDT)
From:      Peter Dufault <dufault@hda.com>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        dufault@hda.com, mike@smith.net.au, current@FreeBSD.ORG
Subject:   Re: cdrecord trouble on currnet
Message-ID:  <199805291109.HAA23356@hda.hda.com>
In-Reply-To: <199805290119.LAA20313@godzilla.zeta.org.au> from Bruce Evans at "May 29, 98 11:19:43 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> >    if (sysconf(_SC_PRIORITY_SCHEDULING) == -1) {
> >        if (errno != 0) {
> >            /* This isn't valid:
> >             */

(...)

> The "This isn't valid" case isn't valid, since sysconf() doesn't change
> errno if there is no error.  errno must be set before calling sysconf().

I needed to cut a few more lines:

>    /* Is priority scheduling configured?
>     */
>    errno = 0;
>    if (sysconf(_SC_PRIORITY_SCHEDULING) == -1) {

Remember: Bruce is watching.  Measure twice, cut once.

Peter

-- 
Peter Dufault (dufault@hda.com)   Realtime development, Machine control,
HD Associates, Inc.               Safety critical systems, Agency approval

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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