From owner-freebsd-current Sat May 30 19:23:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA14566 for freebsd-current-outgoing; Sat, 30 May 1998 19:23:12 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lamb.sas.com (root@lamb.sas.com [192.35.83.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA14558 for ; Sat, 30 May 1998 19:23:11 -0700 (PDT) (envelope-from jwd@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.8]) by lamb.sas.com (8.8.7/8.8.7) with SMTP id WAA14906 for ; Sat, 30 May 1998 22:23:09 -0400 (EDT) Received: by mozart (5.65c/SAS/Domains/5-6-90) id AA23531; Sat, 30 May 1998 22:23:03 -0400 From: "John W. DeBoskey" Message-Id: <199805310223.AA23531@mozart> Subject: cdrecord & core dumps To: freebsd-current@FreeBSD.ORG Date: Sat, 30 May 1998 22:23:03 -0400 (EDT) X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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