From owner-freebsd-bugs Sat May 30 15:10:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA13151 for freebsd-bugs-outgoing; Sat, 30 May 1998 15:10:29 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA13047 for ; Sat, 30 May 1998 15:10:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA06639; Sat, 30 May 1998 15:10:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA11636; Sat, 30 May 1998 15:00:56 -0700 (PDT) (envelope-from nobody) Message-Id: <199805302200.PAA11636@hub.freebsd.org> Date: Sat, 30 May 1998 15:00:56 -0700 (PDT) From: ian@nmsu.edu To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/6799: problem with open(2) in libc_r and opening tape device Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6799 >Category: bin >Synopsis: problem with open(2) in libc_r and opening tape device >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 30 15:10:00 PDT 1998 >Last-Modified: >Originator: Ian Logan >Organization: New Mexico State University >Release: 2.2.6 from the April-98 CDset >Environment: FreeBSD kona 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Wed Mar 25 02:28:49 GMT 1998 jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC i386 >Description: I am trying to open a tape device for reading(or writting doesn't seem to matter), if I link with the normal C library everything works great. If I link with libc_r I get a "inappropriate ioctl for device mesage". I am using a K6, with 64MB of memory, a Buslogic BT948 SCSI card, and a Seagate STT8000N tape drive. Everything on the machine is straight off the CD. >How-To-Repeat: The following program demonstrates the bug everytime, here is how I'm compiling and running it. % cc -DREENTRANT bug.c % ./a.out % cc -DREENTRANT bug.c -lc_r % ./a.out Open:: Inappropriate ioctl for device And here is the source: #include #include #include int main (void){ int handle; handle=open("/dev/nrst0",O_RDWR); if(handle == -1){ perror("Open:"); return(1); }else{ close(handle); } } >Fix: I don't have a fix for it at this time. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message