From owner-freebsd-current Thu May 28 13:54:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA24144 for freebsd-current-outgoing; Thu, 28 May 1998 13:54:13 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA24129 for ; Thu, 28 May 1998 13:54:10 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id MAA01246; Thu, 28 May 1998 12:48:57 -0700 (PDT) Message-Id: <199805281948.MAA01246@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Peter Dufault cc: paulz@trantor.stuyts.nl (Paul van der Zwan), freebsd-current@FreeBSD.ORG Subject: Re: cdrecord trouble on currnet In-reply-to: Your message of "Thu, 28 May 1998 07:34:50 EDT." <199805281134.HAA20418@hda.hda.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Thu, 28 May 1998 12:48:57 -0700 From: Mike Smith Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id NAA24135 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > $ sudo cdrecord -dev=0,4,0 -data -dummy /scratch/img/psnl > > Cdrecord release 1.6 Copyright (C) 1995-1998 Jörg Schilling > > cdrecord: Function not implemented. WARNING: Cannot set RR-scheduler > > Bus error (core dumped) > > > > This is a freshly compiled port on a current cvsupped today. > > (I wonder why he is trying to use the round robin scheduler - I > expect he wants the FIFO one). > > Cdrecord has autoconf'd in the P1003.1B scheduler interface. Autoconf? cdrecord? You haven't seen this mess. 8) > I'm probably going to have to change how I did things, but the > program may need fixing also. By default, with nothing defined, > the new system calls are setup to be LKM'd in for development and > will fail at run time with ENOSYS or if you check for their presense > with sysconf(). > > You can add build time support with the _KPOSIX_PRIORITY_SCHEDULING > option in the kernel. > > See how cdrecord is deciding to use priority scheduling. If it > decides that a program that links OK without checking any compile > time feature test macros means that priority scheduling is supported, > then that should be changed. I've been told some programs are > doing this (not specifically cdrecord). It checks _POSIX_PRIORITY_SCHEDULING at build time. 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. Thanks for the comprehensive explanations. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message