Date: Sat, 30 May 1998 22:23:03 -0400 (EDT) From: "John W. DeBoskey" <jwd@unx.sas.com> To: freebsd-current@FreeBSD.ORG Subject: cdrecord & core dumps Message-ID: <199805310223.AA23531@mozart>
next in thread | raw e-mail | index | archive | help
Hi,
I have cdrecord working just fine under 3.0-CURRENT. If this
information is out-of-date, my apologies.
I posted a note a few months ago concerning sysconf() and
getpagesize()... I was promptly and impolitely told I was doing
it 'wrong'. Oh well...
First of all, the following code is incorrect for FreeBSD.
_SC_PAGESIZE is defined in the header files, but it is not supported
via sysconf(), hence pagesize gets set to -1.
In init_fifo() (fifo.c)
#ifdef _SC_PAGESIZE
pagesize = sysconf(_SC_PAGESIZE);
#else
pagesize = getpagesize();
#endif
At this point, the code in init_fifo() makes some very bad
calculations, among others, a bad buffer size.
A simple change: (not portable)
#ifdef _SC_PAGESIZE
pagesize = sysconf(_SC_PAGESIZE);
EDEBUG(("_SC_pagesize: %d\n", pagesize));
if (pagesize == -1)
pagesize = getpagesize();
EDEBUG(("_SC_pagesize: %d\n", pagesize));
#else
As far as posix is concerned, the following change to my kernel
took care of it:
#
# Enable Posix priority scheduling
#
options "_KPOSIX_PRIORITY_SCHEDULING"
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?199805310223.AA23531>
