Date: Thu, 28 May 1998 17:27:31 -0400 (EDT) From: Peter Dufault <dufault@hda.com> To: mike@smith.net.au (Mike Smith) Cc: current@FreeBSD.ORG Subject: Re: cdrecord trouble on currnet Message-ID: <199805282127.RAA21367@hda.hda.com> In-Reply-To: <199805281948.MAA01246@dingo.cdrom.com> from Mike Smith at "May 28, 98 12:48:57 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> It checks _POSIX_PRIORITY_SCHEDULING at build time.
That's understandable, then.
> Can you give an example of the correct mechanism for using sysconf() to
> determine the availability of the scheduler? I'll fix it in the
> updates I'm working on.
if (sysconf(_SC_PRIORITY_SCHEDULING) == -1) {
if (errno != 0) {
/* This isn't valid:
*/
err(EX_OSERR, "sysconf(_SC_PRIORITY_SCHEDULING)");
}
else {
errx(EX_UNAVAILABLE,
"No run-time support for POSIX priority scheduling");
}
}
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?199805282127.RAA21367>
