From owner-freebsd-bugs Sun Dec 22 01:21:30 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA24460 for bugs-outgoing; Sun, 22 Dec 1996 01:21:30 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id BAA24450 for ; Sun, 22 Dec 1996 01:21:20 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA24408; Sun, 22 Dec 1996 10:21:16 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA21093; Sun, 22 Dec 1996 10:21:09 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id KAA12585; Sun, 22 Dec 1996 10:14:41 +0100 (MET) From: J Wunsch Message-Id: <199612220914.KAA12585@uriah.heep.sax.de> Subject: Re: NEC 8xCD-ROM problems To: bpark@pv324.pv.reshsg.uci.edu (Brian S. Park) Date: Sun, 22 Dec 1996 10:14:41 +0100 (MET) Cc: bugs@freebsd.org, postmaster@pv.reshsg.uci.edu Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Brian S. Park" at "Dec 21, 96 05:45:37 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Brian S. Park wrote: > The drive works fine with data cd-rom, but has problems with MUSIC > cd-rom. I tried both xcdplayer, and workman, and same problem for both. > Does any one have any ideas? > Dec 21 17:21:45 128 /kernel: cd0(ahc0:3:0): ILLEGAL REQUEST asc:64,0 > Illegal mode for this track This means the drive claims that you're trying to READ an audio track, or to PLAY a data track. Btw., your From address is absolute junk. It comes out as From: "Brian S. Park" This is totally wrong. Firstly, using an IP address as the From host is bogus, however, even if this was desired it has to go into brackets: bpark@[128.195.182.99]. I'm trying to send this to the rev-lookuped host for the above IP address, and Cc your postmaster in the hope that he can both, resolve the problem and forward the message to you in case it bounces. (The pv324.pv.reshsg.uci.edu hostname doesn't look very confident.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Sun Dec 22 02:00:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA25807 for bugs-outgoing; Sun, 22 Dec 1996 02:00:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA25772; Sun, 22 Dec 1996 02:00:02 -0800 (PST) Date: Sun, 22 Dec 1996 02:00:02 -0800 (PST) Message-Id: <199612221000.CAA25772@freefall.freebsd.org> To: freebsd-bugs Cc: From: J Wunsch Subject: Re: bin/2265: su(1) does not call skeyaccess() Reply-To: J Wunsch Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2265; it has been noted by GNATS. From: J Wunsch To: bradley@dunn.org Cc: FreeBSD-gnats-submit@freebsd.org, guido@gvr.win.tue.nl (Guido van Rooij) Subject: Re: bin/2265: su(1) does not call skeyaccess() Date: Sun, 22 Dec 1996 10:33:24 +0100 (MET) As bradley@dunn.org wrote: > >Description: > > su(1) does not call skeyaccess() (from libskey), thus rendering the > controls in /etc/skey.access useless. Well, it rather seems like it was deliberately omitted, as opposed to forgotten. A user running su(1) has already been authenticated to the system, and _that's_ where skey.access should hit. Guido, any comments on this (and perhaps even a manpage for skeyaccess(3) :)? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Sun Dec 22 04:07:12 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA29892 for bugs-outgoing; Sun, 22 Dec 1996 04:07:12 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA29448 for freebsd-bugs@freebsd.org; Sun, 22 Dec 1996 04:00:09 -0800 (PST) Date: Sun, 22 Dec 1996 04:00:09 -0800 (PST) Message-Id: <199612221200.EAA29448@freefall.freebsd.org> From: FreeBSD bugmaster To: FreeBSD bugs list Subject: Current problem reports Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Current FreeBSD problem reports The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions fo FreeBSD including experimental development code and obsolete releases. Bugs can be in one of several states: o - open A problem report has been submitted, no sanity checking performed. a - analyzed The report has been examined by a team member and evaluated. f - feedback The problem has been solved, and the originator has been given a patch or a fix has been committed. The PR remains in this state pending a response from the originator. s - suspended Work on the problem has been postponed. This happens if a timely solution is not possible or is not cost-effective at the present time. The PR continues to exist, though a solution is not being actively sought. If the problem cannot be solved at all, it will be closed, rather than suspended. c - closed A problem report is closed when any changes have been integrated, documented, and tested. Critical problems S Submitted Tracker Engr. Description ------------------------------------------------------------------------------- a [1995/01/11] i386/105 bde Distributed libm (msun) has non-standard o [1995/02/14] kern/216 davidg /kernel: panic: ffs_alloccg: map corrupte o [1995/12/08] kern/876 mpp NFS allows bogus accesses to cached data a [1996/01/22] kern/965 bde 2.0.5: system crashes daily because of "m a [1996/03/04] kern/1059 hsu null fs panics system o [1996/04/06] kern/1121 dyson System crashes on boot up just after the o [1996/05/07] kern/1177 dyson Machine hangs with message "vm_fork: no p a [1996/05/19] kern/1217 separating to hardrives to two IDE channe o [1996/06/05] kern/1293 Fatal trap 12: page fault while in kernel o [1996/06/11] kern/1311 dyson Panic: vm_page_free while installing new f [1996/07/15] bin/1387 Group file errors cause absolute havoc a [1996/08/09] kern/1487 bde bug in exec(2) o [1996/08/15] kern/1498 system hangs during inactivity o [1996/09/11] kern/1599 panic: locking against myself o [1996/09/13] conf/1608 FreeBSD's bug tracking system does not re f [1996/09/14] kern/1609 page fault while in kenel mode during Lin o [1996/09/29] bin/1694 rbootd does not appear to work o [1996/09/30] kern/1698 sup from around 21:51 GMT 28th very unsta o [1996/10/01] conf/1704 Install fails, probe dos not find my ADAP a [1996/10/08] kern/1744 run queue or proc list smashed 4 times in o [1996/10/13] kern/1790 access to /dev/kmem panics system f [1996/10/28] kern/1919 access to files/directories fails, gives o [1996/11/01] kern/1940 TCP doesn't time out of FIN_WAIT_1 and fl o [1996/11/04] i386/1959 DELAY() won't work for fast CPUs o [1996/11/15] kern/2033 unmount of doubly mounted devfs forces pa o [1996/11/17] kern/2043 2.2-ALPHA stdio problems? (Bad Address e o [1996/11/17] kern/2044 sd0(ahc0:0:0) o [1996/11/22] gnu/2089 libregex build problem o [1996/11/22] conf/2091 transfer error bytes -1 to 1024 on instal o [1996/11/28] bin/2120 Cannot find bin/bin.aa during install. Al o [1996/11/29] kern/2121 MAXBSIZE in param.h causes kernel panic i o [1996/11/29] bin/2126 sysinstall installs broken geometory(sic) o [1996/11/29] ports/2128 ports ld fails unless ranlib is run on libexpec o [1996/12/05] ports/2160 ports Programs using xview dump core o [1996/12/05] bin/2161 Bugs in mklocale(1) make isgraph(3) confu o [1996/12/08] misc/2177 sysinstall via ppp fails o [1996/12/08] misc/2178 not enough free inodes on boot.flp's MFS o [1996/12/08] i386/2180 rapid xon/xoff causes cy.c serial driver o [1996/12/09] bin/2186 Installation Fails - Checksum error on bi o [1996/12/12] kern/2202 PPP Times out and hanges up modem during o [1996/12/12] ports/2205 ports There is a mistake in line 29 in file sr o [1996/12/13] ports/2207 ports bash hangs tty and uses all cpu when TERM o [1996/12/14] i386/2218 cy.c XON/XOFF handling crashes kernel o [1996/12/17] kern/2240 ncr53c810 crashing o [1996/12/20] bin/2258 route add/delete [network] xxx.yyy.zzz.0 45 problems total. Serious problems S Submitted Tracker Engr. Description ------------------------------------------------------------------------------- o [1994/11/30] kern/34 davidg nullfs and union mounts can result in wil o [1995/01/24] gnu/183 peter can't resolve "operator <<" overload a [1995/03/20] kern/260 davidg msync and munmap don't bother to update m s [1995/04/01] kern/291 se PCI devices still probe/attach after bein f [1995/05/08] bin/389 Simultaneous creation/deletion of dirs co a [1995/05/09] bin/392 Simultaneous cp and ls of files on dos f/ o [1995/05/16] kern/425 wollman arp entries not getting removed when inte a [1995/06/17] kern/527 dufault dump causes assertion in ncr.c o [1995/07/02] kern/579 bde sio: RS_IBUFSIZE at 256 bytes serial line f [1995/07/04] kern/587 if_le hangs on OACTIVE with 2k buffer o [1995/08/01] bin/648 printf format conversion incorrect (dupli f [1995/08/11] gnu/672 Nor all ph headers get created o [1995/08/15] i386/692 bde My modem is not found if my external cach o [1995/08/21] kern/703 amurai ppp not always deleting route properly wh o [1995/08/22] bin/706 increased root DNS traffic and long laten f [1995/09/20] kern/730 gibbs 3Com 3C5x9 probe problem f [1995/09/27] kern/750 cd9660 confused by not-ready or I/O error a [1995/10/07] bin/771 telnet character mode not set and broken o [1995/10/11] bin/777 patch doesn't realize stdin is closed and o [1995/10/18] bin/786 wpaul Problem with NIS and large group maps a [1995/10/26] kern/794 swap partition at offset 0 still broken o [1995/11/12] kern/820 gibbs scsi tape problems f [1995/11/16] bin/826 tcpmux listener in inetd does not work o [1995/11/28] bin/850 dump treats write-protect as an EOT & spo o [1995/12/20] i386/906 davidg /sys/i386/boot/netboot/nb8390.com cannot o [1996/01/01] bin/926 Mounting nfs disks before starting mountd o [1996/01/02] kern/927 sos VGA mode not restored f [1996/01/06] kern/932 de0 occasionally enables 100baseTX when p o [1996/01/25] kern/971 Default limits for number of processes pe o [1996/02/06] kern/998 badness in file system silently crashes m o [1996/02/12] bin/1019 joerg getty cannot detect ppp logins o [1996/02/12] kern/1020 .Boca 16-port board still hangs o [1996/02/12] docs/1023 mpp using touch to create swap file for NFS d a [1996/02/17] bin/1030 steve /bin/sh does not pass environment variabl f [1996/02/28] bin/1050 Process (zip) hangs (unkillable) after fl f [1996/03/06] kern/1065 wt could crash reading short blocks s [1996/03/06] kern/1067 mpp panic: ufs_lock: recursive lock not expec o [1996/03/09] bin/1073 telnet -8 does not work with SunOS or Sol f [1996/03/21] i386/1097 gibbs system hang during tape rewind/aic7870 co o [1996/03/23] kern/1098 File system corruption (2 cases) o [1996/03/30] bin/1111 scrappy mail.local will happily deliver mail to a o [1996/04/05] kern/1118 panic: setrunqueue encountered when wine f [1996/04/07] kern/1122 Kernel (current) does not see all memory f [1996/04/11] kern/1135 starting an extra mountd and then killing f [1996/05/10] misc/1187 pppd dies with a segv f [1996/05/14] kern/1204 umount -f after SCSI reset -> reboot o [1996/05/24] misc/1247 bde Conflicting header files f [1996/05/26] i386/1251 aha0 and bt0(eisa) conflicts again. f [1996/05/26] kern/1252 Heavy activity on a CD causes panic o [1996/05/26] kern/1256 ZNYX 314 mysterously looses packets o [1996/05/28] kern/1271 phk Kernel panic using PLIP in 27/05 current o [1996/05/31] kern/1284 dyson panic: vm_page_free: freeing busy page o [1996/06/02] i386/1288 bde wdgetctlr (wd.c) return incorrect number o [1996/06/06] misc/1299 sos National charecter problem in XFree86 o [1996/06/07] kern/1301 davidg DEC FDDI/PCI Adapter: halt code = 6 (DMA o [1996/06/10] kern/1308 dyson vm_page_free: wire count > 1 in 960501-SN o [1996/06/16] kern/1327 joerg keyboard probe in -current fails, X reboo a [1996/06/18] kern/1333 davidg free vnode isn't: another -stable coredum o [1996/06/19] kern/1336 Permission for .. in NFS mounts is somewh f [1996/06/25] bin/1351 security problem with mv(1) o [1996/07/09] bin/1377 mv(1) retains the setuid bit when it is u o [1996/07/09] gnu/1379 Man command problem, when it writes into o [1996/07/16] bin/1392 jkh PPP silently fails to work when CTS/RTS i a [1996/07/18] kern/1397 bde can't send to a pipe o [1996/07/19] gnu/1407 jdp ld computes wrong size of common (global f [1996/07/20] bin/1410 /usr/bin/login is suid, with little requi f [1996/07/24] kern/1423 wollman route causes kernel page fault. f [1996/08/01] bin/1454 steve /bin/sh bug handling <<[n] FD processing o [1996/08/03] bin/1461 Incorrect address binding of Kerberized r o [1996/08/04] kern/1467 gibbs scsi_prevent causing tape problems on clo o [1996/08/09] kern/1480 terminal "cons25" resize problem o [1996/08/18] kern/1512 dyson Use of madvise may may cause bad memory m o [1996/08/21] bin/1522 dump | restore of filesystem corrupted fi o [1996/08/22] kern/1531 Machine hangs, unable to either fork or e o [1996/08/22] kern/1533 dyson Machine can be panicked by a userland pro f [1996/08/22] i386/1534 jkh Installing from Mitsumi FX001D CD-ROM dri o [1996/08/24] ports/1539 sos Attempts to run Linux elf binaries using o [1996/08/25] misc/1541 julian fork.o in libc_r fails to compile o [1996/09/02] bin/1563 Curses let letters fall away sometimes f [1996/09/05] kern/1570 Setting SHMALL > 35000 causes panic o [1996/09/08] docs/1588 jfieber Handbook Incorrect LaTeX/PostScript outpu o [1996/09/14] kern/1610 dyson mmap() of unassociated memory + mlock() c o [1996/09/14] kern/1613 I get ls: fts_read: No such file or direc o [1996/09/15] ports/1617 ports new port - nntpcache o [1996/09/16] i386/1626 MUSTEK Scanner hangs NCR SCSI controller f [1996/09/18] kern/1637 mss driver causes feedback (squeal) on so o [1996/09/18] kern/1638 worm driver won't make audio tracks o [1996/09/19] bin/1650 telnet encryption with char-mode and asci o [1996/09/19] kern/1652 changing time hangs system o [1996/09/21] kern/1661 ft driver hangs uninterruptably at "bavai o [1996/09/22] ports/1663 ports strobe-port o [1996/09/22] bin/1664 getty doesn't use init kerninfo struct o [1996/09/23] kern/1670 PCI ed probe causes a page fault o [1996/09/24] kern/1677 read from /dev/kmem may crash system o [1996/09/26] kern/1684 inconsistent permission failures on NFS r o [1996/09/28] bin/1687 watch makes kernel crash o [1996/09/29] kern/1689 TCP extensions throttles distant connecti o [1996/09/29] kern/1692 Page fault while in kernel modem fatal tr o [1996/10/01] bin/1702 installing of tcl manpages fails from mak o [1996/10/01] bin/1705 COM2 not detected when booting from Hardd o [1996/10/03] kern/1715 le driver non-reentrant o [1996/10/03] kern/1716 LKM does not install character devices o [1996/10/04] kern/1723 kernel fault when doing scsi reprobe o [1996/10/04] kern/1724 gibbs HP colorado T4000S tape drive hangs syste o [1996/10/04] kern/1726 panic in kmem_malloc (dump available) o [1996/10/05] i386/1730 SFF8020 violation and silly bug in atapi. o [1996/10/10] ports/1753 markm SSLeay doesn't work against Microsoft sec o [1996/10/10] kern/1754 netbooted machines freeze with ifconfig a o [1996/10/11] bin/1773 ports A NULL pointer causing segmentation core o [1996/10/11] bin/1774 pst telnet spins when killed before network i o [1996/10/13] gnu/1787 Diffs with Index: lines are not honored f o [1996/10/13] bin/1789 pst dump estimates a negative number of tapes o [1996/10/15] bin/1810 fsck -p does not check pass 0 filesystems o [1996/10/15] kern/1812 dyson vnodes are left in a locked state o [1996/10/15] ports/1813 ports nntpcache-current port in incoming o [1996/10/15] kern/1814 cy driver gets deadlocked sometimes o [1996/10/16] i386/1821 boot fails if bad144 selected on large pa o [1996/10/16] kern/1828 limit filesize does not work o [1996/10/18] kern/1839 Multiple mfs mounts of same mount point o [1996/10/20] kern/1848 breakpoints may be set in shared librarie o [1996/10/21] kern/1856 read-only nfs mount: panic leaf should be o [1996/10/21] misc/1857 paramater of opendir gets thrashed o [1996/10/22] bin/1865 Problem with touch command o [1996/10/22] ports/1866 wosch popclient flushes remote mailbox even wit o [1996/10/23] bin/1873 kerberos login encryption incompatible wi o [1996/10/24] kern/1880 kernel crash during boot when using 512 M o [1996/10/24] bin/1882 nobody can su when wheel group is empty o [1996/10/25] kern/1887 serial line switches from 9600 to 57600 w o [1996/10/25] bin/1891 mountd fails to export o [1996/10/26] bin/1892 install(1) removes target file o [1996/10/27] misc/1910 filenames with unusual characters break / o [1996/10/28] kern/1914 vm_page_alloc(ZERO): missing page on free o [1996/10/29] bin/1927 User CPU time getting accounting as syste o [1996/10/30] misc/1928 jkh fdisk incorrectly detects driver geometry o [1996/10/30] kern/1929 HP C1536A DAT drive errors o [1996/10/31] ports/1938 ports iv port doesn't build ibuild f [1996/11/03] kern/1951 Warning! Defective early revision adapter o [1996/11/04] bin/1952 Long chat script makes ppp dump core o [1996/11/05] ports/1965 pst MH command rcvtty broken o [1996/11/06] bin/1972 NFS stops under load o [1996/11/07] bin/1973 pppd uses /etc/ppp/options.tty after comm o [1996/11/07] kern/1976 psm and syscons conflicts have escalated o [1996/11/08] gnu/1981 ypserv handles null key incorrectly f [1996/11/08] kern/1982 arpresolve: cant allocate llinfo for 207. o [1996/11/08] i386/1983 syscons fails/hangs during system boot if o [1996/11/13] ports/2000 ports obsolete software in distfiles directory o [1996/11/13] bin/2001 vi confused about lines to display o [1996/11/13] i386/2002 sio doesn't detect com port on Compaq Con o [1996/11/14] misc/2013 'make world' fails on read-only /usr/src o [1996/11/14] kern/2014 Console keyboard lockup problem o [1996/11/15] bin/2016 static libtcl references symbols that are o [1996/11/15] kern/2034 wd* driver "slot name rejection error" o [1996/11/15] gnu/2035 deque bug, local gnu changes to deque hea o [1996/11/17] kern/2048 GENERIC kernel lacks SYSV IPC features o [1996/11/18] kern/2053 de0 driver don't work at 100M for Compex o [1996/11/19] ports/2057 max Yet another port of tiff-3.4 o [1996/11/19] i386/2058 amity series machines can not show instal o [1996/11/19] misc/2060 include files don't agree on prototypes o [1996/11/19] ports/2062 ports xmountains-port.tar.gz placed in incoming o [1996/11/20] bin/2071 FreeBSD does´t recognize aditional memory o [1996/11/24] kern/2094 wd1: interrupt timeout: o [1996/11/26] bin/2107 problem building a system from cdrom. o [1996/11/28] kern/2116 Kernel crash at system boot time o [1996/11/29] kern/2124 Hitachi CDR-7730 ATAPI CD-ROM recognized a [1996/12/02] bin/2135 It is not possible to compile libc (et al o [1996/12/03] kern/2142 FP mask not saved for signal handlers o [1996/12/03] kern/2144 kernel panic (page fault) running chgrp o [1996/12/04] kern/2149 Keyboard probe fails o [1996/12/04] bin/2159 bsd on a 386 - 'configure' scripts for in o [1996/12/06] ports/2165 ports fix:ports xloadface-1.6.1 o [1996/12/08] kern/2181 2.2-ALPHA flickers/wavers part of the upp o [1996/12/09] bin/2187 ijppp: LQR is broken o [1996/12/09] bin/2188 ijppp incompatable with SLIRP o [1996/12/10] misc/2189 netdb.h works not with -traditonal cc fla o [1996/12/10] bin/2191 syslogd stops logging after several hours o [1996/12/13] bin/2206 NIS Makefile can't manage appletalk entri o [1996/12/14] ports/2213 ports New ports collescction : xengine-pl1 o [1996/12/15] ports/2221 ports Submitted port of swig 1.0 o [1996/12/16] ports/2223 ports New ports collection : lupe-0.07 o [1996/12/16] kern/2230 SEGV in sysctl o [1996/12/17] kern/2232 MSDOSFS corrupts MSDOS partitions > 500Mb o [1996/12/17] ports/2235 ports tcp-wrapper port doesn't log under 2.1.6R o [1996/12/18] kern/2246 symlinks should have their own attributes o [1996/12/18] kern/2248 Mitsumi CD-ROM driver has "timeout" probl o [1996/12/19] bin/2255 Client PPP negotiates Stacker compression o [1996/12/20] ports/2256 ports PPP process on port will not close when a o [1996/12/20] ports/2261 ports Majordomo: wrong mailer path in 'approve' 187 problems total. Non-critical problems S Submitted Tracker Engr. Description ------------------------------------------------------------------------------- a [1994/12/01] kern/35 mount -t union -o -b : lower layer not se o [1995/01/14] bin/115 systat iostat display doesn't scale high o [1995/01/21] bin/174 Poor error message from stty o [1995/01/22] kern/176 peter EIDRM not defined in errno.h o [1995/03/28] kern/281 gibbs Messages printed when checking CD ROM dev o [1995/03/28] kern/282 gibbs buslogic adapter information WAY too verb a [1995/04/09] bin/326 Weekly cron generates some usage and erro o [1995/04/20] misc/355 policy on /usr/local permission in base r f [1995/05/12] bin/398 fenner VI doesnt do the correct thing o [1995/05/13] bin/401 wollman Add REMOTE_* variables o [1995/05/23] i386/440 sos want vidcontrol option to apply settings a [1995/05/27] gnu/450 scrappy tar --exclude -c doesn't work o [1995/06/15] bin/517 wpaul Bad group change with 'install' o [1995/07/05] bin/591 phk SPAP request REJexted in stead of NAKed o [1995/08/05] gnu/655 jdp ld -r of shared objects worked in 1.1.5, o [1995/08/07] bin/658 ifconfig alias has to be separately given a [1995/08/07] bin/661 sos Hercules is not capable of having a ISO-L f [1995/08/12] kern/677 dyson X gets a bus error when calling mmap() o [1995/08/13] bin/680 joerg 2.0.5's tip using termios doesn't act the o [1995/08/29] bin/715 ache ls gives weird tabular form o [1995/09/26] kern/742 dyson syslog errors accessing Mac hard disks [p o [1995/09/28] kern/753 joerg my archive scsi tape drive does not work o [1995/10/03] kern/765 phk umount -f can`t umount a NFS filesystem i o [1995/10/14] kern/781 bde OPEN_MAX in kernel config and FD_SETSIZE o [1995/10/25] kern/792 dyson cd9660 very slow. o [1995/10/31] bin/803 bsd m4 chokes and dies while FSF m4 works o [1995/11/11] bin/815 mountd reports unknown hosts with non-inf o [1995/11/20] kern/831 one minor complaint about the kernel visu o [1995/11/22] kern/835 davidg ed panics with SMC ultra with iomem, if n o [1995/11/27] bin/841 stale nfs mounts cannot be umounted o [1995/11/30] bin/854 dyson swapinfo shows incorrect information for f [1995/12/03] kern/861 sb16 support in 2.1 is erratic and has co o [1995/12/17] kern/900 dyson ext2fs triggers divide by zero trap in vn a [1995/12/29] misc/922 From line handling incorrect in mail.loca a [1995/12/31] kern/924 EISA devices have disappeared from vmstat o [1996/01/06] misc/934 amurai ppp dies with Bus Error when processing l f [1996/01/15] kern/946 divide-by-zero in kernel on bad disk info o [1996/01/21] bin/961 'more $file', incorrect CRLF compacting. o [1996/01/23] ports/968 jkh Netscape & cern_httpd ports out of date/d a [1996/01/25] conf/972 inetd.conf should comment out k-services o [1996/01/28] kern/975 bde getrusage returns negative deltas a [1996/01/30] bin/981 fenner clnt_broadcast() is not aware of aliases s [1996/02/03] bin/993 peter g++ complains about /usr/include/machine/ o [1996/02/07] bin/999 peter /usr/share/mk/sys.mk missing common $(RM) o [1996/02/07] kern/1001 M_NAMEI malloc leak in the kernel o [1996/02/12] bin/1021 phk pppd doesn't handle PAP-only authenticati f [1996/02/14] kern/1026 deadlocks if parent vfork and child has c f [1996/02/15] bin/1029 cd behaves erraticly if cwd is a mount-po a [1996/02/19] bin/1035 ls to terminal always uses ? for non-prin f [1996/02/19] bin/1037 2.x telnetd handles CTRL-M differently th o [1996/02/25] i386/1042 bde Warning from sio driver reports wrong dev o [1996/02/26] misc/1043 dyson vm_bounce_alloc error on 2.1 install with f [1996/02/29] kern/1051 zip fails on dos partition a [1996/03/18] docs/1089 bde stat manpage unclear about st_mtime & fri o [1996/03/20] kern/1090 iostat displays incorrect sps count o [1996/03/20] bin/1093 wollman route's diagnostic is weird a [1996/03/28] bin/1105 Bug in find command o [1996/04/06] kern/1119 dyson Mounted EXT2FS partition is not cleanly u a [1996/04/15] kern/1144 sig{add, del}set and sigismember fns don' o [1996/04/19] docs/1151 mpp intro(3) references libc(3) and plot(3), a [1996/04/22] bin/1154 Configure tunN device for ip-over-ip tunn o [1996/04/23] ports/1155 ports systat or top display disagreeing informa o [1996/05/09] bin/1184 scrappy ls + xterm + nvi + columns != 80 + ^Z = m f [1996/05/13] kern/1201 gibbs FreeBSD SCSI changer driver leaves a bit o [1996/05/15] bin/1206 steve /bin/sh + emacs + ^G = ruined terminal a [1996/05/20] bin/1221 andreas new gcc-2.7.2 gives a LOT of warnings, an a [1996/05/20] ports/1222 andreas Header files conflict a [1996/05/21] bin/1229 bde redundant redeclaration of `lseek' o [1996/05/22] kern/1236 joerg some #def's in pcvt_conf.h not braketed b o [1996/06/11] bin/1312 automounter hangs on boot o [1996/06/12] conf/1319 muldi3 is not included into kernel's Make a [1996/06/13] bin/1320 gpalmer dump limits blocksize to 32K o [1996/06/18] i386/1331 phk changes and bug in ft driver f [1996/06/18] bin/1332 changes to amd and possible nfs lkm bug? f [1996/06/19] misc/1335 /etc/security generates an error with fil f [1996/07/04] i386/1367 reprobe a device that does not exist = pa f [1996/07/04] misc/1369 Need SC_MORE_LUS for Emulex MD23 also o [1996/07/06] misc/1373 RPC include lacks prototypes a [1996/07/07] bin/1375 Extraneous warning from mv(1) f [1996/07/07] misc/1376 if_tun.c does not set if_ibytes and if_ob f [1996/07/16] misc/1390 feedback from 2.1.5R update over 2.1-stab o [1996/07/16] bin/1391 cpio -O ignores umask o [1996/07/18] kern/1399 invoking setuid programs over NFS case vn o [1996/07/21] ports/1416 cflow(1) doesn't parse GNU C __attribute_ s [1996/07/23] kern/1421 Non-bug in sosend() o [1996/07/24] misc/1428 ncurses doesn't always display ALTCHARSET o [1996/08/03] kern/1462 nfsstat doesn't work if using LKM'ed vers o [1996/08/06] bin/1469 jkh it is difficult to run /usr/sbin/ppp from a [1996/08/07] ports/1470 asami need more info in the ports structure o [1996/08/09] bin/1482 sos vidcontrol -f fnt-size file-with-wrong-fn o [1996/08/12] docs/1493 dyson incomplete prototypes in man pages for mm o [1996/08/17] kern/1501 vmstat reports impossible avm after start o [1996/08/17] bin/1502 vmstat 'avm' field merges with procs 'w' o [1996/08/17] ports/1504 jmz latex port completely failes o [1996/08/17] kern/1508 sos syscons should protect against useless DD o [1996/08/19] kern/1514 dyson mlock fails on readonly regions o [1996/08/20] kern/1516 dyson vm_fault.c contains dead code or too many o [1996/08/20] ports/1517 adam What is InterViews ??!?! o [1996/08/20] ports/1518 torstenb No man pages in audio/mpegaudio port o [1996/08/21] ports/1520 ports sudo dosn't recognise certain passwords a o [1996/08/21] bin/1523 "cvs update -d -P" prunes unchecked-in di o [1996/08/21] ports/1524 tg New port -- xtem-5.18beta o [1996/08/24] misc/1538 enhanced /etc/security script o [1996/08/27] bin/1547 se ncrcontrol won't work with FAILSAFE kerne o [1996/08/27] bin/1548 ncrcontrol -i queries don't work for mere o [1996/08/27] ports/1549 ports Port submission for gdbtk a [1996/08/28] ports/1550 ports "make install" needs to know how to updat o [1996/08/30] i386/1556 ATAPI CDROM probes ok, but will not 'moun o [1996/08/31] bin/1559 ftpd apparently not recognizing -l or -S o [1996/09/02] misc/1561 sos Wrong key mapping of five keys in german. a [1996/09/04] bin/1565 Moving a file to it's link completely rem o [1996/09/06] bin/1577 mail -f foo does not look in current dire o [1996/09/07] bin/1578 fsck does not honour 'noauto' fs option o [1996/09/08] bin/1589 ftp fails to flush output o [1996/09/10] bin/1597 No support for positional parameters in * o [1996/09/11] bin/1598 tip leaves OPOST set on controlling termi o [1996/09/12] docs/1602 ache /usr/lib/terminfo refered to in man termi o [1996/09/12] bin/1607 unmount fails for a NFS fs mounted withou o [1996/09/14] gnu/1611 groff should use "system-wide" papersize o [1996/09/14] kern/1614 Attempt to mount an NTFS partition causes a [1996/09/16] bin/1621 last char in line stays "$" o [1996/09/16] bin/1623 rpc/auth.h won't compile with -ansi flag o [1996/09/16] misc/1625 jkh 2.1.5 update overwrites root's dot files o [1996/09/17] docs/1630 Addition to handbook concerning MFS kerne f [1996/09/18] kern/1636 mss driver extension to broaden support a [1996/09/18] bin/1642 pkg_install Makefiles could be simplified o [1996/09/19] bin/1649 md5(1) header file makes bad assumption o [1996/09/19] bin/1653 cannot umount the node ending '/' when it o [1996/09/19] kern/1654 In procfs, vattr doesn't contain correct o [1996/09/20] bin/1657 ls(1) output of future mtime o [1996/09/20] kern/1658 ktrace/kdump flaky - corrupted ktrace.out o [1996/09/21] ports/1660 ports Updating of jp-fvwm2-port(-> jp-fvwm2-por o [1996/09/22] bin/1665 telnetd doesn't use gettytab %m %r %v %s o [1996/09/23] i386/1671 s2 map in pcvt isn't ISO 8859-1 and claim o [1996/09/24] bin/1674 strange behaviour of pppd (daemonize, def o [1996/09/27] misc/1686 jkh sysinstall should allow partition size ch o [1996/09/29] kern/1690 apm and sbxvi inappropriately probe as co o [1996/09/29] docs/1691 ppp server doc submission o [1996/09/30] bin/1695 sos moused fails with PS/2 mouse o [1996/09/30] conf/1697 sos rc.i386 missing line for moused o [1996/10/02] misc/1708 monthly login accounting o [1996/10/02] kern/1711 kernel logging of signaled processes shou o [1996/10/02] gnu/1713 mkisofs doesn't match man page in behavio o [1996/10/03] misc/1717 Use of ntohl causes lint to complain o [1996/10/04] bin/1721 /sbin/route incorrectly installs routes w o [1996/10/04] kern/1725 visual config redraws bits of the screen o [1996/10/09] ports/1752 obrien Update of nedit port o [1996/10/11] conf/1777 sysctl called in /etc/netstart before /us o [1996/10/12] bin/1778 locate.updatedb uses /tmp directory. o [1996/10/13] kern/1788 pst netstat gives negative numbers for tcp by o [1996/10/13] misc/1791 syslimits.h does not allow overriding def o [1996/10/13] bin/1793 steve /bin/sh return w/o exitstatus in a functi o [1996/10/14] bin/1804 pkg_create hangs if the packing list has o [1996/10/14] conf/1808 jkh The mount menu for installation fails wit o [1996/10/14] i386/1809 floppy boot code causes reboot of compute o [1996/10/15] kern/1811 sos Patch to correct rows/columns for syscons o [1996/10/16] bin/1827 add support of Glidepoint trackpad "tap/d f [1996/10/17] bin/1831 routed's rdisc mode is installing incorre o [1996/10/18] ports/1834 gpalmer COMMENT may be amusing but is not informa o [1996/10/19] docs/1841 NT boot mgr too Linux centric in FAQ o [1996/10/19] bin/1843 Gdb dumps core upon executing ``help set' o [1996/10/20] docs/1847 new handbook iijppp server section o [1996/10/20] bin/1849 gdb sets library breakpoints on the wrong o [1996/10/20] docs/1851 mpp madvise MADV_FREE manual page clarificati o [1996/10/20] misc/1853 Syscons font mapping semms not to work pr o [1996/10/20] docs/1854 Error in bootparams(5) man page o [1996/10/20] docs/1855 joerg Addition to LINT o [1996/10/21] kern/1859 fddi_input() floods system msg buffer whe o [1996/10/22] kern/1868 system knows it has no keyboard but compl o [1996/10/23] misc/1871 incorrect '===> item' when making world o [1996/10/23] bin/1872 automounter (amd) cannot ls directories w o [1996/10/24] kern/1878 SONY CDU76E IDE/ATAPI CDROM support. f [1996/10/24] bin/1879 fenner rdump fails with "TCP_MAXSEG setsockopt: o [1996/10/24] bin/1881 file(1) misidentifies Sun3/m68k executabl o [1996/10/26] docs/1896 compilation errors in share/doc/psd/19.cu o [1996/10/26] bin/1897 Sendmail 8.8.2 requires /etc/sendmail.cw o [1996/10/27] bin/1904 /usr/bin/su is not careful enough in veri o [1996/10/27] bin/1905 There's a buffer overflow in FreeBSD libc o [1996/10/27] conf/1906 sysinstall did not install bison.simple o o [1996/10/27] misc/1908 FTP install failed DNS lookup o [1996/10/28] ports/1913 ports new port of cgoban-1.6.2 o [1996/10/28] conf/1915 8 bit chars dont work with LC_CTYPE=fi o [1996/10/29] bin/1924 if lpd is not running, lpc will say ``no o [1996/10/30] i386/1931 Mitsumi CDrom works well under 2.1.x, fai o [1996/10/31] ports/1939 ports exodus port doesn't build with new g++-2. o [1996/11/01] bin/1941 wtmp and monthly rotation o [1996/11/01] bin/1943 route(8) args o [1996/11/02] bin/1944 /usr/games/larn fails to create score fil o [1996/11/02] bin/1945 Out of date code/comments in dd o [1996/11/03] i386/1950 Sound driver doesn't encode/decode mu-law o [1996/11/04] i386/1953 syscons savers have no default timeout o [1996/11/04] conf/1957 not all perms of ptys are put back into s o [1996/11/04] gnu/1961 uucp logging files are in /var/spool/uucp o [1996/11/05] bin/1964 In my NIS environment, finger(1) fails. o [1996/11/06] bin/1968 FreeBSD has no rdate(8), here's one o [1996/11/06] bin/1970 csh limtail() bug o [1996/11/09] bin/1985 pkg_delete outputs confusing message when o [1996/11/09] bin/1986 error in lpr(1) argument handling [with f o [1996/11/10] ports/1991 obrien afio-2.4.2 port update o [1996/11/12] ports/1997 obrien initial upload of port for dotfile genera o [1996/11/13] ports/1999 ports Fixed port( version updated): whirlgif o [1996/11/13] kern/2004 route add -link panic o [1996/11/13] bin/2005 Poor command line argument checking and b o [1996/11/14] bin/2008 kerberos tickets from login all have the o [1996/11/14] kern/2015 2.2-960801-SNAP kernel dosn't recognise m o [1996/11/15] kern/2022 Switching from X display to virtual conso o [1996/11/15] ports/2032 jfitz Moved port location: Crack o [1996/11/16] bin/2036 cpio size wraparound o [1996/11/16] ports/2038 ports sshd dies on FreeBSD machines if run as a o [1996/11/16] bin/2040 make world fails after cp -pR of /usr/bin o [1996/11/17] bin/2046 vjcomp problem in iij-ppp o [1996/11/18] ports/2051 obrien HDF library port o [1996/11/19] bin/2061 DEBUG_FLAGS in bsd.lib.mk is broken o [1996/11/19] conf/2063 No file not found message in sysinstall o [1996/11/19] bin/2065 in tzsetup, make USA easier to get to... o [1996/11/19] ports/2066 tg one more port to the graphics subtree o [1996/11/19] misc/2068 Unstable keyboard mappings on the main tt o [1996/11/20] kern/2072 ZIP drive support is available for FreeBS o [1996/11/20] bin/2074 syslog.h with SYSLOG_NAMES defined genera o [1996/11/21] ports/2079 ports New ports supporting AWE sound driver (fo o [1996/11/21] bin/2080 The scanf family doesn't support 'q' modi o [1996/11/21] bin/2081 pings clock is troubled o [1996/11/22] ports/2082 ports ``make -k fetch'' in a ports subdir doesn o [1996/11/22] ports/2084 obrien New Port, Please Commit to CVS tree o [1996/11/22] docs/2087 ifconfig.8 does not document how to remov o [1996/11/22] ports/2088 ports MH `comp -nowhatnowproc' creates the wron o [1996/11/22] bin/2090 clients may bind to FreeBSD ypserv refusi o [1996/11/23] bin/2093 AMD gets sig 11 when /etc/malloc.conf is o [1996/11/24] ports/2096 ports ImageMagick outdated, lzw not supported o [1996/11/24] ports/2097 ports new port of des lib o [1996/11/24] misc/2098 Missing asprintf()/vasprintf() on 2.1.6-R o [1996/11/25] ports/2100 ports New port: VGBZoom o [1996/11/25] ports/2102 ports New freeWAIS-sf port o [1996/11/25] misc/2105 bsd.lib.mk has problems with STRIP and IN o [1996/11/26] bin/2106 Byte order problem in -current routed o [1996/11/26] i386/2108 wcd driver may hang under certain conditi o [1996/11/28] i386/2117 nb8390.com hangs with some BIOS combinati o [1996/11/28] kern/2118 writing to virtual consoles fails to disp o [1996/11/28] bin/2119 mount lies to child about argv0, which ca o [1996/12/01] bin/2133 netstat -s overflows to negative o [1996/12/02] bin/2137 vm statistics are bad o [1996/12/02] kern/2140 FreeBSD leaves EtherExpress 16 net card i o [1996/12/03] ports/2145 ports qpopper bulletin support broken o [1996/12/03] conf/2146 wrong /dev for COM2 during installation v o [1996/12/04] kern/2150 Machine locks when playing .au sound file o [1996/12/04] ports/2151 ports xalarm port submission o [1996/12/04] ports/2152 obrien New port: contool a [1996/12/04] docs/2153 mpp Manual page of bootparams(8) refers to a o [1996/12/04] ports/2154 ports New port submission: Isearch o [1996/12/04] ports/2155 ports New port submission: Lots of Icons o [1996/12/04] ports/2156 ports New port submission: freewais-sf (Correct o [1996/12/05] ports/2162 ports New port: scsh - The Scheme Shell o [1996/12/06] i386/2166 psm driver locks the console o [1996/12/07] bin/2168 A few common protocols missing from /etc/ o [1996/12/07] ports/2169 ports zephyr port does not completely compile o [1996/12/07] bin/2170 fetch in 2.1.5R doesn't keep interrupted o [1996/12/07] ports/2171 ports New port: ftpsearch o [1996/12/07] bin/2172 Request update to getttyent.c & minor add o [1996/12/08] ports/2173 ports top does not compile under FBSD 2.1.6 o [1996/12/08] ports/2182 ports FreeBSD's and X-32's list of locales do n o [1996/12/08] bin/2183 whereis returns environment and database o [1996/12/08] bin/2184 sendmail has lots of trouble with local d o [1996/12/08] misc/2185 add ability to change partition type in l o [1996/12/10] ports/2190 ports need cross-reference to xpdf from X11 por o [1996/12/11] bin/2194 Buglet in 'make world' in -current o [1996/12/12] kern/2199 joerg Got a lots of "Target Busy" messages with o [1996/12/13] ports/2209 ports updated jp-mh ports files o [1996/12/14] kern/2214 File System gets corrupted when mounting o [1996/12/14] bin/2216 Ada specs not being compiled into cc/gcc o [1996/12/15] ports/2220 ports Submitted FreeBSD port of Swig 1.0 o [1996/12/16] ports/2224 ports New port: xbat ( for games category ) o [1996/12/16] bin/2227 FreeBSD does not recognize WD7000-ASC dri o [1996/12/16] ports/2231 ports GNU Chess printing "gets() is unsafe" is o [1996/12/17] i386/2233 emulation o [1996/12/17] i386/2234 fbsdboot.exe does not turn off floppy dri o [1996/12/17] ports/2237 ports New port: FElt 3.01 o [1996/12/17] i386/2239 some interrupts take too long (i.e. BT946 o [1996/12/18] ports/2241 ports eggdrop - A special TCL tool - an IRC Rob o [1996/12/18] misc/2242 Suggest add optional mt blocksize 512 o [1996/12/18] bin/2247 imp getopt should return -1 rather than EOF o [1996/12/19] ports/2251 ports New *almost* port: Scilab o [1996/12/19] ports/2254 tg Update of spice port o [1996/12/20] bin/2260 PPP logins using PAP to Nortel/Shiva syst o [1996/12/21] gnu/2263 info files ending in -1, -2, etc are not o [1996/12/21] ports/2264 ports latex* ports need updating o [1996/12/21] bin/2265 su(1) does not call skeyaccess() 286 problems total. From owner-freebsd-bugs Sun Dec 22 06:38:59 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA05177 for bugs-outgoing; Sun, 22 Dec 1996 06:38:59 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA05158; Sun, 22 Dec 1996 06:38:49 -0800 (PST) Date: Sun, 22 Dec 1996 06:38:49 -0800 (PST) From: Joerg Wunsch Message-Id: <199612221438.GAA05158@freefall.freebsd.org> To: ciaran@aldhfn.aldhfn.org, joerg, freebsd-bugs Subject: Re: bin/2092 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: rlogind not using passwords State-Changed-From-To: open-feedback State-Changed-By: joerg State-Changed-When: Sun Dec 22 15:10:13 MET 1996 State-Changed-Why: The behaviour described in this PR cannot be seen on any other FreeBSD system around. Please make sure that your sysstem has not been hacked. Try adding some debugging syslog() lines to rlogind, to make sure what's happening. REplace the function do_rlogin() in /usr/src/libexec/rlogind/rlogind.c with: int do_rlogin(dest) struct sockaddr_in *dest; { int rv; getstr(rusername, sizeof(rusername), "remuser too long"); getstr(lusername, sizeof(lusername), "locuser too long"); getstr(term+ENVSIZE, sizeof(term)-ENVSIZE, "Terminal type too long"); pwd = getpwnam(lusername); if (pwd == NULL) return (-1); /* XXX why don't we syslog() failure? */ rv = (iruserok(dest->sin_addr.s_addr, pwd->pw_uid == 0, rusername, lusername)); syslog(LOG_DEBUG, "do_rlogin(): from %s, ruser %s, luser %s, iruserok(): %d", inet_ntoa(dest->sin_addr.s_addr), rusername, lusername, rv); return (rv); } Make sure to catch the syslog output somewhere, prefarably on another host. You might want to make the logging conditional on some username or IP address. From owner-freebsd-bugs Sun Dec 22 08:50:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA10553 for bugs-outgoing; Sun, 22 Dec 1996 08:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA10541; Sun, 22 Dec 1996 08:50:01 -0800 (PST) Date: Sun, 22 Dec 1996 08:50:01 -0800 (PST) Message-Id: <199612221650.IAA10541@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bradley Dunn Subject: Re: bin/2265: su(1) does not call skeyaccess() Reply-To: Bradley Dunn Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2265; it has been noted by GNATS. From: Bradley Dunn To: Joerg Wunsch Cc: FreeBSD-gnats-submit@freebsd.org, Guido van Rooij Subject: Re: bin/2265: su(1) does not call skeyaccess() Date: Sun, 22 Dec 1996 11:41:41 -0500 () On Sun, 22 Dec 1996, J Wunsch wrote: > As bradley@dunn.org wrote: > > > >Description: > > > > su(1) does not call skeyaccess() (from libskey), thus rendering the > > controls in /etc/skey.access useless. > > Well, it rather seems like it was deliberately omitted, as opposed to > forgotten. A user running su(1) has already been authenticated to the > system, and _that's_ where skey.access should hit. Someone running su(1) has already been authenticated, but as someone else. I think that if one puts a "deny user foo" in skey.access, the intention is that foo should not be able to gain access to the system using foo's UNIX password. With the current su, foo has a way of gaining access with his UNIX password, even though it is desired that he not be able to. -BD From owner-freebsd-bugs Sun Dec 22 09:10:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA11763 for bugs-outgoing; Sun, 22 Dec 1996 09:10:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA11757; Sun, 22 Dec 1996 09:10:02 -0800 (PST) Resent-Date: Sun, 22 Dec 1996 09:10:02 -0800 (PST) Resent-Message-Id: <199612221710.JAA11757@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.JAA11488;Sun; (8.8.4/8.8.4);, 22 Dec 1996 09:07:55.-0800 (PST) Message-Id: <199612221707.JAA11488@freefall.freebsd.org> Date: Sun, 22 Dec 1996 09:07:55 -0800 (PST) From: m230761@ingenieria.ingsala.unal.edu.co To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: docs/2266: Bad HTML format in online documentation Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2266 >Category: docs >Synopsis: Bad HTML format in online documentation >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 22 09:10:01 PST 1996 >Last-Modified: >Originator: Pedro Giffuni S. >Organization: Universidad Nacional de Colombia >Release: 2.1.5-Release >Environment: >Description: The "porting guidelines" page that came with the release have bad html format, The problem may be present in other documents, and may persist in the actual documentation. >How-To-Repeat: Use of the Arena browser on the mentioned document, will report the lack of standard conformance. >Fix: If the faulty tag(s) are dificult to find, Linux's asWedit will report the problem. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sun Dec 22 09:31:29 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA13111 for bugs-outgoing; Sun, 22 Dec 1996 09:31:29 -0800 (PST) Received: (from jkh@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA13063; Sun, 22 Dec 1996 09:31:24 -0800 (PST) Date: Sun, 22 Dec 1996 09:31:24 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199612221731.JAA13063@freefall.freebsd.org> To: jkh, freebsd-bugs, wollman Subject: Re: kern/1689 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: TCP extensions throttles distant connections Responsible-Changed-From-To: freebsd-bugs->wollman Responsible-Changed-By: jkh Responsible-Changed-When: Sun Dec 22 09:31:09 PST 1996 Responsible-Changed-Why: This is actually one for Garrett. From owner-freebsd-bugs Sun Dec 22 09:40:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA13697 for bugs-outgoing; Sun, 22 Dec 1996 09:40:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA13691; Sun, 22 Dec 1996 09:40:03 -0800 (PST) Resent-Date: Sun, 22 Dec 1996 09:40:03 -0800 (PST) Resent-Message-Id: <199612221740.JAA13691@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, vitjok@fasts.com Received: from server.fasts.com (root@server.fasts.com [199.125.215.66]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA13581 for ; Sun, 22 Dec 1996 09:37:27 -0800 (PST) Received: by fasts.com id <115-224>; Sun, 22 Dec 1996 19:37:21 +0000 Message-Id: <96Dec22.193721+0000_.115-224+1@fasts.com> Date: Sun, 22 Dec 1996 19:37:20 +0000 From: vitjok@fasts.com Reply-To: vitjok@fasts.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: i386/2267: bug in syscons/moused/screen savers? Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2267 >Category: i386 >Synopsis: mouse motions do not exit from screen saver >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 22 09:40:01 PST 1996 >Last-Modified: >Originator: Victor Rotanov >Organization: FASTS Ltd. >Release: FreeBSD 2.2-RELEASE i386 >Environment: nothing special >Description: Screen saver does not go away when you move mouse and moused is installed. >How-To-Repeat: Install moused and screensaver, wait until screen saver appears, them move mouse. >Fix: Don't know. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sun Dec 22 15:41:27 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA26476 for bugs-outgoing; Sun, 22 Dec 1996 15:41:27 -0800 (PST) Received: from pv324.pv.reshsg.uci.edu (pv324.pv.reshsg.uci.edu [128.195.182.99]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id PAA26471 for ; Sun, 22 Dec 1996 15:41:25 -0800 (PST) Received: (from bpark@localhost) by pv324.pv.reshsg.uci.edu (8.8.3/8.8.3) id PAA00566; Sun, 22 Dec 1996 15:42:59 -0800 (PST) Date: Sun, 22 Dec 1996 15:42:59 -0800 (PST) From: "Brian S. Park" To: bugs@freebsd.org Subject: sound problems. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have a SoundBlaster 32PnP(not AWE), and my kerner compiled with following options : # controller snd0 device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr options "SBC_IRQ=5" device sbxvi0 at isa? drq 5 device sbmidi0 at isa? port 0x330 device opl0 at isa? port 0x388 device joy0 at isa? port "IO_GAME" It compiled fine, and the following message is when I boot up, which doesn't indicate a problem. Dec 22 14:34:55 pv324 /kernel: sb0 at 0x220 irq 5 drq 1 on isa Dec 22 14:34:55 pv324 /kernel: sb0: Dec 22 14:34:55 pv324 /kernel: sbxvi0 at 0x0 drq 5 on isa Dec 22 14:34:56 pv324 /kernel: sbxvo0: Dec 22 14:34:56 pv324 /kernel: sbmidi0 at 0x330 on isa Dec 22 14:34:56 pv324 /kernel: Dec 22 14:34:56 pv324 /kernel: opl0 at 0x388 on isa Dec 22 14:34:56 pv324 /kernel: opl0: Dec 22 14:34:56 pv324 /kernel: joy0 at 0x201 on isa Dec 22 14:34:56 pv324 /kernel: joy0: joystick Dec 22 14:34:53 pv324 lpd[97]: restarted Yet, I do not get any kind of sound, not even a beep, out of my PC, I have a speaker plugged in. Nothing w/ the speaker disconnected from the PC. Now, everything works fine under window95. Do you have any ideas? Thank you for your help --Brian From owner-freebsd-bugs Sun Dec 22 15:51:24 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA26951 for bugs-outgoing; Sun, 22 Dec 1996 15:51:24 -0800 (PST) Received: from meter.eng.uci.edu (root@meter.eng.uci.edu [128.200.85.3]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id PAA26946 for ; Sun, 22 Dec 1996 15:51:22 -0800 (PST) Received: from newport.ece.uci.edu by meter.eng.uci.edu (8.8.3) id PAA20635; Sun, 22 Dec 1996 15:48:09 -0800 (PST) Received: from localhost by newport.ece.uci.edu (8.8.3) id PAA22156; Sun, 22 Dec 1996 15:51:18 -0800 (PST) Date: Sun, 22 Dec 1996 15:51:18 -0800 (PST) From: "Brian S. Park" To: bugs@freebsd.org Subject: NEC 8X SCSI CD-ROM Drive problems Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have NEC 8x SCSI-2 CD-ROM connected to ADAPTEC U/W 2940 adapter. I can mount and read from a data CD w/o a problem. However, for AUDIO CDs, I have a problem. I tried both WorkMan and Xcdplayer, and I cannot play the audio CD. Here are the messages I copied from /var/log/messages. Dec 22 15:47:27 pv324 /kernel: cd0(ahc0:3:0): timed out in command phase, SCSISIGI == 0x84 Dec 22 15:47:28 pv324 /kernel: cd0(ahc0:3:0): asserted ATN - device reset in message buffer Dec 22 15:47:29 pv324 /kernel: cd0(ahc0:3:0): timed out in dataout phase, SCSISIGI == 0x0 Dec 22 15:47:29 pv324 /kernel: ahc0: Issued Channel A Bus Reset #1. 1 SCBs aborted Dec 22 15:47:29 pv324 /kernel: sd0(ahc0:4:0): UNIT ATTENTION asc:29,0 Dec 22 15:47:29 pv324 /kernel: sd0(ahc0:4:0): Power on, reset, or bus device reset occurred Dec 22 15:47:29 pv324 /kernel: , retries:4 Dec 22 15:47:29 pv324 /kernel: ahc0:A:3: refuses WIDE negotiation. Using 8bit transfers Dec 22 15:47:29 pv324 /kernel: cd0(ahc0:3:0): UNIT ATTENTION asc:29,0 Dec 22 15:47:29 pv324 /kernel: cd0(ahc0:3:0): Power on, reset, or bus device reset occurred THank you for your help, Brian From owner-freebsd-bugs Sun Dec 22 16:20:53 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA28133 for bugs-outgoing; Sun, 22 Dec 1996 16:20:53 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA28111; Sun, 22 Dec 1996 16:20:50 -0800 (PST) Date: Sun, 22 Dec 1996 16:20:50 -0800 (PST) From: Mike Pritchard Message-Id: <199612230020.QAA28111@freefall.freebsd.org> To: jared@vt.edu, mpp, freebsd-bugs Subject: Re: docs/1854 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Error in bootparams(5) man page State-Changed-From-To: open-closed State-Changed-By: mpp State-Changed-When: Sun Dec 22 16:20:11 PST 1996 State-Changed-Why: Fixed in rev 1.3 of bootparams.5 on 11/25/96. From owner-freebsd-bugs Sun Dec 22 16:33:19 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA28864 for bugs-outgoing; Sun, 22 Dec 1996 16:33:19 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA28826; Sun, 22 Dec 1996 16:32:58 -0800 (PST) Date: Sun, 22 Dec 1996 16:32:58 -0800 (PST) From: Joerg Wunsch Message-Id: <199612230032.QAA28826@freefall.freebsd.org> To: gurney_j@efn.org, joerg, freebsd-bugs Subject: Re: conf/1957 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: not all perms of ptys are put back into shape on boot State-Changed-From-To: open-closed State-Changed-By: joerg State-Changed-When: Mon Dec 23 01:32:29 MET 1996 State-Changed-Why: Suggested fix applied in rev 1.108 of /etc/rc. From owner-freebsd-bugs Sun Dec 22 16:41:32 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA29359 for bugs-outgoing; Sun, 22 Dec 1996 16:41:32 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id QAA29354 for ; Sun, 22 Dec 1996 16:41:27 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id BAA20007; Mon, 23 Dec 1996 01:39:04 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id BAA05773; Mon, 23 Dec 1996 01:39:02 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id BAA20976; Mon, 23 Dec 1996 01:27:05 +0100 (MET) From: J Wunsch Message-Id: <199612230027.BAA20976@uriah.heep.sax.de> Subject: Re: NEC 8X SCSI CD-ROM Drive problems To: bpark@ece.uci.edu (Brian S. Park) Date: Mon, 23 Dec 1996 01:27:04 +0100 (MET) Cc: bugs@FreeBSD.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Brian S. Park" at "Dec 22, 96 03:51:18 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Brian S. Park wrote: Great that you've fixed your return address this time. My previous answer to your previous almost identical question bounced, as well as an attempt to Cc your postmaster. > I have NEC 8x SCSI-2 CD-ROM connected to ADAPTEC U/W 2940 adapter. > > I can mount and read from a data CD w/o a problem. However, for > AUDIO CDs, I have a problem. I tried both WorkMan and Xcdplayer, and > I cannot play the audio CD. Here are the messages I copied from > /var/log/messages. > > Dec 22 15:47:27 pv324 /kernel: cd0(ahc0:3:0): timed out in command phase, > SCSISIGI == 0x84 Well, no, it's _almost_ identical. This time, you've left out the most important of all the messages. There's been an ``Illegal mode for this track'' in your previous posting. If this is indeed the response of your drive to a request of playing an audio CD, the drive must be faulty. This message is supposed to be generated whenever somebody tries a PLAY command on a data track, or a READ command on an audio track. If this message isn't the true source of your problems, please also state which version of FreeBSD you're using. Too many things have been changing in the ahc driver over time, some of the bugs are probably already known (and being worked on). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Sun Dec 22 17:42:30 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA01671 for bugs-outgoing; Sun, 22 Dec 1996 17:42:30 -0800 (PST) Received: from meter.eng.uci.edu (root@meter.eng.uci.edu [128.200.85.3]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id RAA01666 for ; Sun, 22 Dec 1996 17:42:28 -0800 (PST) Received: from newport.ece.uci.edu by meter.eng.uci.edu (8.8.3) id RAA21707; Sun, 22 Dec 1996 17:39:15 -0800 (PST) Received: from localhost by newport.ece.uci.edu (8.8.3) id RAA23020; Sun, 22 Dec 1996 17:42:25 -0800 (PST) Date: Sun, 22 Dec 1996 17:42:24 -0800 (PST) From: "Brian S. Park" To: bugs@freebsd.org Subject: sound problems. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk i am sorry if I am sounding redundant, but I had a problem with my From: address. I just wanted to make sure I got the reply this time. >>> I have a SoundBlaster 32PnP(not AWE), and my kerner compiled with following options : # controller snd0 device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr options "SBC_IRQ=5" device sbxvi0 at isa? drq 5 device sbmidi0 at isa? port 0x330 device opl0 at isa? port 0x388 device joy0 at isa? port "IO_GAME" It compiled fine, and the following message is when I boot up, which doesn't indicate a problem. Dec 22 14:34:55 pv324 /kernel: sb0 at 0x220 irq 5 drq 1 on isa Dec 22 14:34:55 pv324 /kernel: sb0: Dec 22 14:34:55 pv324 /kernel: sbxvi0 at 0x0 drq 5 on isa Dec 22 14:34:56 pv324 /kernel: sbxvo0: Dec 22 14:34:56 pv324 /kernel: sbmidi0 at 0x330 on isa Dec 22 14:34:56 pv324 /kernel: Dec 22 14:34:56 pv324 /kernel: opl0 at 0x388 on isa Dec 22 14:34:56 pv324 /kernel: opl0: Dec 22 14:34:56 pv324 /kernel: joy0 at 0x201 on isa Dec 22 14:34:56 pv324 /kernel: joy0: joystick Dec 22 14:34:53 pv324 lpd[97]: restarted Yet, I do not get any kind of sound, not even a beep, out of my PC, I have a speaker plugged in and powered on. Now, everything works fine under window95. Do you have any ideas? Thank you for your help --Brian From owner-freebsd-bugs Sun Dec 22 17:54:19 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA02418 for bugs-outgoing; Sun, 22 Dec 1996 17:54:19 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA02399; Sun, 22 Dec 1996 17:54:14 -0800 (PST) Date: Sun, 22 Dec 1996 17:54:14 -0800 (PST) From: Joerg Wunsch Message-Id: <199612230154.RAA02399@freefall.freebsd.org> To: vak@crox.net.kiae.su, joerg, freebsd-bugs Subject: Re: kern/1065 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: wt could crash reading short blocks State-Changed-From-To: feedback-closed State-Changed-By: joerg State-Changed-When: Mon Dec 23 02:53:22 MET 1996 State-Changed-Why: Suggested fix applied in rev 1.36 of wt.c. From owner-freebsd-bugs Sun Dec 22 18:02:00 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA03073 for bugs-outgoing; Sun, 22 Dec 1996 18:02:00 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA03060 for ; Sun, 22 Dec 1996 18:01:56 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.4/8.6.9) with ESMTP id SAA12039; Sun, 22 Dec 1996 18:01:48 -0800 (PST) To: "Brian S. Park" cc: bugs@freebsd.org Subject: Re: sound problems. In-reply-to: Your message of "Sun, 22 Dec 1996 15:42:59 PST." Date: Sun, 22 Dec 1996 18:01:48 -0800 Message-ID: <12036.851306508@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I have a SoundBlaster 32PnP(not AWE), and my kerner compiled with > following options : This card is not yet supported, sorry! No ETA on that support, either. Jordan From owner-freebsd-bugs Sun Dec 22 18:30:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA05351 for bugs-outgoing; Sun, 22 Dec 1996 18:30:03 -0800 (PST) Received: from mirage.nlink.com.br (mirage.nlink.com.br [200.238.120.3]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id SAA05300 for ; Sun, 22 Dec 1996 18:29:58 -0800 (PST) Received: (from luiz@localhost) by mirage.nlink.com.br (8.6.12/8.6.12) id WAA02600; Sun, 22 Dec 1996 22:08:51 -0200 Date: Sun, 22 Dec 1996 22:08:51 -0200 (EDT) From: Luiz de Barros To: bugs@freebsd.org, amir@comtrol.com Subject: FreeBSD2.1.5-RELEASE + 2 comtrol rocketport16 keeps crashing. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Dear FreeBSD Experts, I am having a problem with our system: A 486-DX4-100 32MB RAM running FreeBSD2.1.5-RELEASE and working as a Terminal Server for out 22 dial-in modems. By every 24 hours period the system crashes, simply rebooting without logging anything to the system log files. Is there any known bug in the new Comtrol Driver? Any help is welcome. Regards, Luiz From owner-freebsd-bugs Sun Dec 22 21:30:06 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA17591 for bugs-outgoing; Sun, 22 Dec 1996 21:30:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA17583; Sun, 22 Dec 1996 21:30:03 -0800 (PST) Resent-Date: Sun, 22 Dec 1996 21:30:03 -0800 (PST) Resent-Message-Id: <199612230530.VAA17583@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.VAA17402;Sun; (8.8.4/8.8.4);, 22 Dec 1996 21:26:26.-0800 (PST) Message-Id: <199612230526.VAA17402@freefall.freebsd.org> Date: Sun, 22 Dec 1996 21:26:26 -0800 (PST) From: george@cia-g.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: kern/2270: Hayes ESP serial card locks system as of 12/01 kernel. Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2270 >Category: kern >Synopsis: Hayes ESP serial card locks system as of 12/01 kernel. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 22 21:30:02 PST 1996 >Last-Modified: >Originator: George Simunovich >Organization: >Release: 2.2 Release Branch >Environment: FreeBSD 3.0-CURRENT (<-as of right now. I don't think I'm getting the versions of the files I'm trying to with cvs after this problem showed up.) >Description: Accessing the serial port device for the Hayes ESP card, /dev/cuaa2, the system completely locks up and forced to reset. >How-To-Repeat: When the line "modem d a 2" in rc.serial is run at start up, the system locks up tight. Commenting out that line and after the system completly boots, running "cu -l /dev/cuaa2" also causes the system to completly lock up. This is happening with all the kernels I've compiled using the kernel sources after and including 12/01, "cvs update -D 12/01/1996". The kernel of 11/30 apparently works fine. I noticed a lot of changes to the file "i386/isa/sio.c" dated 11/30, "cvs log sio.c". >Fix: Fix unknown, running kernel from sources as of date 11/30. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Dec 23 03:50:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA00140 for bugs-outgoing; Mon, 23 Dec 1996 03:50:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA00134; Mon, 23 Dec 1996 03:50:01 -0800 (PST) Date: Mon, 23 Dec 1996 03:50:01 -0800 (PST) Message-Id: <199612231150.DAA00134@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 kernel. Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2270; it has been noted by GNATS. From: Bruce Evans To: freebsd-gnats-submit@freebsd.org, george@cia-g.com Cc: Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 kernel. Date: Mon, 23 Dec 1996 22:43:24 +1100 >>Description: >Accessing the serial port device for the Hayes ESP card, /dev/cuaa2, >the system completely locks up and forced to reset. >>How-To-Repeat: >When the line "modem d a 2" in rc.serial is run at start up, the >system locks up tight. Commenting out that line and after the >system completly boots, running "cu -l /dev/cuaa2" also causes the >system to completly lock up. Someone else reported that there is a problem with the ESP only(?) when the port is closed. >This is happening with all the kernels I've compiled using the >kernel sources after and including 12/01, "cvs update -D 12/01/1996". >The kernel of 11/30 apparently works fine. The sio driver now assumes that the Transmitter Holding Register Empty (THRE) bit works normally in more cases. If it doesn't work, then sioclose() might hang if there is output in progress. The system shouldn't hang, but if the hang is during early execution of rc.serial, then it would be hard to tell the difference. Try setting a timeout of N seconds using `comcontrol /dev/cuaa2 drainwait N' very early (before anything else in rc.serial). I'm not sure if this is the problem - /etc/rc.serial shouldn't generate any output. If it is, then THRE might fail because the UART is doing flow control that the driver doesn't know about. Bruce From owner-freebsd-bugs Mon Dec 23 05:20:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA03664 for bugs-outgoing; Mon, 23 Dec 1996 05:20:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA03658; Mon, 23 Dec 1996 05:20:03 -0800 (PST) Resent-Date: Mon, 23 Dec 1996 05:20:03 -0800 (PST) Resent-Message-Id: <199612231320.FAA03658@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, hans@brandinnovators.com Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id FAA03299 for ; Mon, 23 Dec 1996 05:11:51 -0800 (PST) Received: from truk.brandinnovators.com (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 9731 on Mon, 23 Dec 1996 14:04:20 +0100; id OAA09731 efrom: hans@truk.brandinnovators.com; eto: FreeBSD-gnats-submit@freebsd.org Received: by truk.brandinnovators.com (8.7.5/BI96070101) for <> id NAA01354; Mon, 23 Dec 1996 13:59:06 GMT Message-Id: <199612231359.NAA01354@truk.brandinnovators.com> Date: Mon, 23 Dec 1996 13:59:06 GMT From: hans@brandinnovators.com (Hans Zuidam) Reply-To: hans@brandinnovators.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/2271: FIONREAD in if_tun.c wrong Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2271 >Category: kern >Synopsis: FIONREAD on tunnel device returns incorrect value. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 23 05:20:01 PST 1996 >Last-Modified: >Originator: Hans Zuidam >Organization: Brand Innovators B.V. >Release: FreeBSD 2.1.5-RELEASE i386 >Environment: tunnel device configured >Description: When doing a FIONREAD ioctl on the tunnel device, it returns the value of m_len, while it should return the value of m_pkthdr.len (if M_PKTHDR is set.) >How-To-Repeat: Using a propriatary TCP/IP stack it was discovered that large TCP packets would not be read correctly. The FIONREAD would report that there were 40 bytes in the packet, while there were actually many more. Note: none of the programs supplied with FreeBSD that use the tunnel device, use FIONREAD. All request as much as possible from a read. >Fix: Workaround by doing MAXINT reads (or something similar...) on a /dev/tun. Below is a patch which is believed to be correct. *** sys.org/net/if_tun.c Fri Dec 20 15:20:00 1996 --- sys/net/if_tun.c Mon Dec 23 09:51:22 1996 *************** *** 418,425 **** break; case FIONREAD: s = splimp(); ! if (tp->tun_if.if_snd.ifq_head) ! *(int *)data = tp->tun_if.if_snd.ifq_head->m_len; else *(int *)data = 0; splx(s); --- 418,429 ---- break; case FIONREAD: s = splimp(); ! if (tp->tun_if.if_snd.ifq_head) { ! if (tp->tun_if.if_snd.ifq_head->m_flags & M_PKTHDR) ! *(int *)data = tp->tun_if.if_snd.ifq_head->m_pkthdr.len; ! else ! *(int *)data = tp->tun_if.if_snd.ifq_head->m_len; ! } else *(int *)data = 0; splx(s); >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Dec 23 06:14:46 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA05366 for bugs-outgoing; Mon, 23 Dec 1996 06:14:46 -0800 (PST) Received: from xkis.kis.ru (root@xkis.kis.ru [194.87.66.200]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id GAA05348 for ; Mon, 23 Dec 1996 06:14:34 -0800 (PST) Received: from localhost (dv@localhost) by xkis.kis.ru (8.8.3/8.8.3) with SMTP id RAA10354 for ; Mon, 23 Dec 1996 17:00:43 +0300 (MSK) Date: Mon, 23 Dec 1996 17:00:43 +0300 (MSK) From: Dmitry Valdov To: freebsd-bugs@freebsd.org Subject: scsi streamer hang machine while booting if tape inserted. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello! If there is tape in SCSI streamer when I rebooting machine it hangs on streamer probe with 'debug aha0 called'. The problem appears in FreeBSD 1.1.5.1-2.1.5. I've not tried 2.1.6 and -current. When there is not tape in drive it boots normal with 'ST0 ... drive empty' message. I've tried it on Adaptec AHA1542 & Adaptec AHA 2940 controllers. Dmitry. From owner-freebsd-bugs Mon Dec 23 07:10:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA06959 for bugs-outgoing; Mon, 23 Dec 1996 07:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA06953; Mon, 23 Dec 1996 07:10:02 -0800 (PST) Resent-Date: Mon, 23 Dec 1996 07:10:02 -0800 (PST) Resent-Message-Id: <199612231510.HAA06953@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.HAA06812;Mon; (8.8.4/8.8.4);, 23 Dec 1996 07:04:40.-0800 (PST) Message-Id: <199612231504.HAA06812@freefall.freebsd.org> Date: Mon, 23 Dec 1996 07:04:40 -0800 (PST) From: ROBERT_PAPP@Non-Hp-Hungary-om1.om.hp.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: conf/2272: WRITE FAILURE ON TRANSFER Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2272 >Category: conf >Synopsis: WRITE FAILURE ON TRANSFER >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 23 07:10:01 PST 1996 >Last-Modified: >Originator: Robert Papp >Organization: Technical University of Budapest, Hungary >Release: 2.0.5 >Environment: Intel 486 sx25 with Quantum Hdd-s (120Mb and 1024 Mb) 8Mb Ram >Description: When installing FreeBSD at the 9th of 69 binaries the system says: WRITE FAILURE ON TRANSFER >How-To-Repeat: I just keep on installing it... >Fix: No idea. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Dec 23 09:23:46 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA10801 for bugs-outgoing; Mon, 23 Dec 1996 09:23:46 -0800 (PST) Received: (from jkh@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA10782; Mon, 23 Dec 1996 09:23:41 -0800 (PST) Date: Mon, 23 Dec 1996 09:23:41 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199612231723.JAA10782@freefall.freebsd.org> To: ROBERT_PAPP@Non-Hp-Hungary-om1.om.hp.com, jkh, freebsd-bugs Subject: Re: conf/2272 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: WRITE FAILURE ON TRANSFER State-Changed-From-To: open-closed State-Changed-By: jkh State-Changed-When: Mon Dec 23 09:22:39 PST 1996 State-Changed-Why: The user does not state which type of installation he used, but I will assume it was either from a DOS partition or an IDE CDROM, both of which are known rogues in 2.0.5 (but have been substantially fixed in 2.2). If this is not the case, please reopen the PR, otherwise please upgrade. :-) From owner-freebsd-bugs Mon Dec 23 10:22:11 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA13381 for bugs-outgoing; Mon, 23 Dec 1996 10:22:11 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id KAA13373 for ; Mon, 23 Dec 1996 10:22:05 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id TAA04818; Mon, 23 Dec 1996 19:21:58 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA19243; Mon, 23 Dec 1996 19:21:58 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id TAA05161; Mon, 23 Dec 1996 19:19:28 +0100 (MET) From: J Wunsch Message-Id: <199612231819.TAA05161@uriah.heep.sax.de> Subject: Re: scsi streamer hang machine while booting if tape inserted. To: dv@kis.ru (Dmitry Valdov) Date: Mon, 23 Dec 1996 19:19:28 +0100 (MET) Cc: freebsd-bugs@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Dmitry Valdov at "Dec 23, 96 05:00:43 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Dmitry Valdov wrote: > If there is tape in SCSI streamer when I rebooting machine it hangs on > streamer probe with 'debug aha0 called'. > I've tried it on Adaptec AHA1542 & Adaptec AHA 2940 controllers. What streamer? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Mon Dec 23 10:34:22 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA14063 for bugs-outgoing; Mon, 23 Dec 1996 10:34:22 -0800 (PST) Received: from xkis.kis.ru (root@xkis.kis.ru [194.87.66.200]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id KAA14047 for ; Mon, 23 Dec 1996 10:34:03 -0800 (PST) Received: from localhost (dv@localhost) by xkis.kis.ru (8.8.3/8.8.3) with SMTP id VAA16117; Mon, 23 Dec 1996 21:19:21 +0300 (MSK) Date: Mon, 23 Dec 1996 21:19:21 +0300 (MSK) From: Dmitry Valdov To: Joerg Wunsch cc: freebsd-bugs@freebsd.org Subject: Re: scsi streamer hang machine while booting if tape inserted. In-Reply-To: <199612231819.TAA05161@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 23 Dec 1996, J Wunsch wrote: > Date: Mon, 23 Dec 1996 19:19:28 +0100 (MET) > From: J Wunsch > Reply-To: Joerg Wunsch > To: Dmitry Valdov > Cc: freebsd-bugs@freebsd.org > Subject: Re: scsi streamer hang machine while booting if tape inserted. > > As Dmitry Valdov wrote: > > > If there is tape in SCSI streamer when I rebooting machine it hangs on > > streamer probe with 'debug aha0 called'. > > > I've tried it on Adaptec AHA1542 & Adaptec AHA 2940 controllers. > > What streamer? > I don't know. There is no any label on it. :( It is old model. Dmitry. From owner-freebsd-bugs Mon Dec 23 10:56:16 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA15366 for bugs-outgoing; Mon, 23 Dec 1996 10:56:16 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA15333; Mon, 23 Dec 1996 10:56:03 -0800 (PST) Date: Mon, 23 Dec 1996 10:56:03 -0800 (PST) From: Joerg Wunsch Message-Id: <199612231856.KAA15333@freefall.freebsd.org> To: uhclem@nemesis.lonestar.org, joerg, freebsd-bugs Subject: Re: bin/2183 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: whereis returns environment and database errors - FDIV046 State-Changed-From-To: open-closed State-Changed-By: joerg State-Changed-When: Mon Dec 23 19:55:39 MET 1996 State-Changed-Why: Fixed in rev 1.2 of whereis.pl. From owner-freebsd-bugs Mon Dec 23 11:00:09 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA15867 for bugs-outgoing; Mon, 23 Dec 1996 11:00:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA15853; Mon, 23 Dec 1996 11:00:05 -0800 (PST) Date: Mon, 23 Dec 1996 11:00:05 -0800 (PST) Message-Id: <199612231900.LAA15853@freefall.freebsd.org> To: freebsd-bugs Cc: From: J Wunsch Subject: Re: bin/2183: whereis returns environment and database errors - FDIV046 Reply-To: J Wunsch Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2183; it has been noted by GNATS. From: J Wunsch To: uhclem@nemesis.lonestar.org Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/2183: whereis returns environment and database errors - FDIV046 Date: Mon, 23 Dec 1996 19:49:20 +0100 (MET) As uhclem@nemesis.lonestar.org wrote: > If you type whereis pkg_add, > you get: > (Warning: MANPATH emvironment variable set) > database too small: /var/db/locate.database > pkg_add: /usr/sbin/pkg_add /usr/share/man/man1/pkg_add.1.gz > > MANPATH is defined in /root/.login, spread over two setenv commands. ...with the Interviews stuff being really silly there. > Doing an unsetenv MANPATH just generates more error messages when > the whereis command is performed. That's surprising, since it's just what i'm going to do now. The error message rather uncovered a logico in whereis, since the call to manpath(1) was supposed to return the system's default manpath, not the user's setting (which is considered later anyway). I've fixed this to match my original intention. > The database complaint may be due to something not being correctly > installed or initialized during the install process. The system has > been running for about 24 hours (long enough for a 'make world' to run). The database is being rebuilt once a week in the regular distribution. locate(1) is only consulted if the source hasn't been found elsewhere, since it can take much longer than perusing a few well-known source dirs. I'm not sure whether it'd not be better to leave the warning there, but it's fairly easy to drop locate's stderr to /dev/null, so i'm doing this right now. Either way, the intended information could not be obtained anyway, so what gives. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Mon Dec 23 11:06:29 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA16366 for bugs-outgoing; Mon, 23 Dec 1996 11:06:29 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA16344; Mon, 23 Dec 1996 11:06:15 -0800 (PST) Date: Mon, 23 Dec 1996 11:06:15 -0800 (PST) From: Joerg Wunsch Message-Id: <199612231906.LAA16344@freefall.freebsd.org> To: andreas@klemm.gtn.com, joerg, freebsd-bugs Subject: Re: kern/1989 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: dump(8) fails to dump if tagged command queuing is enabled State-Changed-From-To: open-feedback State-Changed-By: joerg State-Changed-When: Mon Dec 23 20:04:30 MET 1996 State-Changed-Why: (Note: i've made this PR non-conifential, since it's nothing security-related or any other kind of confidential information.) Please confirm: does the problem still exist with the recent driver? From owner-freebsd-bugs Mon Dec 23 11:08:43 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA16504 for bugs-outgoing; Mon, 23 Dec 1996 11:08:43 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA16483; Mon, 23 Dec 1996 11:08:34 -0800 (PST) Date: Mon, 23 Dec 1996 11:08:34 -0800 (PST) From: Joerg Wunsch Message-Id: <199612231908.LAA16483@freefall.freebsd.org> To: jkh@time.cdrom.com, joerg, freebsd-bugs Subject: Re: bin/1947 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Something is really hosed with the passwd command, or something State-Changed-From-To: open-feedback State-Changed-By: joerg State-Changed-When: Mon Dec 23 20:07:04 MET 1996 State-Changed-Why: Please confirm: does this PR still apply? From owner-freebsd-bugs Mon Dec 23 11:10:24 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA16683 for bugs-outgoing; Mon, 23 Dec 1996 11:10:24 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA16601; Mon, 23 Dec 1996 11:09:43 -0800 (PST) Date: Mon, 23 Dec 1996 11:09:43 -0800 (PST) From: Joerg Wunsch Message-Id: <199612231909.LAA16601@freefall.freebsd.org> To: shanee@rabbit.augusta.de, joerg, freebsd-bugs Subject: Re: docs/2077 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Error in /usr/share/doc/handbook/ (src-cur.2436.gz) State-Changed-From-To: open-feedback State-Changed-By: joerg State-Changed-When: Mon Dec 23 20:08:58 MET 1996 State-Changed-Why: (Note: moved away from being `confidential'.) Please confirm: does this PR still apply? From owner-freebsd-bugs Mon Dec 23 11:11:01 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA16795 for bugs-outgoing; Mon, 23 Dec 1996 11:11:01 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA16745; Mon, 23 Dec 1996 11:10:46 -0800 (PST) Date: Mon, 23 Dec 1996 11:10:46 -0800 (PST) From: Joerg Wunsch Message-Id: <199612231910.LAA16745@freefall.freebsd.org> To: luigi@iet.unipi.it, joerg, freebsd-bugs Subject: Re: misc/1738 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Install floppy returns random geometry with 2GB IDE drive State-Changed-From-To: open-feedback State-Changed-By: joerg State-Changed-When: Mon Dec 23 20:10:01 MET 1996 State-Changed-Why: (Made non-confidential.) Please confirm: does this PR still apply? From owner-freebsd-bugs Mon Dec 23 11:17:13 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA17368 for bugs-outgoing; Mon, 23 Dec 1996 11:17:13 -0800 (PST) Received: (from jkh@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA17343; Mon, 23 Dec 1996 11:17:10 -0800 (PST) Date: Mon, 23 Dec 1996 11:17:10 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199612231917.LAA17343@freefall.freebsd.org> To: jkh@time.cdrom.com, jkh, freebsd-bugs Subject: Re: bin/1947 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Something is really hosed with the passwd command, or something State-Changed-From-To: feedback-closed State-Changed-By: jkh State-Changed-When: Mon Dec 23 11:16:25 PST 1996 State-Changed-Why: Since it's so hard to reproduce, I'll just close this for now and open an new PR if I ever reproduce it again. From owner-freebsd-bugs Mon Dec 23 11:20:42 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA17780 for bugs-outgoing; Mon, 23 Dec 1996 11:20:42 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA17742; Mon, 23 Dec 1996 11:20:11 -0800 (PST) Date: Mon, 23 Dec 1996 11:20:11 -0800 (PST) From: Joerg Wunsch Message-Id: <199612231920.LAA17742@freefall.freebsd.org> To: tc@center.c-edv.de, joerg, freebsd-bugs Subject: Re: kern/930 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: sio/getty problem? State-Changed-From-To: feedback-closed State-Changed-By: joerg State-Changed-When: Mon Dec 23 20:18:47 MET 1996 State-Changed-Why: (Note: moved away from `confidential'.) The request for feedback apparently timed out. Anyway, the description of the problem is very vague to the best, and roughly looks as if the modem speed isn't frozen. From owner-freebsd-bugs Mon Dec 23 11:20:53 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA17810 for bugs-outgoing; Mon, 23 Dec 1996 11:20:53 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id LAA17793 for ; Mon, 23 Dec 1996 11:20:46 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id UAA13495; Mon, 23 Dec 1996 20:20:44 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id UAA20085; Mon, 23 Dec 1996 20:20:43 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id TAA05640; Mon, 23 Dec 1996 19:51:23 +0100 (MET) From: J Wunsch Message-Id: <199612231851.TAA05640@uriah.heep.sax.de> Subject: Re: scsi streamer hang machine while booting if tape inserted. To: dv@kis.ru (Dmitry Valdov) Date: Mon, 23 Dec 1996 19:51:23 +0100 (MET) Cc: freebsd-bugs@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Dmitry Valdov at "Dec 23, 96 09:19:21 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Dmitry Valdov wrote: > > What streamer? > > > > I don't know. There is no any label on it. :( It is old model. Send us the inquiry string as it's identified at boot time (well, don't put a cartridge in it :). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Mon Dec 23 12:10:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA20130 for bugs-outgoing; Mon, 23 Dec 1996 12:10:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA20123; Mon, 23 Dec 1996 12:10:01 -0800 (PST) Date: Mon, 23 Dec 1996 12:10:01 -0800 (PST) Message-Id: <199612232010.MAA20123@freefall.freebsd.org> To: freebsd-bugs Cc: From: George Simunovich Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Reply-To: George Simunovich Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2270; it has been noted by GNATS. From: George Simunovich To: Bruce Evans Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Date: Mon, 23 Dec 1996 12:46:21 -0700 (MST) On 24-Dec-96 Bruce Evans wrote: >>>>Description: >>Accessing the serial port device for the Hayes ESP card, /dev/cuaa2, >>the system completely locks up and forced to reset. >>>How-To-Repeat: >>When the line "modem d a 2" in rc.serial is run at start up, the >>system locks up tight. Commenting out that line and after the >>system completly boots, running "cu -l /dev/cuaa2" also causes the >>system to completly lock up. > >Someone else reported that there is a problem with the ESP only(?) >when the port is closed. > I tried a couple things and it seems both on the open or the close everything locks up. I booted single-user and ran "cu -l /dev/cuaa2". I was able to dial and connect but when I disconnected it locked up. I also removed everything accessing /dev/cuaa2 from the start up files and booted. Running "cu -l /dev/cuaa2" immediately locked everything up. >>This is happening with all the kernels I've compiled using the >>kernel sources after and including 12/01, "cvs update -D 12/01/1996". >>The kernel of 11/30 apparently works fine. > >The sio driver now assumes that the Transmitter Holding Register >Empty (THRE) bit works normally in more cases. If it doesn't work, >then sioclose() might hang if there is output in progress. The system >shouldn't hang, but if the hang is during early execution of rc.serial, >then it would be hard to tell the difference. Try setting a timeout of >N seconds using `comcontrol /dev/cuaa2 drainwait N' very early (before >anything else in rc.serial). I'm not sure if this is the problem - >/etc/rc.serial shouldn't generate any output. If it is, then THRE >might fail because the UART is doing flow control that the driver >doesn't know about. comcontrol seems to have no effect on the problem. This is a total locking up. I've had a find / running in the background and when it hangs the disk goes completly silent. I also cann't switch virtual ttys or move the mouse. I also don't have any of the debugging options set for the kernel. BTW, how do you get cvs to get files for a branch and a date? "cvs checkout -r RELENG_2_2 -D11/30/1996" gives a usage message. "cvs update -r RELENG_2_2 -D11/30/1996" runs but apparently gives the HEAD files. > >Bruce Thanks, George ------------------------------------ George Simunovich From owner-freebsd-bugs Mon Dec 23 12:29:42 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA21335 for bugs-outgoing; Mon, 23 Dec 1996 12:29:42 -0800 (PST) Received: from inga.augusta.de (root@inga.augusta.de [193.175.23.65]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA21306; Mon, 23 Dec 1996 12:29:23 -0800 (PST) Received: from rabbit by inga.augusta.de with uucp (Smail3.1.29.1 #1) id m0vcGwA-004cqkC; Mon, 23 Dec 96 21:25 MET Received: by rabbit.augusta.de (Smail3.1.29.1 #1) id m0vcGwW-000FzsC; Mon, 23 Dec 96 21:25 MET Message-Id: X-Mailer: exmh version 1.6.9 8/22/96 X-url: http://www.augusta.de/~shanee/ X-pgp-keyid: 2A522DC9 X-pgp-fingerprint: 52 64 E2 F9 EA 9A 82 AC E2 01 4B 87 0E 42 6C B9 To: Joerg Wunsch cc: freebsd-bugs@freefall.freebsd.org Subject: Re: docs/2077 In-reply-to: Your message of "Mon, 23 Dec 1996 11:09:43 PST." <199612231909.LAA16601@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Mon, 23 Dec 1996 21:25:47 +0100 From: Andreas Kohout Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hello, > Synopsis: Error in /usr/share/doc/handbook/ (src-cur.2436.gz) > Please confirm: does this PR still apply? gruml ... the bug is away, I tried it with chimera, and chimera has this bug ... Sorry ... -- Gruß, Andy -------------------------------------------------------------------------- Der Mensch hat die Atombombe erfunden, eine Maus würde niemals eine Mausefalle bauen! shanee@rabbit.augusta.de Zirbelnußtown __________________________________________________________________________ From owner-freebsd-bugs Mon Dec 23 12:30:45 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA21406 for bugs-outgoing; Mon, 23 Dec 1996 12:30:45 -0800 (PST) Received: from smtp.connectnet.com (smtp.connectnet.com [207.110.0.12]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id MAA21401 for ; Mon, 23 Dec 1996 12:30:43 -0800 (PST) Received: from wink.connectnet.com (im@wink.connectnet.com [206.251.156.23]) by smtp.connectnet.com (8.8.4/Connectnet-2.2) with SMTP id MAA29326 for ; Mon, 23 Dec 1996 12:31:19 -0800 (PST) Message-Id: <199612232031.MAA29326@smtp.connectnet.com> From: "That Doug Guy" To: "bugs@freebsd.org" Date: Mon, 23 Dec 96 12:30:38 -0800 Reply-To: "That Doug Guy" Priority: Normal X-Mailer: That Doug Guy's Registered PMMail 1.53 For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Itty bitty bug in top man page from 2.1.5-Release Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Howdy, :) My apologies if this is not the proper format (and any pointers will be welcome :) but I found a tiny typo in the man page for top under the section on -n. It says: -n Use "non-interactive" mode. This is indentical to "batch" mode. "indentical" should be identical, yes? :) This is from a 2.1.5-Release system. If somone could mail me privately (or publicly if this is a FAQ) and let me know how to check if such things are already fixed in more recent versions, I'd appreciate it. Holiday greetings, Doug From owner-freebsd-bugs Mon Dec 23 13:20:52 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA23462 for bugs-outgoing; Mon, 23 Dec 1996 13:20:52 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA23436; Mon, 23 Dec 1996 13:20:38 -0800 (PST) Date: Mon, 23 Dec 1996 13:20:38 -0800 (PST) From: Joerg Wunsch Message-Id: <199612232120.NAA23436@freefall.freebsd.org> To: shanee@rabbit.augusta.de, joerg, freebsd-bugs Subject: Re: docs/2077 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Error in /usr/share/doc/handbook/ (src-cur.2436.gz) State-Changed-From-To: feedback-closed State-Changed-By: joerg State-Changed-When: Mon Dec 23 22:20:02 MET 1996 State-Changed-Why: Originator confirms closure. From owner-freebsd-bugs Mon Dec 23 13:21:12 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA23514 for bugs-outgoing; Mon, 23 Dec 1996 13:21:12 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id NAA23498 for ; Mon, 23 Dec 1996 13:21:03 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id WAA02716; Mon, 23 Dec 1996 22:20:40 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id WAA22069; Mon, 23 Dec 1996 22:20:40 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id WAA07596; Mon, 23 Dec 1996 22:01:15 +0100 (MET) From: J Wunsch Message-Id: <199612232101.WAA07596@uriah.heep.sax.de> Subject: Re: docs/2077 To: shanee@rabbit.augusta.de (Andreas Kohout) Date: Mon, 23 Dec 1996 22:01:15 +0100 (MET) Cc: freebsd-bugs@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Andreas Kohout at "Dec 23, 96 09:25:47 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Andreas Kohout wrote: > gruml ... the bug is away, I tried it with chimera, and chimera has this > bug ... Nevermind. I gonna close the PR. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Mon Dec 23 14:50:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA27085 for bugs-outgoing; Mon, 23 Dec 1996 14:50:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA27079; Mon, 23 Dec 1996 14:50:01 -0800 (PST) Date: Mon, 23 Dec 1996 14:50:01 -0800 (PST) Message-Id: <199612232250.OAA27079@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bill Fenner Subject: Re: kern/2271: FIONREAD in if_tun.c wrong Reply-To: Bill Fenner Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2271; it has been noted by GNATS. From: Bill Fenner To: hans@brandinnovators.com Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/2271: FIONREAD in if_tun.c wrong Date: Mon, 23 Dec 1996 14:45:10 PST I think it's an error to send a non-PKTHDR mbuf to an interface output routine, so it's probably safe to get rid of the if and just use m_pkthdr.len unconditionally. Bill From owner-freebsd-bugs Tue Dec 24 00:16:02 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA14504 for bugs-outgoing; Tue, 24 Dec 1996 00:16:02 -0800 (PST) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id AAA14472 for ; Tue, 24 Dec 1996 00:15:59 -0800 (PST) Received: by agora.rdrop.com (Smail3.1.29.1 #17) id m0vcS1h-0008u5C; Tue, 24 Dec 96 00:15 PST Message-Id: From: batie@agora.rdrop.com (Alan Batie) Subject: 2.2-ALPHA To: bugs@freebsd.org Date: Tue, 24 Dec 1996 00:15:52 -0800 (PST) X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Well, I'm batting a thousand tonight... 2.2-ALPHA thinks it finds zp0 (rev B 3c589) in my Toshiba 420CDS, but all network access time out. On my ASUS P5/T1 motherboard, Win95 refuses to see the serial ports, after installing FreeBSD 2.2-ALPHA, and booting to the hard disk, I ftp'd a file (kermit), then went back to ftp libc.so.2.2 (because kermit found it missing), the ftp timed out with an error: routed: put RTM_LOSING without gateway I re-ran ftp and it worked fine. I'm also having problems with the floppy hanging the system, but it's possible the motherboard is flaky, given that neither Win95 nor FreeBSD seem to be able to make the serial ports work, even though they see them, so I won't go into that just yet. -- Alan Batie ______ batie@agora.rdrop.com \ / Assimilate this! +1 503 452-0960 \ / --Worf, First Contact DE 3C 29 17 C0 49 7A 27 \/ 40 A5 3C 37 4A DA 52 B9 It is my policy to avoid purchase of any products from companies which use unrequested email advertisements or telephone solicitation. From owner-freebsd-bugs Tue Dec 24 02:41:49 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA17753 for bugs-outgoing; Tue, 24 Dec 1996 02:41:49 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA17733; Tue, 24 Dec 1996 02:41:40 -0800 (PST) Date: Tue, 24 Dec 1996 02:41:40 -0800 (PST) From: Joerg Wunsch Message-Id: <199612241041.CAA17733@freefall.freebsd.org> To: andreas@klemm.gtn.com, joerg, freebsd-bugs, gibbs Subject: Re: kern/1989 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: dump(8) fails to dump if tagged command queuing is enabled State-Changed-From-To: feedback-open State-Changed-By: joerg State-Changed-When: Tue Dec 24 11:40:42 MET 1996 State-Changed-Why: > Please confirm: does the problem still exist with the recent driver? The problems still arises in -current. Exactly this I tried yesterday with a brand new kernel. Only one thing changed. The error message: sd0(ahc0:0:0) Tagged openings reduced to 3 This message comes up - nothing more - and the system hangs. This happens only with tagged command queuing enabled. With or without the compile option AHC_SCBPAGING_ENABLE. When using tar as backup tool, this doesn't happen. Or when benching SCSI disks using bonnie. Responsible-Changed-From-To: freebsd-bugs->gibbs Responsible-Changed-By: joerg Responsible-Changed-When: Tue Dec 24 11:40:42 MET 1996 Responsible-Changed-Why: Seems like Justin's area. From owner-freebsd-bugs Tue Dec 24 02:44:12 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA17811 for bugs-outgoing; Tue, 24 Dec 1996 02:44:12 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id CAA17806 for ; Tue, 24 Dec 1996 02:44:09 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id LAA14140; Tue, 24 Dec 1996 11:43:44 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id LAA01406; Tue, 24 Dec 1996 11:43:42 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id LAA11412; Tue, 24 Dec 1996 11:43:00 +0100 (MET) From: J Wunsch Message-Id: <199612241043.LAA11412@uriah.heep.sax.de> Subject: Re: 2.2-ALPHA To: batie@agora.rdrop.com (Alan Batie) Date: Tue, 24 Dec 1996 11:43:00 +0100 (MET) Cc: bugs@freeBSD.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Alan Batie at "Dec 24, 96 00:15:52 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Alan Batie wrote: > 2.2-ALPHA thinks it finds zp0 (rev B 3c589) in my Toshiba 420CDS, but > all network access time out. Are you sure your link flags selected the right connector? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Tue Dec 24 03:04:57 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA18274 for bugs-outgoing; Tue, 24 Dec 1996 03:04:57 -0800 (PST) Received: from xkis.kis.ru (root@xkis.kis.ru [194.87.66.200]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id DAA18208 for ; Tue, 24 Dec 1996 03:04:35 -0800 (PST) Received: from localhost (dv@localhost) by xkis.kis.ru (8.8.3/8.8.3) with SMTP id OAA01431; Tue, 24 Dec 1996 14:04:08 +0300 (MSK) Date: Tue, 24 Dec 1996 14:04:08 +0300 (MSK) From: Dmitry Valdov To: Joerg Wunsch cc: freebsd-bugs@freebsd.org Subject: Re: scsi streamer hang machine while booting if tape inserted. In-Reply-To: <199612231851.TAA05640@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 23 Dec 1996, J Wunsch wrote: > Date: Mon, 23 Dec 1996 19:51:23 +0100 (MET) > From: J Wunsch > Reply-To: Joerg Wunsch > To: Dmitry Valdov > Cc: freebsd-bugs@freebsd.org > Subject: Re: scsi streamer hang machine while booting if tape inserted. > > As Dmitry Valdov wrote: > > > > What streamer? > > > > > > > I don't know. There is no any label on it. :( It is old model. > > Send us the inquiry string as it's identified at boot time (well, > don't put a cartridge in it :). > aha0 at 0x330-0x333 irq 11 drq 5 on isa aha0 waiting for scsi devices to settle (aha0:0:0): "MAXTOR 7345-SCSI 2065" type 0 fixed SCSI 1 sd0(aha0:0:0): Direct-Access 329MB (675484 512 byte sectors) (aha0:1:0): "MAXTOR LXT-340S 6.75" type 0 fixed SCSI 1 sd1(aha0:1:0): Direct-Access 324MB (665154 512 byte sectors) (aha0:2:0): "WANGTEK 5525ES SCSI M74H 11" type 1 removable SCSI 1 st0(aha0:2:0): Sequential-Access density code 0x0, drive empty When cassette is inserted whie booting it hangs before 'drive empty' or '0x0' message (i forgot exactly before which of messge. Now this computer has no monitor ;-) Dmitry. From owner-freebsd-bugs Tue Dec 24 03:10:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA18454 for bugs-outgoing; Tue, 24 Dec 1996 03:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA18448; Tue, 24 Dec 1996 03:10:01 -0800 (PST) Date: Tue, 24 Dec 1996 03:10:01 -0800 (PST) Message-Id: <199612241110.DAA18448@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2270; it has been noted by GNATS. From: Bruce Evans To: bde@zeta.org.au, george@cia-g.com Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Date: Tue, 24 Dec 1996 21:56:32 +1100 >BTW, how do you get cvs to get files for a branch and a date? >"cvs checkout -r RELENG_2_2 -D11/30/1996" gives a usage message. >"cvs update -r RELENG_2_2 -D11/30/1996" runs but apparently >gives the HEAD files. -D is almost unusable with branches (I think there's a hack involving -j but I can't remember it). For single files it's easy enough to check out specific revisions (read the cvs log to find the revision numbers), and in this case it's easiest to work with the -current version (-current sio.c is identical with -2.2 sio.c and the changes on 11/30/1996 aren't all together). Bruce From owner-freebsd-bugs Tue Dec 24 03:41:25 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA19533 for bugs-outgoing; Tue, 24 Dec 1996 03:41:25 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id DAA19528 for ; Tue, 24 Dec 1996 03:41:22 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id MAA23723; Tue, 24 Dec 1996 12:41:21 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id MAA02611; Tue, 24 Dec 1996 12:41:20 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id MAA12071; Tue, 24 Dec 1996 12:40:31 +0100 (MET) From: J Wunsch Message-Id: <199612241140.MAA12071@uriah.heep.sax.de> Subject: Re: scsi streamer hang machine while booting if tape inserted. To: dv@kis.ru (Dmitry Valdov) Date: Tue, 24 Dec 1996 12:40:30 +0100 (MET) Cc: freebsd-bugs@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Dmitry Valdov at "Dec 24, 96 02:04:08 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Dmitry Valdov wrote: > (aha0:2:0): "WANGTEK 5525ES SCSI M74H 11" type 1 removable SCSI 1 > st0(aha0:2:0): Sequential-Access density code 0x0, drive empty > > > When cassette is inserted whie booting it hangs before 'drive empty' or > '0x0' message (i forgot exactly before which of messge. Now this > computer has no monitor ;-) I've never observed such behaviour on a Wangtek, but they don't have the best firmware either. I know they do also have some jumpers, but there's nothing very meaningful among them. All this smells like a firmware bug of the Wangtek. Probably not much how we could help you. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Tue Dec 24 03:51:14 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA19897 for bugs-outgoing; Tue, 24 Dec 1996 03:51:14 -0800 (PST) Received: from xkis.kis.ru (root@xkis.kis.ru [194.87.66.200]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id DAA19892 for ; Tue, 24 Dec 1996 03:51:08 -0800 (PST) Received: from localhost (dv@localhost) by xkis.kis.ru (8.8.3/8.8.3) with SMTP id OAA02934; Tue, 24 Dec 1996 14:50:50 +0300 (MSK) Date: Tue, 24 Dec 1996 14:50:50 +0300 (MSK) From: Dmitry Valdov To: Joerg Wunsch cc: freebsd-bugs@freebsd.org Subject: Re: scsi streamer hang machine while booting if tape inserted. In-Reply-To: <199612241140.MAA12071@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 24 Dec 1996, J Wunsch wrote: > Date: Tue, 24 Dec 1996 12:40:30 +0100 (MET) > From: J Wunsch > Reply-To: Joerg Wunsch > To: Dmitry Valdov > Cc: freebsd-bugs@freebsd.org > Subject: Re: scsi streamer hang machine while booting if tape inserted. > > As Dmitry Valdov wrote: > > > (aha0:2:0): "WANGTEK 5525ES SCSI M74H 11" type 1 removable SCSI 1 > > st0(aha0:2:0): Sequential-Access density code 0x0, drive empty > > > > > > When cassette is inserted whie booting it hangs before 'drive empty' or > > '0x0' message (i forgot exactly before which of messge. Now this > > computer has no monitor ;-) > > I've never observed such behaviour on a Wangtek, but they don't have > the best firmware either. I know they do also have some jumpers, but > there's nothing very meaningful among them. > > All this smells like a firmware bug of the Wangtek. Probably not much > how we could help you. > Thanks anyway. I'm going to disable calls to st_mode_sense or to scsi_test_unit_ready in st.c :( May be, will be better to add 'option BUGGYST' to kernel config especialy for such devices? Dmitry. From owner-freebsd-bugs Tue Dec 24 05:30:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA21387 for bugs-outgoing; Tue, 24 Dec 1996 05:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA21376; Tue, 24 Dec 1996 05:30:02 -0800 (PST) Resent-Date: Tue, 24 Dec 1996 05:30:02 -0800 (PST) Resent-Message-Id: <199612241330.FAA21376@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jau@iki.fi Received: from jau.thunderbolt.fi (jukkonen.dial.tele.fi [194.89.253.78]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id FAA21297 for ; Tue, 24 Dec 1996 05:21:49 -0800 (PST) Received: (from jau@localhost) by jau.thunderbolt.fi (8.7.5/8.6.12+CSC-2.1) id PAA00743; Tue, 24 Dec 1996 15:21:24 +0200 (EET) Message-Id: <199612241321.PAA00743@jau.thunderbolt.fi> Date: Tue, 24 Dec 1996 15:21:24 +0200 (EET) From: jau@iki.fi Reply-To: jau@iki.fi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2273 >Category: kern >Synopsis: support for POSIX.4 / POSIX.1a RT-scheduler API >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 24 05:30:01 PST 1996 >Last-Modified: >Originator: Jukka Ukkonen >Organization: Private person >Release: FreeBSD 2.1-STABLE i386 >Environment: The attached patches were done against FreeBSD 2.1-STABLE As far as I can see, it shouldn't be hard to import to 2.2 line though. >Description: FreeBSD has been missing support for POSIX.4/POSIX.1a style scheduler API and the RT-fifo scheduling policy required by POSIX. The attached patch is an example how this functionality could be added relatively quickly. >How-To-Repeat: Fail to compile anything using POSIX sched_*() functions. >Fix: Check the attached patch and add it (with modifications to your taste) to FreeBSD distribution, if you consider it to be even close to what is needed. I have been playing with for some time now with no ill effects at all. >Audit-Trail: >Unformatted: >End: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sched/sched.h # sched/sched_getparam.c # sched/sched_getscheduler.c # sched/sched_get_priority_max.c # sched/sched_get_priority_min.c # sched/sched_setparam.c # sched/sched_setscheduler.c # sched/Kernel-Sched.Diffs # sched/sched_yield.Diffs # sched/RTprio.diffs # sched/Makefile # echo x - sched/sched.h sed 's/^X//' >sched/sched.h << 'END-of-sched/sched.h' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X X#ifndef _SCHED_H X#define _SCHED_H X X#include X#include X#include /* For struct timespec */ X X#ifndef _POSIX_PRIORITY_SCHEDULING X# define _POSIX_PRIORITY_SCHEDULING X#endif X X/* X * FIFO and Round-Robin must really be separate, but maybe X * it could be possible and worthwhile to try approximate FIFO X * using RR with higher priorities. X * X * RTP_PRIO_REALTIME with round-robin among equal priority X * processes at every time-quantum (= currently HZ/10) would X * still be only a poor substitute for fifo scheduling on X * systems that don't have a real fifo policy. X * X * Otherwise FIFO and RR are equivalent in all respects, but X * RR comes with involuntary release of CPU after the time X * quantum has passed. X * FIFO knows only about voluntary release of the CPU while X * the process can run as long as it wishes. So, you really X * can hang your machine, if there is no other process with X * higher RT-priority (FIFO or RR) ready to kill a infinitely X * looping FIFO process. X */ X X#ifdef RTP_PRIO_FIFO X# define SCHED_FIFO RTP_PRIO_FIFO X#else X# define SCHED_FIFO RTP_PRIO_REALTIME X#endif X X#define SCHED_RR RTP_PRIO_REALTIME X#define SCHED_TIMESHARE RTP_PRIO_NORMAL X#define SCHED_IDLE RTP_PRIO_IDLE X#define SCHED_OTHER SCHED_TIMESHARE X X/* X * Hopefully someone is interested enough to add X * the necessary deadline logic to the kernel. X */ X X#ifdef RTP_PRIO_DEADLINE X# define SCHED_DEADLINE RTP_PRIO_DEADLINE X#endif X Xstruct sched_param { X int sched_type; /* scheduling policy */ X int sched_priority; /* nice for time-share, else true prio */ X int sched_pgprio; /* pg-nice for TS, else unused */ X int sched_userprio; /* user-nice for TS, else unused */ X struct timespec sched_deadline; /* reserved for deadline scheduling */ X struct timespec sched_timereq; /* reserved for deadline scheduling */ X}; X X#endif END-of-sched/sched.h echo x - sched/sched_getparam.c sed 's/^X//' >sched/sched_getparam.c << 'END-of-sched/sched_getparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_getparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X param->sched_type = rtp.type; X X if (rtp.type == RTP_PRIO_NORMAL) { X errno = 0; X X param->sched_priority = getpriority (PRIO_PROCESS, pid); X X if ((param->sched_priority == -1) && errno) X return (-1); X X param->sched_priority = -param->sched_priority; X X errno = 0; X X param->sched_pgprio = getpriority (PRIO_PGRP, pid); X X if ((param->sched_pgprio == -1) && errno) X return (-1); X X param->sched_pgprio = -param->sched_pgprio; X X errno = 0; X X param->sched_userprio = getpriority (PRIO_USER, pid); X X if ((param->sched_userprio == -1) && errno) X return (-1); X X param->sched_userprio = -param->sched_userprio; X } X else X param->sched_priority = RTP_PRIO_MAX - rtp.prio; X X return (0); X} END-of-sched/sched_getparam.c echo x - sched/sched_getscheduler.c sed 's/^X//' >sched/sched_getscheduler.c << 'END-of-sched/sched_getscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X Xint Xsched_getscheduler (pid) X pid_t pid; X{ X struct rtprio rtp; X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X return ((int) rtp.type); X} END-of-sched/sched_getscheduler.c echo x - sched/sched_get_priority_max.c sed 's/^X//' >sched/sched_get_priority_max.c << 'END-of-sched/sched_get_priority_max.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X errno = 0; X X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MAX); X X case SCHED_TIMESHARE: X return (PRIO_MAX); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched/sched_get_priority_max.c echo x - sched/sched_get_priority_min.c sed 's/^X//' >sched/sched_get_priority_min.c << 'END-of-sched/sched_get_priority_min.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X errno = 0; X X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MIN); X X case SCHED_TIMESHARE: X return (PRIO_MIN); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched/sched_get_priority_min.c echo x - sched/sched_setparam.c sed 's/^X//' >sched/sched_setparam.c << 'END-of-sched/sched_setparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X if (rtp.type == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched/sched_setparam.c echo x - sched/sched_setscheduler.c sed 's/^X//' >sched/sched_setscheduler.c << 'END-of-sched/sched_setscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setscheduler (pid, policy, param) X pid_t pid; X int policy; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X rtp.type = policy; X X if (policy == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched/sched_setscheduler.c echo x - sched/Kernel-Sched.Diffs sed 's/^X//' >sched/Kernel-Sched.Diffs << 'END-of-sched/Kernel-Sched.Diffs' X--- /sys/kern/kern_resource.c.orig Tue May 30 11:05:39 1995 X+++ /sys/kern/kern_resource.c Mon Dec 25 20:52:30 1995 X@@ -247,8 +247,11 @@ X /* can't set realtime priority */ X if (rtp.type == RTP_PRIO_REALTIME) X return (EPERM); X+ if (rtp.type == RTP_PRIO_FIFO) X+ return (EPERM); X } X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X case RTP_PRIO_REALTIME: X case RTP_PRIO_NORMAL: X case RTP_PRIO_IDLE: X--- /sys/kern/kern_synch.c.orig Tue May 30 11:05:44 1995 X+++ /sys/kern/kern_synch.c Tue Dec 26 16:23:20 1995 X@@ -67,8 +67,10 @@ X roundrobin(arg) X void *arg; X { X+ if (! curproc || curproc->p_rtprio.type != RTP_PRIO_FIFO) { X+ need_resched(); X+ } X X- need_resched(); X timeout(roundrobin, NULL, hz / 10); X } X X@@ -670,7 +672,11 @@ X p->p_usrpri = newpriority; X if (newpriority < curpriority) X need_resched(); X- } else { X+ } else if (! curproc || X+ (curproc->p_rtprio.type != RTP_PRIO_FIFO) || X+ (((p->p_rtprio.type == RTP_PRIO_FIFO) || X+ (p->p_rtprio.type == RTP_PRIO_REALTIME)) && X+ (p->p_rtprio.prio < curproc->p_rtprio.prio))) { X need_resched(); X } X } X--- /sys/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /sys/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X X--- /sys/i386/i386/swtch.s.orig Tue Dec 26 14:19:25 1995 X+++ /sys/i386/i386/swtch.s Tue Dec 26 14:20:58 1995 X@@ -90,6 +90,9 @@ X X movzwl P_RTPRIO_PRIO(%eax),%edx X X+ cmpw $RTP_PRIO_FIFO,P_RTPRIO_TYPE(%eax) /* fifo rt priority? */ X+ je set_rt X+ X cmpw $RTP_PRIO_REALTIME,P_RTPRIO_TYPE(%eax) /* realtime priority? */ X jne set_id /* must be idle priority */ X X--- /sys/vm/vm_glue.c.orig Mon Oct 16 22:43:05 1995 X+++ /sys/vm/vm_glue.c Mon Dec 25 20:52:32 1995 X@@ -430,6 +430,9 @@ X /* X * do not swapout a realtime process X */ X+ if (p->p_rtprio.type == RTP_PRIO_FIFO) X+ continue; X+ X if (p->p_rtprio.type == RTP_PRIO_REALTIME) X continue; X X--- /usr/include/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /usr/include/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X END-of-sched/Kernel-Sched.Diffs echo x - sched/sched_yield.Diffs sed 's/^X//' >sched/sched_yield.Diffs << 'END-of-sched/sched_yield.Diffs' X--- /sys/kern/init_sysent.c.no_sched_yield Wed Dec 4 23:41:55 1996 X+++ /sys/kern/init_sysent.c Wed Dec 4 23:49:14 1996 X@@ -179,6 +179,7 @@ X int mlock(); X int munlock(); X int getsid(); X+int sched_yield(); X int lkmnosys(); X X #ifdef COMPAT_43 X@@ -489,7 +490,8 @@ X { 2, munlock }, /* 204 = munlock */ X /* { 0, nosys }, 205 = nosys */ X { 1, getsid }, /* 205 = getsid */ X- { 0, nosys }, /* 206 = nosys */ X+ /* { 0, nosys }, 206 = nosys */ X+ { 0, sched_yield }, /* 206 = sched_yield */ X { 0, nosys }, /* 207 = nosys */ X { 0, nosys }, /* 208 = nosys */ X { 0, nosys }, /* 209 = nosys */ X--- /sys/kern/syscalls.c.no_sched_yield Wed Dec 4 23:42:24 1996 X+++ /sys/kern/syscalls.c Wed Dec 4 23:46:07 1996 X@@ -249,7 +249,8 @@ X "munlock", /* 204 = munlock */ X /* "#205", 205 = nosys */ X "getsid", /* 205 = getsid */ X- "#206", /* 206 = nosys */ X+ /* "#206", 206 = nosys */ X+ "sched_yield", /* 206 = sched_yield */ X "#207", /* 207 = nosys */ X "#208", /* 208 = nosys */ X "#209", /* 209 = nosys */ X--- /sys/kern/syscalls.master.no_sched_yield Wed Dec 4 23:42:43 1996 X+++ /sys/kern/syscalls.master Wed Dec 4 23:44:28 1996 X@@ -280,7 +280,8 @@ X 204 STD 2 BSD munlock X ; 205 UNIMPL 0 NOHIDE nosys X 205 STD 1 BSD getsid X-206 UNIMPL 0 NOHIDE nosys X+; 206 UNIMPL 0 NOHIDE nosys X+206 STD 0 POSIX sched_yield X 207 UNIMPL 0 NOHIDE nosys X 208 UNIMPL 0 NOHIDE nosys X 209 UNIMPL 0 NOHIDE nosys X--- /sys/kern/kern_synch.c.no_sched_yield Tue Dec 24 13:12:02 1996 X+++ /sys/kern/kern_synch.c Tue Dec 24 11:25:33 1996 X@@ -681,3 +681,20 @@ X } X } X X+struct sched_yield_args { X+ void *arg; X+}; X+/* ARGSUSED */ X+int X+sched_yield (p, uap, retval) X+ struct proc *p; X+ struct sched_yield_args *uap; X+ int *retval; X+{ X+ need_resched (); /* Wild, isn't it? */ X+ X+ *retval = 0; X+ X+ return (0); X+} X+ X--- /usr/include/sys/syscall.h.no_sched_yield Tue Dec 24 13:19:56 1996 X+++ /usr/include/sys/syscall.h Tue Dec 24 12:23:18 1996 X@@ -193,3 +193,4 @@ X #define SYS_mlock 203 X #define SYS_munlock 204 X #define SYS_getsid 205 X+#define SYS_sched_yield 206 X--- /usr/include/unistd.h.no_sched_yield Tue Dec 24 13:18:59 1996 X+++ /usr/include/unistd.h Tue Dec 24 12:39:59 1996 X@@ -174,6 +174,7 @@ X int vhangup __P((void)); X void *valloc __P((size_t)); /* obsoleted by malloc() */ X pid_t vfork __P((void)); X+int sched_yield __P((void)); X #endif /* !_POSIX_SOURCE */ X __END_DECLS X X--- /sys/sys/syscall.h.no_sched_yield Tue Dec 24 13:22:52 1996 X+++ /sys/sys/syscall.h Tue Dec 24 12:23:56 1996 X@@ -193,3 +193,4 @@ X #define SYS_mlock 203 X #define SYS_munlock 204 X #define SYS_getsid 205 X+#define SYS_sched_yield 206 END-of-sched/sched_yield.Diffs echo x - sched/RTprio.diffs sed 's/^X//' >sched/RTprio.diffs << 'END-of-sched/RTprio.diffs' X--- /usr/src/usr.sbin/rtprio/rtprio.c.orig Sun Oct 2 06:48:21 1994 X+++ /usr/src/usr.sbin/rtprio/rtprio.c Tue Dec 26 11:18:20 1995 X@@ -63,6 +63,10 @@ X X if (!strcmp(p, "rtprio")) X rtp.type = RTP_PRIO_REALTIME; X+#ifdef RTP_PRIO_FIFO X+ else if (!strcmp(p, "rtfifoprio")) X+ rtp.type = RTP_PRIO_FIFO; X+#endif X else if (!strcmp(p, "idprio")) X rtp.type = RTP_PRIO_IDLE; X X@@ -76,8 +80,13 @@ X perror(argv[0]); X exit (1); X } X+ X printf("%s: ", p); X+ X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X+ printf("hard realtime fifo priority %d\n", rtp.prio); X+ break; X case RTP_PRIO_REALTIME: X printf("realtime priority %d\n", rtp.prio); X break; END-of-sched/RTprio.diffs echo x - sched/Makefile sed 's/^X//' >sched/Makefile << 'END-of-sched/Makefile' X XCC = gcc X X.c.o: X $(CC) $(CFLAGS) -c $< X ld -r -x $@ X mv a.out $@ X chmod a-x $@ X XCINCL = -I../include -I../ctype X XCFLAGS = -O4 -fexpensive-optimizations -fpcc-struct-return -funsigned-char \ X -D_NO_POSIX_OPAQUE_TYPES $(CDEBUG) $(CINCL) X#CFLAGS = $(CDEBUG) $(CINCL) X XSRCS = \ X sched_get_priority_max.c sched_setparam.c \ X sched_get_priority_min.c sched_setscheduler.c \ X sched_getparam.c sched_getscheduler.c X XOBJS = \ X sched_get_priority_max.o sched_setparam.o \ X sched_get_priority_min.o sched_setscheduler.o \ X sched_getparam.o sched_getscheduler.o X Xlibsched.a: $(OBJS) X rm -f $@ X ar rv $@ $(OBJS) X ranlib $@ X END-of-sched/Makefile exit From owner-freebsd-bugs Tue Dec 24 07:55:45 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA24573 for bugs-outgoing; Tue, 24 Dec 1996 07:55:45 -0800 (PST) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id HAA24568 for ; Tue, 24 Dec 1996 07:55:43 -0800 (PST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id IAA08143; Tue, 24 Dec 1996 08:55:28 -0700 (MST) Date: Tue, 24 Dec 1996 08:55:28 -0700 (MST) Message-Id: <199612241555.IAA08143@rocky.mt.sri.com> From: Nate Williams To: batie@agora.rdrop.com (Alan Batie) Cc: bugs@freebsd.org Subject: Re: 2.2-ALPHA In-Reply-To: References: Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 2.2-ALPHA thinks it finds zp0 (rev B 3c589) in my Toshiba 420CDS, but > all network access time out. Did you try messing with the link flags? Nate From owner-freebsd-bugs Tue Dec 24 08:38:48 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA25673 for bugs-outgoing; Tue, 24 Dec 1996 08:38:48 -0800 (PST) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id IAA25668 for ; Tue, 24 Dec 1996 08:38:46 -0800 (PST) Received: by agora.rdrop.com (Smail3.1.29.1 #17) id m0vcZsK-0008ufC; Tue, 24 Dec 96 08:38 PST Message-Id: From: batie@agora.rdrop.com (Alan Batie) Subject: Re: 2.2-ALPHA To: nate@mt.sri.com (Nate Williams) Date: Tue, 24 Dec 1996 08:38:43 -0800 (PST) Cc: bugs@freebsd.org In-Reply-To: <199612241555.IAA08143@rocky.mt.sri.com> from "Nate Williams" at Dec 24, 96 08:55:28 am X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Did you try messing with the link flags? I think I tried "-link0 link1" and "link0 -link1"; I'm fighting a Win95 install with a Christmas deadline right now. I'll work at it a little more later... -- Alan Batie ______ batie@agora.rdrop.com \ / Assimilate this! +1 503 452-0960 \ / --Worf, First Contact DE 3C 29 17 C0 49 7A 27 \/ 40 A5 3C 37 4A DA 52 B9 It is my policy to avoid purchase of any products from companies which use unrequested email advertisements or telephone solicitation. From owner-freebsd-bugs Tue Dec 24 09:30:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA26997 for bugs-outgoing; Tue, 24 Dec 1996 09:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA26989; Tue, 24 Dec 1996 09:30:02 -0800 (PST) Resent-Date: Tue, 24 Dec 1996 09:30:02 -0800 (PST) Resent-Message-Id: <199612241730.JAA26989@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.JAA26902;Tue; (8.8.4/8.8.4);, 24 Dec 1996 09:28:36.-0800 (PST) Message-Id: <199612241728.JAA26902@freefall.freebsd.org> Date: Tue, 24 Dec 1996 09:28:36 -0800 (PST) From: m230761@ingenieria.ingsala.unal.edu.co To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: bin/2274: Old ports (gopher and W3_httpd) require new URLs Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2274 >Category: bin >Synopsis: Old ports (gopher and W3_httpd) require new URLs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 24 09:30:01 PST 1996 >Last-Modified: >Originator: Pedro Giffuni >Organization: Universidad Nacional de Colombia >Release: 2.1.5 >Environment: Non relevant. >Description: Bothe mention ports are outdated and were relocated on the same server >How-To-Repeat: make fetch :). >Fix: add an "old/" to both URLs and they will be fetched >Audit-Trail: >Unformatted: From owner-freebsd-bugs Tue Dec 24 11:15:06 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA00251 for bugs-outgoing; Tue, 24 Dec 1996 11:15:06 -0800 (PST) Received: from kremvax.demos.su (kremvax.demos.su [194.87.0.20]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id LAA00243 for ; Tue, 24 Dec 1996 11:15:02 -0800 (PST) Received: by kremvax.demos.su (8.6.13/D) from 0@megillah.demos.su [194.87.0.21] for with ESMTP id WAA00721; Tue, 24 Dec 1996 22:13:55 +0300 Received: by megillah.demos.su id WAA20078; (8.8.3/D) Tue, 24 Dec 1996 22:13:42 +0300 (MSK) Message-Id: <199612241913.WAA20078@megillah.demos.su> Subject: 2.1.6/boot.flp/EISA To: freebsd-bugs@freebsd.org Date: Tue, 24 Dec 1996 22:13:42 +0300 (MSK) From: "Mikhail A. Sokolov" X-Class: Fast Organization: Demos Company, Ltd. Reply-To: mishania@demos.su X-Mailer: ELM [version 2.4 PL24 ME7a] Content-Type: text Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello, taking a look at god *(&^% NetServer LC (HP) we notice that it's full of EISA slot's and EISA'ish itself. Correct me if I am wrong, but why doesn't boot.flp kernel contain controller eisa0 line ? -mishania From owner-freebsd-bugs Tue Dec 24 11:40:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA01690 for bugs-outgoing; Tue, 24 Dec 1996 11:40:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA01684; Tue, 24 Dec 1996 11:40:02 -0800 (PST) Resent-Date: Tue, 24 Dec 1996 11:40:02 -0800 (PST) Resent-Message-Id: <199612241940.LAA01684@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, wh@helbig.informatik.ba-stuttgart.de Received: from helbig.informatik.ba-stuttgart.de (helbig.informatik.ba-stuttgart.de [141.31.166.22]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA01290 for ; Tue, 24 Dec 1996 11:34:33 -0800 (PST) Received: (from wh@localhost) by helbig.informatik.ba-stuttgart.de (8.8.4/8.7.3) id UAA01134; Tue, 24 Dec 1996 20:34:33 +0100 (MET) Message-Id: <199612241934.UAA01134@helbig.informatik.ba-stuttgart.de> Date: Tue, 24 Dec 1996 20:34:33 +0100 (MET) From: Wolfgang Helbig Reply-To: wh@helbig.informatik.ba-stuttgart.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/2275: no support for isdn-cards Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2275 >Category: docs >Synopsis: no support for isdn-cards >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 24 11:40:01 PST 1996 >Last-Modified: >Originator: Wolfgang Helbig >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: The FAQ "3.13. What other devices does 2.X support?" says the ``nic'' driver is supported. This is not true anymore. In fact no ISDN-Cards are supported by FreeBSD 2.2 and by FreeBSD-current. (which is very bad) >How-To-Repeat: >Fix: Change the FAQ or better yet support ISDN-Cards. This is very important in Germany and I suppose in Europe! Maybe the stuff from ftp.muc.ditec.de should be integrated in -current??? >Audit-Trail: >Unformatted: From owner-freebsd-bugs Tue Dec 24 11:44:20 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA01813 for bugs-outgoing; Tue, 24 Dec 1996 11:44:20 -0800 (PST) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.fr [193.56.58.253]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA01807 for ; Tue, 24 Dec 1996 11:44:17 -0800 (PST) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id UAA00414 for ; Tue, 24 Dec 1996 20:44:13 +0100 Received: (from uucp@localhost) by brasil.brainstorm.fr (8.6.12/8.6.12) with UUCP id UAA16033 for freebsd-bugs@FreeBSD.org; Tue, 24 Dec 1996 20:44:01 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.4/keltia-uucp-2.9) id UAA08825; Tue, 24 Dec 1996 20:41:27 +0100 (CET) Message-ID: Date: Tue, 24 Dec 1996 20:41:26 +0100 From: roberto@keltia.freenix.fr (Ollivier Robert) To: freebsd-bugs@FreeBSD.org Subject: Re: 2.1.6/boot.flp/EISA References: <199612241913.WAA20078@megillah.demos.su> X-Mailer: Mutt 0.55.04 Mime-Version: 1.0 X-Operating-System: FreeBSD 3.0-CURRENT ctm#2837 In-Reply-To: <199612241913.WAA20078@megillah.demos.su>; from Mikhail A. Sokolov on Dec 24, 1996 22:13:42 +0300 Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk According to Mikhail A. Sokolov: > taking a look at god *(&^% NetServer LC (HP) we notice that it's full of EISA > slot's and EISA'ish itself. Correct me if I am wrong, but why doesn't > boot.flp kernel contain controller eisa0 line ? Because the "controller eisa*" code never went into 2.1-STABLE branch. It is handled differently in this branch... -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #33: Sat Dec 21 12:57:17 CET 1996 From owner-freebsd-bugs Tue Dec 24 13:21:37 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA05039 for bugs-outgoing; Tue, 24 Dec 1996 13:21:37 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id NAA05033 for ; Tue, 24 Dec 1996 13:21:34 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id WAA01786; Tue, 24 Dec 1996 22:21:10 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id WAA09704; Tue, 24 Dec 1996 22:21:08 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id WAA13203; Tue, 24 Dec 1996 22:15:50 +0100 (MET) From: J Wunsch Message-Id: <199612242115.WAA13203@uriah.heep.sax.de> Subject: Re: scsi streamer hang machine while booting if tape inserted. To: dv@kis.ru (Dmitry Valdov) Date: Tue, 24 Dec 1996 22:15:50 +0100 (MET) Cc: freebsd-bugs@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Dmitry Valdov at "Dec 24, 96 02:50:50 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Dmitry Valdov wrote: > May be, will be better to add 'option BUGGYST' to kernel config especialy for > such devices? Nope. A single non-functional drive doesn't justify another official kernel option. I've never heard of such a misbehaviour before. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Tue Dec 24 13:51:13 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA05976 for bugs-outgoing; Tue, 24 Dec 1996 13:51:13 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id NAA05971 for ; Tue, 24 Dec 1996 13:51:11 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id WAA06768; Tue, 24 Dec 1996 22:51:05 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id WAA10282; Tue, 24 Dec 1996 22:51:05 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id WAA13516; Tue, 24 Dec 1996 22:33:15 +0100 (MET) From: J Wunsch Message-Id: <199612242133.WAA13516@uriah.heep.sax.de> Subject: Re: 2.1.6/boot.flp/EISA To: mishania@demos.su Date: Tue, 24 Dec 1996 22:33:15 +0100 (MET) Cc: freebsd-bugs@FreeBSD.ORG Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199612241913.WAA20078@megillah.demos.su> from "Mikhail A. Sokolov" at "Dec 24, 96 10:13:42 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Mikhail A. Sokolov wrote: > taking a look at god *(&^% NetServer LC (HP) we notice that it's full of EISA > slot's and EISA'ish itself. Correct me if I am wrong, but why doesn't > boot.flp kernel contain controller eisa0 line ? j@uriah 195% cvs co -rRELENG_2_1_6_1_RELEASE -d. src/sys/i386/conf/GENERIC U ./GENERIC j@uriah 196% fgrep eisa GENERIC controller eisa0 It does. Your problem is another. FreeBSD 2.1.5R was the first release that indeed shipped with EISA code enabled (2.1R had it disabled and buggy). However, the EISA per slot memory for slots >= 10 conflicts with the PCI address range, therefore the device probing is limited to slots 0 through 9. Unfortunately, the on-board AHA2740 in the EISA Netservers is at slot # 11. If you can bootstrap your system with another controller, you can work around this by changing the #define in sys/i386/eisa/eisaconf.h, and rebuilding your kernel. I've found a hack to allow bootstrapping a 2.2 system, it's already in the new BETA which is about to be announced every minute now. There you can tell ``eisa 12'' in the command-line UserConfig screen, to extend the number of slots to be probed. This allows you installing the system, so you could continue as described above. All this is described in the (updated) FAQ, topic 3.16. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Tue Dec 24 14:31:14 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA07492 for bugs-outgoing; Tue, 24 Dec 1996 14:31:14 -0800 (PST) Received: from ingenieria ([168.176.15.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id OAA07485; Tue, 24 Dec 1996 14:31:05 -0800 (PST) Received: by ingenieria (SMI-8.6/SMI-SVR4) id RAA09775; Tue, 24 Dec 1996 17:18:24 -0500 Date: Tue, 24 Dec 1996 17:18:23 -0500 (EST) From: Pedro Giffuni To: FreeBSD-gnats@freefall.FreeBSD.org, freebsd-bugs@freefall.FreeBSD.org Subject: Re: bin/2274: Old ports (gopher and W3_httpd) require new URLs In-Reply-To: <199612241730.JAA26985@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Please close that pr,it is inaccurate and I sent it to the wrong group. sorry for the inconvinience. Pedro. From owner-freebsd-bugs Tue Dec 24 14:40:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA07826 for bugs-outgoing; Tue, 24 Dec 1996 14:40:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA07815; Tue, 24 Dec 1996 14:40:02 -0800 (PST) Resent-Date: Tue, 24 Dec 1996 14:40:02 -0800 (PST) Resent-Message-Id: <199612242240.OAA07815@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, tarush@mindspring.com Received: from mule1.mindspring.com (mule1.mindspring.com [204.180.128.167]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA07606 for ; Tue, 24 Dec 1996 14:34:52 -0800 (PST) Received: from tarush.mindspring.com (user-168-121-119-56.dialup.mindspring.com [168.121.119.56]) by mule1.mindspring.com (8.8.2/8.7.3) with ESMTP id WAA36314 for ; Tue, 24 Dec 1996 22:34:48 GMT Received: (from tarush@localhost) by tarush.mindspring.com (8.7.5/8.6.12) id RAA04058; Tue, 24 Dec 1996 17:36:18 -0500 (EST) Message-Id: <199612242236.RAA04058@tarush.mindspring.com> Date: Tue, 24 Dec 1996 17:36:18 -0500 (EST) From: tarush@mindspring.com Reply-To: tarush@mindspring.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2276: /bin/test bug Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2276 >Category: bin >Synopsis: /bin/test bug >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 24 14:40:01 PST 1996 >Last-Modified: >Originator: Tom Rush >Organization: Tom Rush tarush@mindspring.com >Release: FreeBSD 2.1.5-RELEASE i386 >Environment: AMD 486-DX4/100, 16 mb FreeBSD-2.1.5 (the same problem exists in -current) >Description: /bin/test does not handle the -a and -o operators properly in the 3-argument case, i.e., test "string1" -o "string2". The special case code at the top of main() passes this expression to posix_binary_op(), which doesn't do anything special for these operators; and test returns 0 (true) in any case. >How-To-Repeat: Using shell vars: V_ONE and V_TWO are unset (or null) test "$V_ONE" --> 1 (ok) test "$V_TWO" --> 1 (ok) test "$V_ONE" -o "$V_TWO" --> 0 (wrong) V_ONE="hello" test "$V_ONE" -o "$V_TWO" --> 0 (ok) test "$V_ONE" -a "$V_TWO" --> 0 (wrong) V_TWO="goodbye" test "$V_ONE" -a "$V_TWO" --> 0 (ok) >Fix: Let these and/or expressions drop through to the parser instead of sending to posix_binary_op(). --- test.c.orig Sat Dec 14 06:11:34 1996 +++ test.c Mon Dec 23 22:47:13 1996 @@ -157,7 +157,7 @@ ret_val = posix_unary_op(&argv[1]); if (ret_val >= 0) return (!ret_val); - } else { + } else if (lookup_op(argv[2], andor_op) < 0) { ret_val = posix_binary_op(&argv[1]); if (ret_val >= 0) return (ret_val); >Audit-Trail: >Unformatted: From owner-freebsd-bugs Tue Dec 24 16:10:10 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA14521 for bugs-outgoing; Tue, 24 Dec 1996 16:10:10 -0800 (PST) Received: (from steve@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA14498; Tue, 24 Dec 1996 16:10:04 -0800 (PST) Date: Tue, 24 Dec 1996 16:10:04 -0800 (PST) From: Steve Price Message-Id: <199612250010.QAA14498@freefall.freebsd.org> To: tarush@mindspring.com, steve, freebsd-bugs Subject: Re: bin/2276 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: /bin/test bug State-Changed-From-To: open-closed State-Changed-By: steve State-Changed-When: Tue Dec 24 16:08:27 PST 1996 State-Changed-Why: Fixed in rev 1.15 of test.c. Thanks for the patch. From owner-freebsd-bugs Tue Dec 24 16:35:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA16853 for bugs-outgoing; Tue, 24 Dec 1996 16:35:03 -0800 (PST) Received: from catarina.usc.edu (catarina.usc.edu [128.125.51.47]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id QAA16845 for ; Tue, 24 Dec 1996 16:35:00 -0800 (PST) Received: from carlsbad.usc.edu (carlsbad.usc.edu [128.125.51.5]) by catarina.usc.edu (8.6.10/8.6.9) with SMTP id QAA05339 for ; Tue, 24 Dec 1996 16:35:06 -0800 Message-Id: <199612250035.QAA05339@catarina.usc.edu> X-Authentication-Warning: catarina.usc.edu: Host carlsbad.usc.edu didn't use HELO protocol To: bugs@freebsd.org Subject: 2.2-BETA installation floppies don't work Date: Tue, 24 Dec 1996 16:34:33 -0800 From: Pavlin Ivanov Radoslavov Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hate to say that on Christmas, but... The 2.2-ALPHA floppies were fine, but the BETA release has some problems: 1. After I setup everything and start formatting/downloading, the FTP connection cannot be open (the same setup, hardware was working with ALPHA) 2. The fixit floppy cannot be used. All messages appear, but not the prompt. Regards, Pavlin Radoslavov pavlin@catarina.usc.edu P.S. I am not on the mailing list From owner-freebsd-bugs Tue Dec 24 20:42:50 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA26756 for bugs-outgoing; Tue, 24 Dec 1996 20:42:50 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id UAA26731 for ; Tue, 24 Dec 1996 20:42:42 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.4/8.6.9) with ESMTP id UAA14489; Tue, 24 Dec 1996 20:42:07 -0800 (PST) To: Pavlin Ivanov Radoslavov cc: bugs@freebsd.org Subject: Re: 2.2-BETA installation floppies don't work In-reply-to: Your message of "Tue, 24 Dec 1996 16:34:33 PST." <199612250035.QAA05339@catarina.usc.edu> Date: Tue, 24 Dec 1996 20:42:07 -0800 Message-ID: <14485.851488927@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > The 2.2-ALPHA floppies were fine, but the BETA release has some > problems: > 1. After I setup everything and start formatting/downloading, the > FTP connection cannot be open (the same setup, hardware was working > with ALPHA) Try again - I had the version number wrong and just re-rolled and replaced the BETA floppies on ftp.freebsd.org. :-} > 2. The fixit floppy cannot be used. All messages appear, but not the > prompt. Interesting - I will investigate. Perhaps I've closed stdin. :) Jordan From owner-freebsd-bugs Tue Dec 24 20:59:24 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA27188 for bugs-outgoing; Tue, 24 Dec 1996 20:59:24 -0800 (PST) Received: from catarina.usc.edu (catarina.usc.edu [128.125.51.47]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id UAA27183 for ; Tue, 24 Dec 1996 20:59:23 -0800 (PST) Received: from carlsbad.usc.edu (carlsbad.usc.edu [128.125.51.5]) by catarina.usc.edu (8.6.10/8.6.9) with SMTP id UAA05590; Tue, 24 Dec 1996 20:59:28 -0800 Message-Id: <199612250459.UAA05590@catarina.usc.edu> X-Authentication-Warning: catarina.usc.edu: Host carlsbad.usc.edu didn't use HELO protocol To: "Jordan K. Hubbard" cc: bugs@freebsd.org Subject: Re: 2.2-BETA installation floppies don't work In-reply-to: Your message of "Tue, 24 Dec 1996 20:42:07 PST." <14485.851488927@time.cdrom.com> Date: Tue, 24 Dec 1996 20:58:51 -0800 From: Pavlin Ivanov Radoslavov Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > The 2.2-ALPHA floppies were fine, but the BETA release has some > > problems: > > 1. After I setup everything and start formatting/downloading, the > > FTP connection cannot be open (the same setup, hardware was working > > with ALPHA) > > Try again - I had the version number wrong and just re-rolled and replaced > the BETA floppies on ftp.freebsd.org. :-} Now the FTP problem has gone. However, aborting the installation (Ctrl-C) shows the confirmation window and then blocks. Switching to the other virtual terminals is OK and VT4 is working. > > 2. The fixit floppy cannot be used. All messages appear, but not the > > prompt. > > Interesting - I will investigate. Perhaps I've closed stdin. :) That problems is still there :-(( Pavlin From owner-freebsd-bugs Tue Dec 24 23:35:06 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA01022 for bugs-outgoing; Tue, 24 Dec 1996 23:35:06 -0800 (PST) Received: from crh.cl.msu.edu (crh.cl.msu.edu [35.8.1.24]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id XAA01016 for ; Tue, 24 Dec 1996 23:35:04 -0800 (PST) Received: (from henrich@localhost) by crh.cl.msu.edu (8.8.2/8.8.2) id CAA02824; Wed, 25 Dec 1996 02:35:03 -0500 (EST) Date: Wed, 25 Dec 1996 02:35:03 -0500 (EST) From: Charles Henrich Message-Id: <199612250735.CAA02824@crh.cl.msu.edu> To: jkh@time.cdrom.com, freebsd-bugs@freebsd.org Subject: Re: 2.2-BETA installation floppies don't work Newsgroups: lists.freebsd.bugs References: <59qbjb$2656@msunews.cl.msu.edu> X-Newsreader: NN version 6.5.0 #1 (NOV) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In lists.freebsd.bugs you write: >> The 2.2-ALPHA floppies were fine, but the BETA release has some >> problems: >> 1. After I setup everything and start formatting/downloading, the >> FTP connection cannot be open (the same setup, hardware was working >> with ALPHA) >Try again - I had the version number wrong and just re-rolled and replaced >the BETA floppies on ftp.freebsd.org. :-} Cool! :) I thought I had copied everything correctly :) One comment, would it be possible to increase the chunk size of the distributions? Its just too small to get any good streaming, with the standard distributions I was seeing ~70K/sec, with the X distributions (larger .tgz files) I was getting consistantly 200K+/sec (this is all over a cable network, sort of like an install one T1 away from cdrom.com). -Crh -- Charles Henrich Michigan State University henrich@msu.edu http://pilot.msu.edu/~henrich From owner-freebsd-bugs Wed Dec 25 01:06:09 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA02959 for bugs-outgoing; Wed, 25 Dec 1996 01:06:09 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id BAA02954 for ; Wed, 25 Dec 1996 01:06:07 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id BAA02062; Wed, 25 Dec 1996 01:04:49 -0800 (PST) Message-Id: <199612250904.BAA02062@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Charles Henrich cc: jkh@time.cdrom.com, freebsd-bugs@freebsd.org Subject: Re: 2.2-BETA installation floppies don't work In-reply-to: Your message of "Wed, 25 Dec 1996 02:35:03 EST." <199612250735.CAA02824@crh.cl.msu.edu> From: David Greenman Reply-To: dg@root.com Date: Wed, 25 Dec 1996 01:04:49 -0800 Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >In lists.freebsd.bugs you write: > >>> The 2.2-ALPHA floppies were fine, but the BETA release has some >>> problems: >>> 1. After I setup everything and start formatting/downloading, the >>> FTP connection cannot be open (the same setup, hardware was working >>> with ALPHA) > >>Try again - I had the version number wrong and just re-rolled and replaced >>the BETA floppies on ftp.freebsd.org. :-} > >Cool! :) I thought I had copied everything correctly :) One comment, would it >be possible to increase the chunk size of the distributions? Its just too >small to get any good streaming, with the standard distributions I was seeing >~70K/sec, with the X distributions (larger .tgz files) I was getting >consistantly 200K+/sec (this is all over a cable network, sort of like an >install one T1 away from cdrom.com). Yes, well, most people are getting the bits with dialup SLIP or PPP and 240K/chunk is rather large in that case. I'd prefer that the chunk size stay at 240K... -DG David Greenman Core-team/Principal Architect, The FreeBSD Project From owner-freebsd-bugs Wed Dec 25 01:30:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA03548 for bugs-outgoing; Wed, 25 Dec 1996 01:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA03542; Wed, 25 Dec 1996 01:30:02 -0800 (PST) Resent-Date: Wed, 25 Dec 1996 01:30:02 -0800 (PST) Resent-Message-Id: <199612250930.BAA03542@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.BAA03453;Wed; (8.8.4/8.8.4);, 25 Dec 1996 01:26:15.-0800 (PST) Message-Id: <199612250926.BAA03453@freefall.freebsd.org> Date: Wed, 25 Dec 1996 01:26:15 -0800 (PST) From: brian@mpress.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: kern/2277: 2.2-BETA fails to boot on my laptop Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2277 >Category: kern >Synopsis: 2.2-BETA fails to boot on my laptop >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 01:30:01 PST 1996 >Last-Modified: >Originator: Brian Litzinger >Organization: >Release: 2.2-BETA >Environment: I can't boot in 2.2-BETA, 2.1.6 works fine though. >Description: 2.1.6 works fine on my laptop. 2.2-ALPHA, 2.2-BETA crash just after the kernel boot displays the last device (which is a disabled apm0). The top 3 lines of the display get messages up with the crash happens and the machine is frozen. system works fine with 2.1.6 abd a -current from about 9 months ago. My system is a Chembook/Chicony 9750. P5-133, 32MB with C&T 65550 VGA controller driving 1024x768 LCD panel. The crash happens if I install 2.2-BETA from scratch, or if I just run a 2.2-BETA kernel under a 2.1.6 install. >How-To-Repeat: boot a 2.2-ALPHA, or 2.2-BETA kernel on my laptop. >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Dec 25 02:28:07 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA04762 for bugs-outgoing; Wed, 25 Dec 1996 02:28:07 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id CAA04757 for ; Wed, 25 Dec 1996 02:28:04 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.4/8.6.9) with ESMTP id CAA15214; Wed, 25 Dec 1996 02:27:59 -0800 (PST) To: Pavlin Ivanov Radoslavov cc: bugs@freebsd.org Subject: Re: 2.2-BETA installation floppies don't work In-reply-to: Your message of "Tue, 24 Dec 1996 20:58:51 PST." <199612250459.UAA05590@catarina.usc.edu> Date: Wed, 25 Dec 1996 02:27:59 -0800 Message-ID: <15210.851509679@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Now the FTP problem has gone. However, aborting the installation > (Ctrl-C) shows the confirmation window and then blocks. Switching to > the other virtual terminals is OK and VT4 is working. Installation abort is undergoing some changes and will probably remain suboptimal for a little while longer. > > Interesting - I will investigate. Perhaps I've closed stdin. :) > > That problems is still there :-(( I didn't change anything for that when I re-rolled the floppies; that's a longer-term project. :) Jordan From owner-freebsd-bugs Wed Dec 25 02:36:28 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA04959 for bugs-outgoing; Wed, 25 Dec 1996 02:36:28 -0800 (PST) Received: from siili.inet.fi (siili.inet.fi [192.89.123.191]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id CAA04946; Wed, 25 Dec 1996 02:36:05 -0800 (PST) Received: from jau.tmt.tele.fi (jau.tmt.tele.fi [194.251.252.34]) by siili.inet.fi (8.8.3/8.8.0) with ESMTP id MAA26246; Wed, 25 Dec 1996 12:34:13 +0200 Received: (from jau@localhost) by jau.tmt.tele.fi (8.8.3/8.6.12+CSC-2.1) id MAA09646; Wed, 25 Dec 1996 12:37:22 +0200 (EET) From: "Jukka A. Ukkonen" Message-Id: <199612251037.MAA09646@jau.tmt.tele.fi> Subject: Re: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches To: FreeBSD-gnats@freefall.freebsd.org, freebsd-bugs@freefall.freebsd.org Date: Wed, 25 Dec 1996 12:37:17 +0200 (EET) In-Reply-To: <199612241330.FAA21372@freefall.freebsd.org> from "FreeBSD-gnats@freefall.freebsd.org" at Dec 24, 96 05:30:01 am Latin-Date: Miercuri XXV Decembrie a.d. MCMXCVI Organization: Internet and New Media / Telecom Finland Phone: +358-2040-4025 (office) / +358-400-606671 (mobile) Content-Conversion: prohibited X-Mailer: ELM [version 2.4 PL25+pgp] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Quoting FreeBSD-gnats@freefall.freebsd.org: > > Thank you very much for your problem report. > It has the internal identification `kern/2273'. > The individual assigned to look at your > bug is: freebsd-bugs. > > >Category: kern > >Responsible: freebsd-bugs > >Synopsis: support for POSIX.4 / POSIX.1a RT-scheduler API > >Arrival-Date: Tue Dec 24 05:30:01 PST 1996 > In fact there was at least one file (sched_rr_get_interval.c) missing from the shar package I sent earlier. I attach a more complete shar package at the end of this message. I also forgot to mention that you should add the lines #define _POSIX_PRIORITY_SCHEDULING and #define _SC_POSIX_SCHEDULING 28 /* or whatever number */ in /usr/include/unistd.h (or /usr/include/sys/unistd.h or some other file included by /usr/include/unistd.h), if you decide to add POSIX.4 scheduler API to the system. Cheers, // jau ------ / Jukka A. Ukkonen, Internet and New Media / Finnish Telecom Ltd. /__ M.Sc. (sw-eng & cs) (Phone) +358-2040-4025 / Internet: Jukka.Ukkonen@tele.fi (Fax) +358-2040-2712 / Internet: jau@iki.fi (Mobile) +358-400-606671 v Internet: ukkonen@nic.funet.fi (Home&Fax) +358-9-6215280 o \ / - X ------------------------- clip clip ------------------------------ / \ O # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sched.h # sched_getparam.c # sched_getscheduler.c # sched_get_priority_max.c # sched_get_priority_min.c # sched_setparam.c # sched_setscheduler.c # sched_yield.c # Kernel.Diffs # RTprio.diffs # echo x - sched.h sed 's/^X//' >sched.h << 'END-of-sched.h' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#ifndef _SCHED_H X#define _SCHED_H X X#include X#include X#include /* For struct timespec */ X X#ifndef _POSIX_PRIORITY_SCHEDULING X# define _POSIX_PRIORITY_SCHEDULING X#endif X X/* X * FIFO and Round-Robin must really be separate, but maybe X * it could be possible and worthwhile to try approximate FIFO X * using RR with higher priorities. X * X * RTP_PRIO_REALTIME with round-robin among equal priority X * processes at every time-quantum (= currently HZ/10) would X * still be only a poor substitute for fifo scheduling on X * systems that don't have a real fifo policy. X * X * Otherwise FIFO and RR are equivalent in all respects, but X * RR comes with involuntary release of CPU after the time X * quantum has passed. X * FIFO knows only about voluntary release of the CPU while X * the process can run as long as it wishes. So, you really X * can hang your machine, if there is no other process with X * higher RT-priority (FIFO or RR) ready to kill a infinitely X * looping FIFO process. X */ X X#ifdef RTP_PRIO_FIFO X# define SCHED_FIFO RTP_PRIO_FIFO X#else X# define SCHED_FIFO RTP_PRIO_REALTIME X#endif X X#define SCHED_RR RTP_PRIO_REALTIME X#define SCHED_TIMESHARE RTP_PRIO_NORMAL X#define SCHED_IDLE RTP_PRIO_IDLE X#define SCHED_OTHER SCHED_TIMESHARE X X/* X * Hopefully someone is interested enough to add X * the necessary deadline logic to the kernel. X */ X X#ifdef RTP_PRIO_DEADLINE X# define SCHED_DEADLINE RTP_PRIO_DEADLINE X#endif X Xstruct sched_param { X int sched_type; /* scheduling policy */ X int sched_priority; /* nice for time-share, else true prio */ X int sched_pgprio; /* pg-nice for TS, else unused */ X int sched_userprio; /* user-nice for TS, else unused */ X struct timespec sched_deadline; /* reserved for deadline scheduling */ X struct timespec sched_timereq; /* reserved for deadline scheduling */ X}; X X#endif END-of-sched.h echo x - sched_getparam.c sed 's/^X//' >sched_getparam.c << 'END-of-sched_getparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_getparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X param->sched_type = rtp.type; X X if (rtp.type == RTP_PRIO_NORMAL) { X errno = 0; X X param->sched_priority = getpriority (PRIO_PROCESS, pid); X X if ((param->sched_priority == -1) && errno) X return (-1); X X param->sched_priority = -param->sched_priority; X X errno = 0; X X param->sched_pgprio = getpriority (PRIO_PGRP, pid); X X if ((param->sched_pgprio == -1) && errno) X return (-1); X X param->sched_pgprio = -param->sched_pgprio; X X errno = 0; X X param->sched_userprio = getpriority (PRIO_USER, pid); X X if ((param->sched_userprio == -1) && errno) X return (-1); X X param->sched_userprio = -param->sched_userprio; X } X else X param->sched_priority = RTP_PRIO_MAX - rtp.prio; X X return (0); X} END-of-sched_getparam.c echo x - sched_getscheduler.c sed 's/^X//' >sched_getscheduler.c << 'END-of-sched_getscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X Xint Xsched_getscheduler (pid) X pid_t pid; X{ X struct rtprio rtp; X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X return ((int) rtp.type); X} END-of-sched_getscheduler.c echo x - sched_get_priority_max.c sed 's/^X//' >sched_get_priority_max.c << 'END-of-sched_get_priority_max.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MAX); X X case SCHED_TIMESHARE: X return (PRIO_MAX); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched_get_priority_max.c echo x - sched_get_priority_min.c sed 's/^X//' >sched_get_priority_min.c << 'END-of-sched_get_priority_min.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MIN); X X case SCHED_TIMESHARE: X return (PRIO_MIN); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched_get_priority_min.c echo x - sched_setparam.c sed 's/^X//' >sched_setparam.c << 'END-of-sched_setparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X if (rtp.type == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched_setparam.c echo x - sched_setscheduler.c sed 's/^X//' >sched_setscheduler.c << 'END-of-sched_setscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setscheduler (pid, policy, param) X pid_t pid; X int policy; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X rtp.type = policy; X X if (policy == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched_setscheduler.c echo x - sched_yield.c sed 's/^X//' >sched_yield.c << 'END-of-sched_yield.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X Xint Xsched_yield () X{ X struct timeval timeout; X X timeout.tv_sec = timeout.tv_usec = 0; X X /* X * Select a system call that will never hang waiting for X * something really happen to force an entry to the kernel. X * X * The entry to kernel code with zero timeout should cause X * a new scheduling decission to be made. X */ X X if ((select (0, NULL, NULL, NULL, &timeout) < 0) && (errno != EINTR)) X return (-1); X X return (0); X} X END-of-sched_yield.c echo x - Kernel.Diffs sed 's/^X//' >Kernel.Diffs << 'END-of-Kernel.Diffs' X--- /sys/kern/kern_resource.c.orig Tue May 30 11:05:39 1995 X+++ /sys/kern/kern_resource.c Mon Dec 25 20:52:30 1995 X@@ -247,8 +247,11 @@ X /* can't set realtime priority */ X if (rtp.type == RTP_PRIO_REALTIME) X return (EPERM); X+ if (rtp.type == RTP_PRIO_FIFO) X+ return (EPERM); X } X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X case RTP_PRIO_REALTIME: X case RTP_PRIO_NORMAL: X case RTP_PRIO_IDLE: X--- /sys/kern/kern_synch.c.orig Tue May 30 11:05:44 1995 X+++ /sys/kern/kern_synch.c Tue Dec 26 16:23:20 1995 X@@ -67,8 +67,10 @@ X roundrobin(arg) X void *arg; X { X+ if (! curproc || curproc->p_rtprio.type != RTP_PRIO_FIFO) { X+ need_resched(); X+ } X X- need_resched(); X timeout(roundrobin, NULL, hz / 10); X } X X@@ -670,7 +672,11 @@ X p->p_usrpri = newpriority; X if (newpriority < curpriority) X need_resched(); X- } else { X+ } else if (! curproc || X+ (curproc->p_rtprio.type != RTP_PRIO_FIFO) || X+ (((p->p_rtprio.type == RTP_PRIO_FIFO) || X+ (p->p_rtprio.type == RTP_PRIO_REALTIME)) && X+ (p->p_rtprio.prio < curproc->p_rtprio.prio))) { X need_resched(); X } X } X--- /sys/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /sys/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X X--- /sys/i386/i386/swtch.s.orig Tue Dec 26 14:19:25 1995 X+++ /sys/i386/i386/swtch.s Tue Dec 26 14:20:58 1995 X@@ -90,6 +90,9 @@ X X movzwl P_RTPRIO_PRIO(%eax),%edx X X+ cmpw $RTP_PRIO_FIFO,P_RTPRIO_TYPE(%eax) /* fifo rt priority? */ X+ je set_rt X+ X cmpw $RTP_PRIO_REALTIME,P_RTPRIO_TYPE(%eax) /* realtime priority? */ X jne set_id /* must be idle priority */ X X--- /sys/vm/vm_glue.c.orig Mon Oct 16 22:43:05 1995 X+++ /sys/vm/vm_glue.c Mon Dec 25 20:52:32 1995 X@@ -430,6 +430,9 @@ X /* X * do not swapout a realtime process X */ X+ if (p->p_rtprio.type == RTP_PRIO_FIFO) X+ continue; X+ X if (p->p_rtprio.type == RTP_PRIO_REALTIME) X continue; X X--- /usr/include/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /usr/include/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X END-of-Kernel.Diffs echo x - RTprio.diffs sed 's/^X//' >RTprio.diffs << 'END-of-RTprio.diffs' X--- /usr/src/usr.sbin/rtprio/rtprio.c.orig Sun Oct 2 06:48:21 1994 X+++ /usr/src/usr.sbin/rtprio/rtprio.c Tue Dec 26 11:18:20 1995 X@@ -63,6 +63,10 @@ X X if (!strcmp(p, "rtprio")) X rtp.type = RTP_PRIO_REALTIME; X+#ifdef RTP_PRIO_FIFO X+ else if (!strcmp(p, "rtfifoprio")) X+ rtp.type = RTP_PRIO_FIFO; X+#endif X else if (!strcmp(p, "idprio")) X rtp.type = RTP_PRIO_IDLE; X X@@ -76,8 +80,13 @@ X perror(argv[0]); X exit (1); X } X+ X printf("%s: ", p); X+ X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X+ printf("hard realtime fifo priority %d\n", rtp.prio); X+ break; X case RTP_PRIO_REALTIME: X printf("realtime priority %d\n", rtp.prio); X break; END-of-RTprio.diffs exit From owner-freebsd-bugs Wed Dec 25 02:47:19 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA05223 for bugs-outgoing; Wed, 25 Dec 1996 02:47:19 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA05200; Wed, 25 Dec 1996 02:47:11 -0800 (PST) Date: Wed, 25 Dec 1996 02:47:11 -0800 (PST) From: Joerg Wunsch Message-Id: <199612251047.CAA05200@freefall.freebsd.org> To: m230761@ingenieria.ingsala.unal.edu.co, joerg, freebsd-bugs Subject: Re: bin/2274 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Old ports (gopher and W3_httpd) require new URLs State-Changed-From-To: open-closed State-Changed-By: joerg State-Changed-When: Wed Dec 25 11:46:40 MET 1996 State-Changed-Why: Please close that pr,it is inaccurate and I sent it to the wrong group. sorry for the inconvinience. Pedro. From owner-freebsd-bugs Wed Dec 25 03:02:07 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA05451 for bugs-outgoing; Wed, 25 Dec 1996 03:02:07 -0800 (PST) Received: from siili.inet.fi (siili.inet.fi [192.89.123.191]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id DAA05440; Wed, 25 Dec 1996 03:01:45 -0800 (PST) Received: from jau.tmt.tele.fi (jau.tmt.tele.fi [194.251.252.34]) by siili.inet.fi (8.8.3/8.8.0) with ESMTP id MAA26522; Wed, 25 Dec 1996 12:59:53 +0200 Received: (from jau@localhost) by jau.tmt.tele.fi (8.8.3/8.6.12+CSC-2.1) id NAA09808; Wed, 25 Dec 1996 13:03:03 +0200 (EET) From: "Jukka A. Ukkonen" Message-Id: <199612251103.NAA09808@jau.tmt.tele.fi> Subject: Re: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches To: FreeBSD-gnats@freefall.freebsd.org, freebsd-bugs@freefall.freebsd.org Date: Wed, 25 Dec 1996 13:02:58 +0200 (EET) In-Reply-To: <199612241330.FAA21372@freefall.freebsd.org> from "FreeBSD-gnats@freefall.freebsd.org" at Dec 24, 96 05:30:01 am Latin-Date: Miercuri XXV Decembrie a.d. MCMXCVI Organization: Internet and New Media / Telecom Finland Phone: +358-2040-4025 (office) / +358-400-606671 (mobile) Content-Conversion: prohibited X-Mailer: ELM [version 2.4 PL25+pgp] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Quoting FreeBSD-gnats@freefall.freebsd.org: > > Thank you very much for your problem report. > It has the internal identification `kern/2273'. > The individual assigned to look at your > bug is: freebsd-bugs. > > >Category: kern > >Responsible: freebsd-bugs > >Synopsis: support for POSIX.4 / POSIX.1a RT-scheduler API > >Arrival-Date: Tue Dec 24 05:30:01 PST 1996 > Aargh! I did it again - sent the old shar package, I mean. Now the attached one is the correct one. I promise. Cheers, // jau ------ / Jukka A. Ukkonen, Internet and New Media / Finnish Telecom Ltd. /__ M.Sc. (sw-eng & cs) (Phone) +358-2040-4025 / Internet: Jukka.Ukkonen@tele.fi (Fax) +358-2040-2712 / Internet: jau@iki.fi (Mobile) +358-400-606671 v Internet: ukkonen@nic.funet.fi (Home&Fax) +358-9-6215280 o \ / - X ------------------------- clip clip ------------------------------ / \ O # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sched/sched.h # sched/sched_getparam.c # sched/sched_getscheduler.c # sched/sched_get_priority_max.c # sched/sched_get_priority_min.c # sched/sched_rr_get_interval.c # sched/sched_setparam.c # sched/sched_setscheduler.c # sched/Makefile # sched/Kernel-Sched.Diffs # sched/sched_yield.Diffs # sched/RTprio.diffs # echo x - sched/sched.h sed 's/^X//' >sched/sched.h << 'END-of-sched/sched.h' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X X#ifndef _SCHED_H X#define _SCHED_H X X#include X#include X#include /* For struct timespec */ X X#ifndef _POSIX_PRIORITY_SCHEDULING X# define _POSIX_PRIORITY_SCHEDULING X#endif X X/* X * FIFO and Round-Robin must really be separate, but maybe X * it could be possible and worthwhile to try approximate FIFO X * using RR with higher priorities. X * X * RTP_PRIO_REALTIME with round-robin among equal priority X * processes at every time-quantum (= currently HZ/10) would X * still be only a poor substitute for fifo scheduling on X * systems that don't have a real fifo policy. X * X * Otherwise FIFO and RR are equivalent in all respects, but X * RR comes with involuntary release of CPU after the time X * quantum has passed. X * FIFO knows only about voluntary release of the CPU while X * the process can run as long as it wishes. So, you really X * can hang your machine, if there is no other process with X * higher RT-priority (FIFO or RR) ready to kill a infinitely X * looping FIFO process. X */ X X#ifdef RTP_PRIO_FIFO X# define SCHED_FIFO RTP_PRIO_FIFO X#else X# define SCHED_FIFO RTP_PRIO_REALTIME X#endif X X#define SCHED_RR RTP_PRIO_REALTIME X#define SCHED_TIMESHARE RTP_PRIO_NORMAL X#define SCHED_IDLE RTP_PRIO_IDLE X#define SCHED_OTHER SCHED_TIMESHARE X X/* X * Hopefully someone is interested enough to add X * the necessary deadline logic to the kernel. X */ X X#ifdef RTP_PRIO_DEADLINE X# define SCHED_DEADLINE RTP_PRIO_DEADLINE X#endif X Xstruct sched_param { X int sched_type; /* scheduling policy */ X int sched_priority; /* nice for time-share, else true prio */ X int sched_pgprio; /* pg-nice for TS, else unused */ X int sched_userprio; /* user-nice for TS, else unused */ X struct timespec sched_deadline; /* reserved for deadline scheduling */ X struct timespec sched_timereq; /* reserved for deadline scheduling */ X}; X X#endif END-of-sched/sched.h echo x - sched/sched_getparam.c sed 's/^X//' >sched/sched_getparam.c << 'END-of-sched/sched_getparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_getparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X param->sched_type = rtp.type; X X if (rtp.type == RTP_PRIO_NORMAL) { X errno = 0; X X param->sched_priority = getpriority (PRIO_PROCESS, pid); X X if ((param->sched_priority == -1) && errno) X return (-1); X X param->sched_priority = -param->sched_priority; X X errno = 0; X X param->sched_pgprio = getpriority (PRIO_PGRP, pid); X X if ((param->sched_pgprio == -1) && errno) X return (-1); X X param->sched_pgprio = -param->sched_pgprio; X X errno = 0; X X param->sched_userprio = getpriority (PRIO_USER, pid); X X if ((param->sched_userprio == -1) && errno) X return (-1); X X param->sched_userprio = -param->sched_userprio; X } X else X param->sched_priority = RTP_PRIO_MAX - rtp.prio; X X return (0); X} END-of-sched/sched_getparam.c echo x - sched/sched_getscheduler.c sed 's/^X//' >sched/sched_getscheduler.c << 'END-of-sched/sched_getscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X Xint Xsched_getscheduler (pid) X pid_t pid; X{ X struct rtprio rtp; X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X return ((int) rtp.type); X} END-of-sched/sched_getscheduler.c echo x - sched/sched_get_priority_max.c sed 's/^X//' >sched/sched_get_priority_max.c << 'END-of-sched/sched_get_priority_max.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X errno = 0; X X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MAX); X X case SCHED_TIMESHARE: X return (PRIO_MAX); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched/sched_get_priority_max.c echo x - sched/sched_get_priority_min.c sed 's/^X//' >sched/sched_get_priority_min.c << 'END-of-sched/sched_get_priority_min.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X errno = 0; X X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MIN); X X case SCHED_TIMESHARE: X return (PRIO_MIN); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched/sched_get_priority_min.c echo x - sched/sched_rr_get_interval.c sed 's/^X//' >sched/sched_rr_get_interval.c << 'END-of-sched/sched_rr_get_interval.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X Xint Xsched_rr_get_interval (pid, ts) X pid_t pid; X struct timespec *ts; X{ X struct clockinfo cinfo; X struct rtprio rtp; X int sysmib[2]; X size_t cinfosize; X X if (! ts) { X errno = EFAULT; X X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X if (rtp.type != SCHED_RR) { X errno = EINVAL; X X return (-1); X } X X cinfosize = sizeof (cinfo); X X sysmib[0] = CTL_KERN; X sysmib[1] = KERN_CLOCKRATE; X X if (sysctl (sysmib, 2, &cinfo, &cinfosize, NULL, 0) < 0) X return (-1); X X ts->ts_sec = 0; X ts->ts_nsec = cinfo.tick * 10 * 1000; /* really (hz / 10) */ X X return (0); X} X X#ifdef DEBUG_SCHED_RR_GET_INTERVAL X Xint Xmain () X{ X struct timespec ts; X X if (sched_rr_get_interval (getpid (), &ts) < 0) { X perror ("sched_rr_get_interval ()"); X exit (-1); X } X X printf ("ts.ts_sec = %d, ts.ts_nsec = %d\n", ts.ts_sec, ts.ts_nsec); X X return (0); X} X X#endif X END-of-sched/sched_rr_get_interval.c echo x - sched/sched_setparam.c sed 's/^X//' >sched/sched_setparam.c << 'END-of-sched/sched_setparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X if (rtp.type == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched/sched_setparam.c echo x - sched/sched_setscheduler.c sed 's/^X//' >sched/sched_setscheduler.c << 'END-of-sched/sched_setscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setscheduler (pid, policy, param) X pid_t pid; X int policy; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X rtp.type = policy; X X if (policy == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched/sched_setscheduler.c echo x - sched/Makefile sed 's/^X//' >sched/Makefile << 'END-of-sched/Makefile' X XCC = gcc X X.c.o: X $(CC) $(CFLAGS) -c $< X ld -r -x $@ X mv a.out $@ X chmod a-x $@ X XCINCL = -I../include -I../ctype X XCFLAGS = -O4 -fexpensive-optimizations -fpcc-struct-return -funsigned-char \ X -D_NO_POSIX_OPAQUE_TYPES $(CDEBUG) $(CINCL) X#CFLAGS = $(CDEBUG) $(CINCL) X XSRCS = \ X sched_get_priority_max.c sched_setparam.c \ X sched_get_priority_min.c sched_setscheduler.c \ X sched_getparam.c sched_getscheduler.c \ X sched_rr_get_interval.c X XOBJS = \ X sched_get_priority_max.o sched_setparam.o \ X sched_get_priority_min.o sched_setscheduler.o \ X sched_getparam.o sched_getscheduler.o \ X sched_rr_get_interval.o X Xlibsched.a: $(OBJS) X rm -f $@ X ar rv $@ $(OBJS) X ranlib $@ X END-of-sched/Makefile echo x - sched/Kernel-Sched.Diffs sed 's/^X//' >sched/Kernel-Sched.Diffs << 'END-of-sched/Kernel-Sched.Diffs' X--- /sys/kern/kern_resource.c.orig Tue May 30 11:05:39 1995 X+++ /sys/kern/kern_resource.c Mon Dec 25 20:52:30 1995 X@@ -247,8 +247,11 @@ X /* can't set realtime priority */ X if (rtp.type == RTP_PRIO_REALTIME) X return (EPERM); X+ if (rtp.type == RTP_PRIO_FIFO) X+ return (EPERM); X } X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X case RTP_PRIO_REALTIME: X case RTP_PRIO_NORMAL: X case RTP_PRIO_IDLE: X--- /sys/kern/kern_synch.c.orig Tue May 30 11:05:44 1995 X+++ /sys/kern/kern_synch.c Tue Dec 26 16:23:20 1995 X@@ -67,8 +67,10 @@ X roundrobin(arg) X void *arg; X { X+ if (! curproc || curproc->p_rtprio.type != RTP_PRIO_FIFO) { X+ need_resched(); X+ } X X- need_resched(); X timeout(roundrobin, NULL, hz / 10); X } X X@@ -670,7 +672,11 @@ X p->p_usrpri = newpriority; X if (newpriority < curpriority) X need_resched(); X- } else { X+ } else if (! curproc || X+ (curproc->p_rtprio.type != RTP_PRIO_FIFO) || X+ (((p->p_rtprio.type == RTP_PRIO_FIFO) || X+ (p->p_rtprio.type == RTP_PRIO_REALTIME)) && X+ (p->p_rtprio.prio < curproc->p_rtprio.prio))) { X need_resched(); X } X } X--- /sys/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /sys/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X X--- /sys/i386/i386/swtch.s.orig Tue Dec 26 14:19:25 1995 X+++ /sys/i386/i386/swtch.s Tue Dec 26 14:20:58 1995 X@@ -90,6 +90,9 @@ X X movzwl P_RTPRIO_PRIO(%eax),%edx X X+ cmpw $RTP_PRIO_FIFO,P_RTPRIO_TYPE(%eax) /* fifo rt priority? */ X+ je set_rt X+ X cmpw $RTP_PRIO_REALTIME,P_RTPRIO_TYPE(%eax) /* realtime priority? */ X jne set_id /* must be idle priority */ X X--- /sys/vm/vm_glue.c.orig Mon Oct 16 22:43:05 1995 X+++ /sys/vm/vm_glue.c Mon Dec 25 20:52:32 1995 X@@ -430,6 +430,9 @@ X /* X * do not swapout a realtime process X */ X+ if (p->p_rtprio.type == RTP_PRIO_FIFO) X+ continue; X+ X if (p->p_rtprio.type == RTP_PRIO_REALTIME) X continue; X X--- /usr/include/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /usr/include/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X END-of-sched/Kernel-Sched.Diffs echo x - sched/sched_yield.Diffs sed 's/^X//' >sched/sched_yield.Diffs << 'END-of-sched/sched_yield.Diffs' X--- /sys/kern/init_sysent.c.no_sched_yield Wed Dec 4 23:41:55 1996 X+++ /sys/kern/init_sysent.c Wed Dec 4 23:49:14 1996 X@@ -179,6 +179,7 @@ X int mlock(); X int munlock(); X int getsid(); X+int sched_yield(); X int lkmnosys(); X X #ifdef COMPAT_43 X@@ -489,7 +490,8 @@ X { 2, munlock }, /* 204 = munlock */ X /* { 0, nosys }, 205 = nosys */ X { 1, getsid }, /* 205 = getsid */ X- { 0, nosys }, /* 206 = nosys */ X+ /* { 0, nosys }, 206 = nosys */ X+ { 0, sched_yield }, /* 206 = sched_yield */ X { 0, nosys }, /* 207 = nosys */ X { 0, nosys }, /* 208 = nosys */ X { 0, nosys }, /* 209 = nosys */ X--- /sys/kern/syscalls.c.no_sched_yield Wed Dec 4 23:42:24 1996 X+++ /sys/kern/syscalls.c Wed Dec 4 23:46:07 1996 X@@ -249,7 +249,8 @@ X "munlock", /* 204 = munlock */ X /* "#205", 205 = nosys */ X "getsid", /* 205 = getsid */ X- "#206", /* 206 = nosys */ X+ /* "#206", 206 = nosys */ X+ "sched_yield", /* 206 = sched_yield */ X "#207", /* 207 = nosys */ X "#208", /* 208 = nosys */ X "#209", /* 209 = nosys */ X--- /sys/kern/syscalls.master.no_sched_yield Wed Dec 4 23:42:43 1996 X+++ /sys/kern/syscalls.master Wed Dec 4 23:44:28 1996 X@@ -280,7 +280,8 @@ X 204 STD 2 BSD munlock X ; 205 UNIMPL 0 NOHIDE nosys X 205 STD 1 BSD getsid X-206 UNIMPL 0 NOHIDE nosys X+; 206 UNIMPL 0 NOHIDE nosys X+206 STD 0 POSIX sched_yield X 207 UNIMPL 0 NOHIDE nosys X 208 UNIMPL 0 NOHIDE nosys X 209 UNIMPL 0 NOHIDE nosys X--- /sys/kern/kern_synch.c.no_sched_yield Tue Dec 24 13:12:02 1996 X+++ /sys/kern/kern_synch.c Tue Dec 24 11:25:33 1996 X@@ -681,3 +681,20 @@ X } X } X X+struct sched_yield_args { X+ void *arg; X+}; X+/* ARGSUSED */ X+int X+sched_yield (p, uap, retval) X+ struct proc *p; X+ struct sched_yield_args *uap; X+ int *retval; X+{ X+ need_resched (); /* Wild, isn't it? */ X+ X+ *retval = 0; X+ X+ return (0); X+} X+ X--- /usr/include/sys/syscall.h.no_sched_yield Tue Dec 24 13:19:56 1996 X+++ /usr/include/sys/syscall.h Tue Dec 24 12:23:18 1996 X@@ -193,3 +193,4 @@ X #define SYS_mlock 203 X #define SYS_munlock 204 X #define SYS_getsid 205 X+#define SYS_sched_yield 206 X--- /usr/include/unistd.h.no_sched_yield Tue Dec 24 13:18:59 1996 X+++ /usr/include/unistd.h Tue Dec 24 12:39:59 1996 X@@ -174,6 +174,7 @@ X int vhangup __P((void)); X void *valloc __P((size_t)); /* obsoleted by malloc() */ X pid_t vfork __P((void)); X+int sched_yield __P((void)); X #endif /* !_POSIX_SOURCE */ X __END_DECLS X X--- /sys/sys/syscall.h.no_sched_yield Tue Dec 24 13:22:52 1996 X+++ /sys/sys/syscall.h Tue Dec 24 12:23:56 1996 X@@ -193,3 +193,4 @@ X #define SYS_mlock 203 X #define SYS_munlock 204 X #define SYS_getsid 205 X+#define SYS_sched_yield 206 END-of-sched/sched_yield.Diffs echo x - sched/RTprio.diffs sed 's/^X//' >sched/RTprio.diffs << 'END-of-sched/RTprio.diffs' X--- /usr/src/usr.sbin/rtprio/rtprio.c.orig Sun Oct 2 06:48:21 1994 X+++ /usr/src/usr.sbin/rtprio/rtprio.c Tue Dec 26 11:18:20 1995 X@@ -63,6 +63,10 @@ X X if (!strcmp(p, "rtprio")) X rtp.type = RTP_PRIO_REALTIME; X+#ifdef RTP_PRIO_FIFO X+ else if (!strcmp(p, "rtfifoprio")) X+ rtp.type = RTP_PRIO_FIFO; X+#endif X else if (!strcmp(p, "idprio")) X rtp.type = RTP_PRIO_IDLE; X X@@ -76,8 +80,13 @@ X perror(argv[0]); X exit (1); X } X+ X printf("%s: ", p); X+ X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X+ printf("hard realtime fifo priority %d\n", rtp.prio); X+ break; X case RTP_PRIO_REALTIME: X printf("realtime priority %d\n", rtp.prio); X break; END-of-sched/RTprio.diffs exit From owner-freebsd-bugs Wed Dec 25 04:30:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA08007 for bugs-outgoing; Wed, 25 Dec 1996 04:30:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA08001; Wed, 25 Dec 1996 04:30:02 -0800 (PST) Date: Wed, 25 Dec 1996 04:30:02 -0800 (PST) Message-Id: <199612251230.EAA08001@freefall.freebsd.org> To: freebsd-bugs Cc: From: "Jukka A. Ukkonen" Subject: Re: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches Reply-To: "Jukka A. Ukkonen" Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2273; it has been noted by GNATS. From: "Jukka A. Ukkonen" To: FreeBSD-gnats@freefall.freebsd.org, freebsd-bugs@freefall.freebsd.org Cc: Subject: Re: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches Date: Wed, 25 Dec 1996 13:02:58 +0200 (EET) Quoting FreeBSD-gnats@freefall.freebsd.org: > > Thank you very much for your problem report. > It has the internal identification `kern/2273'. > The individual assigned to look at your > bug is: freebsd-bugs. > > >Category: kern > >Responsible: freebsd-bugs > >Synopsis: support for POSIX.4 / POSIX.1a RT-scheduler API > >Arrival-Date: Tue Dec 24 05:30:01 PST 1996 > Aargh! I did it again - sent the old shar package, I mean. Now the attached one is the correct one. I promise. Cheers, // jau ------ / Jukka A. Ukkonen, Internet and New Media / Finnish Telecom Ltd. /__ M.Sc. (sw-eng & cs) (Phone) +358-2040-4025 / Internet: Jukka.Ukkonen@tele.fi (Fax) +358-2040-2712 / Internet: jau@iki.fi (Mobile) +358-400-606671 v Internet: ukkonen@nic.funet.fi (Home&Fax) +358-9-6215280 o \ / - X ------------------------- clip clip ------------------------------ / \ O # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sched/sched.h # sched/sched_getparam.c # sched/sched_getscheduler.c # sched/sched_get_priority_max.c # sched/sched_get_priority_min.c # sched/sched_rr_get_interval.c # sched/sched_setparam.c # sched/sched_setscheduler.c # sched/Makefile # sched/Kernel-Sched.Diffs # sched/sched_yield.Diffs # sched/RTprio.diffs # echo x - sched/sched.h sed 's/^X//' >sched/sched.h << 'END-of-sched/sched.h' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X X#ifndef _SCHED_H X#define _SCHED_H X X#include X#include X#include /* For struct timespec */ X X#ifndef _POSIX_PRIORITY_SCHEDULING X# define _POSIX_PRIORITY_SCHEDULING X#endif X X/* X * FIFO and Round-Robin must really be separate, but maybe X * it could be possible and worthwhile to try approximate FIFO X * using RR with higher priorities. X * X * RTP_PRIO_REALTIME with round-robin among equal priority X * processes at every time-quantum (= currently HZ/10) would X * still be only a poor substitute for fifo scheduling on X * systems that don't have a real fifo policy. X * X * Otherwise FIFO and RR are equivalent in all respects, but X * RR comes with involuntary release of CPU after the time X * quantum has passed. X * FIFO knows only about voluntary release of the CPU while X * the process can run as long as it wishes. So, you really X * can hang your machine, if there is no other process with X * higher RT-priority (FIFO or RR) ready to kill a infinitely X * looping FIFO process. X */ X X#ifdef RTP_PRIO_FIFO X# define SCHED_FIFO RTP_PRIO_FIFO X#else X# define SCHED_FIFO RTP_PRIO_REALTIME X#endif X X#define SCHED_RR RTP_PRIO_REALTIME X#define SCHED_TIMESHARE RTP_PRIO_NORMAL X#define SCHED_IDLE RTP_PRIO_IDLE X#define SCHED_OTHER SCHED_TIMESHARE X X/* X * Hopefully someone is interested enough to add X * the necessary deadline logic to the kernel. X */ X X#ifdef RTP_PRIO_DEADLINE X# define SCHED_DEADLINE RTP_PRIO_DEADLINE X#endif X Xstruct sched_param { X int sched_type; /* scheduling policy */ X int sched_priority; /* nice for time-share, else true prio */ X int sched_pgprio; /* pg-nice for TS, else unused */ X int sched_userprio; /* user-nice for TS, else unused */ X struct timespec sched_deadline; /* reserved for deadline scheduling */ X struct timespec sched_timereq; /* reserved for deadline scheduling */ X}; X X#endif END-of-sched/sched.h echo x - sched/sched_getparam.c sed 's/^X//' >sched/sched_getparam.c << 'END-of-sched/sched_getparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_getparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X param->sched_type = rtp.type; X X if (rtp.type == RTP_PRIO_NORMAL) { X errno = 0; X X param->sched_priority = getpriority (PRIO_PROCESS, pid); X X if ((param->sched_priority == -1) && errno) X return (-1); X X param->sched_priority = -param->sched_priority; X X errno = 0; X X param->sched_pgprio = getpriority (PRIO_PGRP, pid); X X if ((param->sched_pgprio == -1) && errno) X return (-1); X X param->sched_pgprio = -param->sched_pgprio; X X errno = 0; X X param->sched_userprio = getpriority (PRIO_USER, pid); X X if ((param->sched_userprio == -1) && errno) X return (-1); X X param->sched_userprio = -param->sched_userprio; X } X else X param->sched_priority = RTP_PRIO_MAX - rtp.prio; X X return (0); X} END-of-sched/sched_getparam.c echo x - sched/sched_getscheduler.c sed 's/^X//' >sched/sched_getscheduler.c << 'END-of-sched/sched_getscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X Xint Xsched_getscheduler (pid) X pid_t pid; X{ X struct rtprio rtp; X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X return ((int) rtp.type); X} END-of-sched/sched_getscheduler.c echo x - sched/sched_get_priority_max.c sed 's/^X//' >sched/sched_get_priority_max.c << 'END-of-sched/sched_get_priority_max.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X errno = 0; X X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MAX); X X case SCHED_TIMESHARE: X return (PRIO_MAX); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched/sched_get_priority_max.c echo x - sched/sched_get_priority_min.c sed 's/^X//' >sched/sched_get_priority_min.c << 'END-of-sched/sched_get_priority_min.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X errno = 0; X X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MIN); X X case SCHED_TIMESHARE: X return (PRIO_MIN); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched/sched_get_priority_min.c echo x - sched/sched_rr_get_interval.c sed 's/^X//' >sched/sched_rr_get_interval.c << 'END-of-sched/sched_rr_get_interval.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X Xint Xsched_rr_get_interval (pid, ts) X pid_t pid; X struct timespec *ts; X{ X struct clockinfo cinfo; X struct rtprio rtp; X int sysmib[2]; X size_t cinfosize; X X if (! ts) { X errno = EFAULT; X X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X if (rtp.type != SCHED_RR) { X errno = EINVAL; X X return (-1); X } X X cinfosize = sizeof (cinfo); X X sysmib[0] = CTL_KERN; X sysmib[1] = KERN_CLOCKRATE; X X if (sysctl (sysmib, 2, &cinfo, &cinfosize, NULL, 0) < 0) X return (-1); X X ts->ts_sec = 0; X ts->ts_nsec = cinfo.tick * 10 * 1000; /* really (hz / 10) */ X X return (0); X} X X#ifdef DEBUG_SCHED_RR_GET_INTERVAL X Xint Xmain () X{ X struct timespec ts; X X if (sched_rr_get_interval (getpid (), &ts) < 0) { X perror ("sched_rr_get_interval ()"); X exit (-1); X } X X printf ("ts.ts_sec = %d, ts.ts_nsec = %d\n", ts.ts_sec, ts.ts_nsec); X X return (0); X} X X#endif X END-of-sched/sched_rr_get_interval.c echo x - sched/sched_setparam.c sed 's/^X//' >sched/sched_setparam.c << 'END-of-sched/sched_setparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X if (rtp.type == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched/sched_setparam.c echo x - sched/sched_setscheduler.c sed 's/^X//' >sched/sched_setscheduler.c << 'END-of-sched/sched_setscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setscheduler (pid, policy, param) X pid_t pid; X int policy; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X rtp.type = policy; X X if (policy == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched/sched_setscheduler.c echo x - sched/Makefile sed 's/^X//' >sched/Makefile << 'END-of-sched/Makefile' X XCC = gcc X X.c.o: X $(CC) $(CFLAGS) -c $< X ld -r -x $@ X mv a.out $@ X chmod a-x $@ X XCINCL = -I../include -I../ctype X XCFLAGS = -O4 -fexpensive-optimizations -fpcc-struct-return -funsigned-char \ X -D_NO_POSIX_OPAQUE_TYPES $(CDEBUG) $(CINCL) X#CFLAGS = $(CDEBUG) $(CINCL) X XSRCS = \ X sched_get_priority_max.c sched_setparam.c \ X sched_get_priority_min.c sched_setscheduler.c \ X sched_getparam.c sched_getscheduler.c \ X sched_rr_get_interval.c X XOBJS = \ X sched_get_priority_max.o sched_setparam.o \ X sched_get_priority_min.o sched_setscheduler.o \ X sched_getparam.o sched_getscheduler.o \ X sched_rr_get_interval.o X Xlibsched.a: $(OBJS) X rm -f $@ X ar rv $@ $(OBJS) X ranlib $@ X END-of-sched/Makefile echo x - sched/Kernel-Sched.Diffs sed 's/^X//' >sched/Kernel-Sched.Diffs << 'END-of-sched/Kernel-Sched.Diffs' X--- /sys/kern/kern_resource.c.orig Tue May 30 11:05:39 1995 X+++ /sys/kern/kern_resource.c Mon Dec 25 20:52:30 1995 X@@ -247,8 +247,11 @@ X /* can't set realtime priority */ X if (rtp.type == RTP_PRIO_REALTIME) X return (EPERM); X+ if (rtp.type == RTP_PRIO_FIFO) X+ return (EPERM); X } X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X case RTP_PRIO_REALTIME: X case RTP_PRIO_NORMAL: X case RTP_PRIO_IDLE: X--- /sys/kern/kern_synch.c.orig Tue May 30 11:05:44 1995 X+++ /sys/kern/kern_synch.c Tue Dec 26 16:23:20 1995 X@@ -67,8 +67,10 @@ X roundrobin(arg) X void *arg; X { X+ if (! curproc || curproc->p_rtprio.type != RTP_PRIO_FIFO) { X+ need_resched(); X+ } X X- need_resched(); X timeout(roundrobin, NULL, hz / 10); X } X X@@ -670,7 +672,11 @@ X p->p_usrpri = newpriority; X if (newpriority < curpriority) X need_resched(); X- } else { X+ } else if (! curproc || X+ (curproc->p_rtprio.type != RTP_PRIO_FIFO) || X+ (((p->p_rtprio.type == RTP_PRIO_FIFO) || X+ (p->p_rtprio.type == RTP_PRIO_REALTIME)) && X+ (p->p_rtprio.prio < curproc->p_rtprio.prio))) { X need_resched(); X } X } X--- /sys/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /sys/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X X--- /sys/i386/i386/swtch.s.orig Tue Dec 26 14:19:25 1995 X+++ /sys/i386/i386/swtch.s Tue Dec 26 14:20:58 1995 X@@ -90,6 +90,9 @@ X X movzwl P_RTPRIO_PRIO(%eax),%edx X X+ cmpw $RTP_PRIO_FIFO,P_RTPRIO_TYPE(%eax) /* fifo rt priority? */ X+ je set_rt X+ X cmpw $RTP_PRIO_REALTIME,P_RTPRIO_TYPE(%eax) /* realtime priority? */ X jne set_id /* must be idle priority */ X X--- /sys/vm/vm_glue.c.orig Mon Oct 16 22:43:05 1995 X+++ /sys/vm/vm_glue.c Mon Dec 25 20:52:32 1995 X@@ -430,6 +430,9 @@ X /* X * do not swapout a realtime process X */ X+ if (p->p_rtprio.type == RTP_PRIO_FIFO) X+ continue; X+ X if (p->p_rtprio.type == RTP_PRIO_REALTIME) X continue; X X--- /usr/include/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /usr/include/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X END-of-sched/Kernel-Sched.Diffs echo x - sched/sched_yield.Diffs sed 's/^X//' >sched/sched_yield.Diffs << 'END-of-sched/sched_yield.Diffs' X--- /sys/kern/init_sysent.c.no_sched_yield Wed Dec 4 23:41:55 1996 X+++ /sys/kern/init_sysent.c Wed Dec 4 23:49:14 1996 X@@ -179,6 +179,7 @@ X int mlock(); X int munlock(); X int getsid(); X+int sched_yield(); X int lkmnosys(); X X #ifdef COMPAT_43 X@@ -489,7 +490,8 @@ X { 2, munlock }, /* 204 = munlock */ X /* { 0, nosys }, 205 = nosys */ X { 1, getsid }, /* 205 = getsid */ X- { 0, nosys }, /* 206 = nosys */ X+ /* { 0, nosys }, 206 = nosys */ X+ { 0, sched_yield }, /* 206 = sched_yield */ X { 0, nosys }, /* 207 = nosys */ X { 0, nosys }, /* 208 = nosys */ X { 0, nosys }, /* 209 = nosys */ X--- /sys/kern/syscalls.c.no_sched_yield Wed Dec 4 23:42:24 1996 X+++ /sys/kern/syscalls.c Wed Dec 4 23:46:07 1996 X@@ -249,7 +249,8 @@ X "munlock", /* 204 = munlock */ X /* "#205", 205 = nosys */ X "getsid", /* 205 = getsid */ X- "#206", /* 206 = nosys */ X+ /* "#206", 206 = nosys */ X+ "sched_yield", /* 206 = sched_yield */ X "#207", /* 207 = nosys */ X "#208", /* 208 = nosys */ X "#209", /* 209 = nosys */ X--- /sys/kern/syscalls.master.no_sched_yield Wed Dec 4 23:42:43 1996 X+++ /sys/kern/syscalls.master Wed Dec 4 23:44:28 1996 X@@ -280,7 +280,8 @@ X 204 STD 2 BSD munlock X ; 205 UNIMPL 0 NOHIDE nosys X 205 STD 1 BSD getsid X-206 UNIMPL 0 NOHIDE nosys X+; 206 UNIMPL 0 NOHIDE nosys X+206 STD 0 POSIX sched_yield X 207 UNIMPL 0 NOHIDE nosys X 208 UNIMPL 0 NOHIDE nosys X 209 UNIMPL 0 NOHIDE nosys X--- /sys/kern/kern_synch.c.no_sched_yield Tue Dec 24 13:12:02 1996 X+++ /sys/kern/kern_synch.c Tue Dec 24 11:25:33 1996 X@@ -681,3 +681,20 @@ X } X } X X+struct sched_yield_args { X+ void *arg; X+}; X+/* ARGSUSED */ X+int X+sched_yield (p, uap, retval) X+ struct proc *p; X+ struct sched_yield_args *uap; X+ int *retval; X+{ X+ need_resched (); /* Wild, isn't it? */ X+ X+ *retval = 0; X+ X+ return (0); X+} X+ X--- /usr/include/sys/syscall.h.no_sched_yield Tue Dec 24 13:19:56 1996 X+++ /usr/include/sys/syscall.h Tue Dec 24 12:23:18 1996 X@@ -193,3 +193,4 @@ X #define SYS_mlock 203 X #define SYS_munlock 204 X #define SYS_getsid 205 X+#define SYS_sched_yield 206 X--- /usr/include/unistd.h.no_sched_yield Tue Dec 24 13:18:59 1996 X+++ /usr/include/unistd.h Tue Dec 24 12:39:59 1996 X@@ -174,6 +174,7 @@ X int vhangup __P((void)); X void *valloc __P((size_t)); /* obsoleted by malloc() */ X pid_t vfork __P((void)); X+int sched_yield __P((void)); X #endif /* !_POSIX_SOURCE */ X __END_DECLS X X--- /sys/sys/syscall.h.no_sched_yield Tue Dec 24 13:22:52 1996 X+++ /sys/sys/syscall.h Tue Dec 24 12:23:56 1996 X@@ -193,3 +193,4 @@ X #define SYS_mlock 203 X #define SYS_munlock 204 X #define SYS_getsid 205 X+#define SYS_sched_yield 206 END-of-sched/sched_yield.Diffs echo x - sched/RTprio.diffs sed 's/^X//' >sched/RTprio.diffs << 'END-of-sched/RTprio.diffs' X--- /usr/src/usr.sbin/rtprio/rtprio.c.orig Sun Oct 2 06:48:21 1994 X+++ /usr/src/usr.sbin/rtprio/rtprio.c Tue Dec 26 11:18:20 1995 X@@ -63,6 +63,10 @@ X X if (!strcmp(p, "rtprio")) X rtp.type = RTP_PRIO_REALTIME; X+#ifdef RTP_PRIO_FIFO X+ else if (!strcmp(p, "rtfifoprio")) X+ rtp.type = RTP_PRIO_FIFO; X+#endif X else if (!strcmp(p, "idprio")) X rtp.type = RTP_PRIO_IDLE; X X@@ -76,8 +80,13 @@ X perror(argv[0]); X exit (1); X } X+ X printf("%s: ", p); X+ X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X+ printf("hard realtime fifo priority %d\n", rtp.prio); X+ break; X case RTP_PRIO_REALTIME: X printf("realtime priority %d\n", rtp.prio); X break; END-of-sched/RTprio.diffs exit From owner-freebsd-bugs Wed Dec 25 07:02:02 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA13715 for bugs-outgoing; Wed, 25 Dec 1996 07:02:02 -0800 (PST) Received: from crh.cl.msu.edu (crh.cl.msu.edu [35.8.1.24]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id HAA13709 for ; Wed, 25 Dec 1996 07:01:59 -0800 (PST) Received: (from henrich@localhost) by crh.cl.msu.edu (8.8.2/8.8.2) id KAA03780; Wed, 25 Dec 1996 10:01:52 -0500 (EST) From: Charles Henrich Message-Id: <199612251501.KAA03780@crh.cl.msu.edu> Subject: Re: 2.2-BETA installation floppies don't work To: dg@root.com Date: Wed, 25 Dec 1996 10:01:52 -0500 (EST) Cc: jkh@time.cdrom.com, freebsd-bugs@freebsd.org In-Reply-To: <199612250904.BAA02062@root.com> from David Greenman at "Dec 25, 96 01:04:49 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >~70K/sec, with the X distributions (larger .tgz files) I was getting > >consistantly 200K+/sec (this is all over a cable network, sort of like an > >install one T1 away from cdrom.com). > > Yes, well, most people are getting the bits with dialup SLIP or PPP and > 240K/chunk is rather large in that case. I'd prefer that the chunk size > stay at 240K... I was giving this some more thought, and I think doing Passive FTP ought to help a ton, will verify later. -Crh Charles Henrich Michigan State University henrich@msu.edu http://pilot.msu.edu/~henrich From owner-freebsd-bugs Wed Dec 25 08:39:33 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA15711 for bugs-outgoing; Wed, 25 Dec 1996 08:39:33 -0800 (PST) Received: from news1.gtn.com (news1.gtn.com [192.109.159.3]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id IAA15705; Wed, 25 Dec 1996 08:39:26 -0800 (PST) Received: (from uucp@localhost) by news1.gtn.com (8.7.2/8.7.2) with UUCP id RAA09747; Wed, 25 Dec 1996 17:31:34 +0100 (MET) Received: from klemm.gtn.com (localhost [127.0.0.1]) by klemm.gtn.com (8.8.4/8.8.2) with ESMTP id RAA01198; Wed, 25 Dec 1996 17:24:35 +0100 (MET) Message-Id: <199612251624.RAA01198@klemm.gtn.com> X-Mailer: exmh version 2.0beta 12/23/96 To: Joerg Wunsch cc: freebsd-bugs@freefall.freebsd.org Subject: Re: kern/1989 In-reply-to: Your message of "Mon, 23 Dec 1996 11:06:15 PST." <199612231906.LAA16344@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_6422084240" Date: Wed, 25 Dec 1996 17:24:35 +0100 From: Andreas Klemm Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This is a multipart MIME message. --==_Exmh_6422084240 Content-Type: text/plain; charset=us-ascii > Synopsis: dump(8) fails to dump if tagged command queuing is enabled > > State-Changed-From-To: open-feedback > State-Changed-By: joerg > State-Changed-When: Mon Dec 23 20:04:30 MET 1996 > State-Changed-Why: > (Note: i've made this PR non-conifential, since it's nothing > security-related or any other kind of confidential information.) > > Please confirm: does the problem still exist with the recent driver? The problem still exists and is easy to reproduce. Compile/link/install a kernel with Tagged Command Queuing enabled. Try to make a backup using dump. After that your SCSI bus freezes. The one and last message you see from syslog: sd0(ahc0:0:0) Tagged openings reduced to 3. I have an AHA 2940 and IBM DORS 32160 SCSI DISKS. For backup I use a TDC 4222 5 GB QIC streamer. My system/kernel: FreeBSD-current as of yesterday. Kernel as of today. My kernel config file is in the attachement. Andreas /// --==_Exmh_6422084240 Content-Type: application/octet-stream ; name="BISDN" Content-Description: BISDN Content-Disposition: attachment; filename="BISDN" machine "i386" cpu "I586_CPU" ident BISDN maxusers 64 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 options "SCSI_DELAY=8" #Be pessimistic about Joe SCSI device options UCONSOLE #Allow users to grab the console options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #print information about options TELES_HAS_MEMCPYB # bisdn 0.97 options SYSVSHM,SYSVSEM,SYSVMSG # System V shared memory options "IBCS2" # COFF binary compatibility options COMPAT_LINUX # Linux Binary compatibolity options SHOW_BUSYBUFS # busy buffers on shutdown ? options "I586_OPTIMIZED_BCOPY" options "I586_OPTIMIZED_BZERO" #options USERCONFIG #boot -c editor #options USERCONFIG_BOOT #imply -c and parse info area #options VISUAL_USERCONFIG #visual boot -c editor #options AHC_SCBPAGING_ENABLE #option AHC_FORCE_PIO # dumps core immediately #options AHC_SCBPAGING_ENABLE options AHC_TAGENABLE # still makes problems with tapes options SCSI_REPORT_GEOMETRY options DDB #options KTRACE #options PERFMON options MFS #Memory File System config kernel root on sd0 controller isa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 # my hardwired scsi devices, they have always the same SCSI ID ! controller ahc0 controller scbus0 at ahc0 disk sd0 at scbus0 target 0 disk sd1 at scbus0 target 1 disk sd2 at scbus0 target 2 tape st0 at scbus0 target 4 device cd0 at scbus0 target 6 # syscons is the default console driver, resembling an SCO console options "MAXCONS=4" device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr device npx0 at isa? port "IO_NPX" irq 13 vector npxintr device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device lpt0 at isa? port? tty irq 7 vector lptintr device ed0 at isa? port 0x300 net irq 10 iomem 0xcc000 vector edintr # Joystick device joy0 at isa? port "IO_GAME" pseudo-device loop pseudo-device ether pseudo-device log pseudo-device tun 1 pseudo-device pty 16 pseudo-device bpfilter 4 #Berkeley packet filter pseudo-device snp 3 #Snoop device - to look at pty/vty/etc.. pseudo-device gzip pseudo-device vn #Vnode driver (turns a file into a device) #pseudo-device speaker # SB = SoundBlaster; PAS = ProAudioSpectrum; GUS = Gravis UltraSound # Controls all sound devices controller snd0 # SoundBlaster DSP driver - for SB, SB Pro, SB16, PAS(emulating SB) device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr # SoundBlaster 16 DSP driver - for SB16 - requires sb0 device device sbxvi0 at isa? drq 5 # SoundBlaster 16 MIDI - for SB16 - requires sb0 device device sbmidi0 at isa? port 0x330 # Yamaha OPL-2/OPL-3 FM - for SB, SB Pro, SB16, PAS device opl0 at isa? port 0x388 #--------------------------------------------------------------------------- # # ISDN - parts of an example config file for bisdn # ------------------------------------------------ # # last edit-date: [Sun May 26 10:35:22 1996] # #--------------------------------------------------------------------------- options IPI_VJ # Van Jacobsen header compression support #options "IPI_DIPA=3" # send ip accounting packets every 3 seconds # Teles S0/16.3 ###################################################### IRQ 9 ## controller tel0 at isa? port 0xd80 net irq 9 vector telintr pseudo-device disdn pseudo-device isdn pseudo-device ipi 4 pseudo-device itel 2 pseudo-device ispy 1 --==_Exmh_6422084240-- From owner-freebsd-bugs Wed Dec 25 14:10:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA24043 for bugs-outgoing; Wed, 25 Dec 1996 14:10:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA24035; Wed, 25 Dec 1996 14:10:02 -0800 (PST) Resent-Date: Wed, 25 Dec 1996 14:10:02 -0800 (PST) Resent-Message-Id: <199612252210.OAA24035@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jau@jau.tmt.tele.fi Received: from siili.inet.fi (siili.inet.fi [192.89.123.191]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA23907 for ; Wed, 25 Dec 1996 14:05:43 -0800 (PST) Received: from jau.tmt.tele.fi (jau.tmt.tele.fi [194.251.252.34]) by siili.inet.fi (8.8.3/8.8.0) with ESMTP id AAA01351 for ; Thu, 26 Dec 1996 00:03:52 +0200 Received: (from jau@localhost) by jau.tmt.tele.fi (8.8.3/8.6.12+CSC-2.1) id AAA14384; Thu, 26 Dec 1996 00:07:08 +0200 (EET) Message-Id: <199612252207.AAA14384@jau.tmt.tele.fi> Date: Thu, 26 Dec 1996 00:07:08 +0200 (EET) From: jau@jau.tmt.tele.fi Reply-To: jau@jau.tmt.tele.fi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/2279: questionable parameter types in /usr/include/signal.h Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2279 >Category: kern >Synopsis: questionable parameter types in /usr/include/signal.h >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 14:10:01 PST 1996 >Last-Modified: >Originator: Jukka A. Ukkonen >Organization: Telecom Finland / Telemedia >Release: FreeBSD 2.2-960501-SNAP i386 >Environment: >Description: See the patch below in the Fix section. >How-To-Repeat: >Fix: --- /usr/include/signal.h.orig Thu Dec 26 00:01:31 1996 +++ /usr/include/signal.h Wed Dec 25 23:55:02 1996 @@ -36,6 +36,7 @@ #ifndef _SIGNAL_H_ #define _SIGNAL_H_ +#include #include #include #include @@ -48,7 +49,7 @@ __BEGIN_DECLS int raise __P((int)); #ifndef _ANSI_SOURCE -int kill __P(_BSD_PID_T_, int)); +int kill __P((pid_t, int)); int sigaction __P((int, const struct sigaction *, struct sigaction *)); int sigaddset __P((sigset_t *, int)); int sigdelset __P((sigset_t *, int)); @@ -59,7 +60,7 @@ int sigprocmask __P((int, const sigset_t *, sigset_t *)); int sigsuspend __P((const sigset_t *)); #ifndef _POSIX_SOURCE -int killpg __P((_BSD_PID_T_, int)); +int killpg __P((pid_t, int)); int sigblock __P((int)); int siginterrupt __P((int, int)); int sigpause __P((int)); >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Dec 25 14:30:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA24722 for bugs-outgoing; Wed, 25 Dec 1996 14:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA24716; Wed, 25 Dec 1996 14:30:03 -0800 (PST) Resent-Date: Wed, 25 Dec 1996 14:30:03 -0800 (PST) Resent-Message-Id: <199612252230.OAA24716@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.OAA24440;Wed; (8.8.4/8.8.4);, 25 Dec 1996 14:22:23.-0800 (PST) Message-Id: <199612252222.OAA24440@freefall.freebsd.org> Date: Wed, 25 Dec 1996 14:22:23 -0800 (PST) From: smbeare@netcomuk.co.uk To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: conf/2280: Can't configure 562 CD-Rom using interface on Prosonic 16 sound card. Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2280 >Category: conf >Synopsis: Can't configure 562 CD-Rom using interface on Prosonic 16 sound card. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: support >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 14:30:01 PST 1996 >Last-Modified: >Originator: Steve Beare >Organization: >Release: 2.1.5 >Environment: Have not got that far >Description: Boot will not 'see' my CD-Rom, which is a Panasonic 562, with an interface from a Prosonic 16 sound card . This hardware works fine under MS-Dos, but even with manual configuration, I cannot set it up to see the CD-Rom. The sound card's Base Address is 220, with an IRQ of 5, auto-config won't see this, the CD-Rom is set up for Base 330. HELP!! >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Dec 25 17:22:54 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA00195 for bugs-outgoing; Wed, 25 Dec 1996 17:22:54 -0800 (PST) Received: from metronet.com (pgilley@fohnix.metronet.com [192.245.137.2]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id RAA00190 for ; Wed, 25 Dec 1996 17:22:52 -0800 (PST) Received: from localhost by metronet.com with SMTP id AA00692 (5.67a/IDA1.5hp for ); Wed, 25 Dec 1996 19:23:42 -0600 Date: Wed, 25 Dec 1996 19:23:42 -0600 (CST) From: Phil Gilley To: bugs@freebsd.org Subject: 2.2-BETA boot floppy panic Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk While in the keymap menu, pressing escape followed by any key causes a panic. This is the only menu option that seems to suffer from this. Phil Gilley pgilley@metronet.com From owner-freebsd-bugs Wed Dec 25 18:50:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA03016 for bugs-outgoing; Wed, 25 Dec 1996 18:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA03009; Wed, 25 Dec 1996 18:50:02 -0800 (PST) Resent-Date: Wed, 25 Dec 1996 18:50:02 -0800 (PST) Resent-Message-Id: <199612260250.SAA03009@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.SAA02887;Wed; (8.8.4/8.8.4);, 25 Dec 1996 18:46:01.-0800 (PST) Message-Id: <199612260246.SAA02887@freefall.freebsd.org> Date: Wed, 25 Dec 1996 18:46:01 -0800 (PST) From: seki@sysrap.cs.fujitsu.co.jp To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: misc/2281: sysinstall panics kernel on Screenmap screen Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2281 >Category: misc >Synopsis: sysinstall panics kernel on Screenmap screen >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 18:50:01 PST 1996 >Last-Modified: >Originator: Masahiro Sekiguchi >Organization: Fujitsu Limited >Release: 2.2 BETA (boot.flp dated Dec. 25) >Environment: >Description: Booted with boot.flp, and installed 2.2 BETA. At the end of the installation, I did some "post configuration." On the "Screenmap" screen, I just typed an ESC key, since it was not what I wanted. At the moment, kernel panics with the following message: Panic: Going nowhere without my init! I had to re-install the system. :-( >How-To-Repeat: Boot with boot.flp. Select menu as follows: Configure -> Console -> Screenmap Hit ESC key. >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Dec 25 19:00:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id TAA03212 for bugs-outgoing; Wed, 25 Dec 1996 19:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id TAA03206; Wed, 25 Dec 1996 19:00:02 -0800 (PST) Resent-Date: Wed, 25 Dec 1996 19:00:02 -0800 (PST) Resent-Message-Id: <199612260300.TAA03206@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.SAA03138;Wed; (8.8.4/8.8.4);, 25 Dec 1996 18:58:01.-0800 (PST) Message-Id: <199612260258.SAA03138@freefall.freebsd.org> Date: Wed, 25 Dec 1996 18:58:01 -0800 (PST) From: seki@sysrap.cs.fujitsu.co.jp To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: docs/2282: ahc0 is listed twice in HARDWARE.TXT Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2282 >Category: docs >Synopsis: ahc0 is listed twice in HARDWARE.TXT >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 19:00:01 PST 1996 >Last-Modified: >Originator: Masahiro Sekiguchi >Organization: Fujitsu Limited >Release: 2.2 BETA >Environment: >Description: In HARDWARE.TXT, Section 1, there is a table titled: "FreeBSD GENERIC kernel." The table lists ahc0 twice, once as "Adaptec 294x PCI SCSI controller," and later as "Adaptec 274x/284x/294x SCSI controller." >How-To-Repeat: vi HARDWARE.TXT >Fix: *** HARDWARE.TXT --- New-HARDWARE.TXT ************** *** 60,66 wdc1 170 15 n/a n/a IDE/MFM/RLL disk controller ncr0 n/a n/a n/a n/a NCR PCI SCSI controller - ahc0 n/a n/a n/a n/a Adaptec 294x PCI SCSI controller bt0 330 dyn dyn dyn Buslogic SCSI controller uha0 330 dyn 6 dyn Ultrastore 14f aha0 330 dyn 5 dyn Adaptec 154x SCSI controller --- 60,65 ----- wdc1 170 15 n/a n/a IDE/MFM/RLL disk controller ncr0 n/a n/a n/a n/a NCR PCI SCSI controller bt0 330 dyn dyn dyn Buslogic SCSI controller uha0 330 dyn 6 dyn Ultrastore 14f aha0 330 dyn 5 dyn Adaptec 154x SCSI controller >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Dec 25 20:10:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA05689 for bugs-outgoing; Wed, 25 Dec 1996 20:10:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA05683; Wed, 25 Dec 1996 20:10:02 -0800 (PST) Resent-Date: Wed, 25 Dec 1996 20:10:02 -0800 (PST) Resent-Message-Id: <199612260410.UAA05683@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, akiyama@kme.mei.co.jp Received: from vcgate3.mei.co.jp (vcgate3.mei.co.jp [202.32.14.53]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id UAA05484 for ; Wed, 25 Dec 1996 20:03:44 -0800 (PST) Received: by vcgate3.mei.co.jp (5.65mei1.2g/5.9:4.9:vcgate0:961204) id AA19564; Thu, 26 Dec 96 13:02:54 +0900 Received: by vcmei.vanc.mei.co.jp (5.65mei1.1/5.9:4.9:vcmei:961224) id AA24184; Thu, 26 Dec 96 13:03:15 +0900 Received: by kmegate.kme.mei.co.jp (4.1/5.5:4.6:kmegate:961205) id AA22725; Thu, 26 Dec 96 13:03:05 JST Message-Id: <9612260403.AA22725@kmegate.kme.mei.co.jp> Date: Thu, 26 Dec 96 13:03:05 JST From: akiyama@kme.mei.co.jp Reply-To: akiyama@kme.mei.co.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/2283: setlocale() in libxpg4 always returns NULL with ja_JP.EUC locale. Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2283 >Category: misc >Synopsis: setlocale() in libxpg4 always returns NULL with ja_JP.EUC locale. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 20:10:01 PST 1996 >Last-Modified: >Originator: Shunsuke Akiyama >Organization: Kyushu Matsushita Electric Co., LTD. >Release: FreeBSD 2.2-BETA_A i386 >Environment: All FreeBSD 2.2-BETA systems using setlocale() with ja_JP.EUC locale. >Description: setlocale() in xpg4 library always returns NULL, if locale parameter specified with ja_JP.EUC. >How-To-Repeat: Attached sample program compiled as % cc -o locale -g locale.c -lxpg4 Result: % ./locale setlocale() returns NULL But compiled with 2.2-ALPHA xpg4 library, this program returns: % ./locale setlocale() returns "C/ja_JP.EUC/C/C/C" I've tried to another locage categories, but I got same results. #include #include #include main() { char *p; p = setlocale(LC_ALL, "ja_JP.EUC"); if (p == NULL) { printf("setlocale() returns NULL\n"); } else { printf("setlocale() returns \"%s\"\n", p); } exit(0); } >Fix: N/A >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Dec 25 21:27:42 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA07837 for bugs-outgoing; Wed, 25 Dec 1996 21:27:42 -0800 (PST) Received: (from max@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA07789; Wed, 25 Dec 1996 21:27:23 -0800 (PST) Date: Wed, 25 Dec 1996 21:27:23 -0800 (PST) From: Masafumi NAKANE Message-Id: <199612260527.VAA07789@freefall.freebsd.org> To: max, freebsd-ports, freebsd-bugs Subject: Re: ports/2256 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: PPP process on port will not close when an NT user has diconnected after a session. Responsible-Changed-From-To: freebsd-ports->freebsd-bugs Responsible-Changed-By: max Responsible-Changed-When: Wed Dec 25 21:25:39 PST 1996 Responsible-Changed-Why: This PR is about serial port, not about the ports collection. From owner-freebsd-bugs Wed Dec 25 21:40:07 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA08462 for bugs-outgoing; Wed, 25 Dec 1996 21:40:07 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA08452; Wed, 25 Dec 1996 21:40:03 -0800 (PST) Resent-Date: Wed, 25 Dec 1996 21:40:03 -0800 (PST) Resent-Message-Id: <199612260540.VAA08452@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, faulkner@asgard.hos.net Received: from utgard.hos.net (utgard.hos.net [205.238.129.45]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id VAA08128 for ; Wed, 25 Dec 1996 21:33:58 -0800 (PST) Received: (from faulkner@localhost) by utgard.hos.net (8.8.4/8.7.3) id XAA12095; Wed, 25 Dec 1996 23:33:54 -0600 (CST) Message-Id: <199612260533.XAA12095@utgard.hos.net> Date: Wed, 25 Dec 1996 23:33:54 -0600 (CST) From: faulkner@asgard.hos.net Reply-To: faulkner@asgard.hos.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/2284: Termcap ibm3163 entry has arrow keys wrong. Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2284 >Category: conf >Synopsis: Termcap ibm3163 entry has arrow keys wrong. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 21:40:02 PST 1996 >Last-Modified: >Originator: Boyd Faulkner >Organization: None >Release: FreeBSD 3.0-CURRENT i386 >Environment: Termcap entry >Description: Entry contains :kb=^H:kd=\EB:kl=\EB:kr=\EC:ku=\EA:\ should contain :kb=^H:kd=\EB:kl=\ED:kr=\EC:ku=\EA:kh=\EH:\ >How-To-Repeat: mutt and lynx do not work well with current entry. They work much better with the supplied change. >Fix: Change line :kb=^H:kd=\EB:kl=\EB:kr=\EC:ku=\EA:\ to :kb=^H:kd=\EB:kl=\ED:kr=\EC:ku=\EA:kh=\EH:\ which I got from the 3161 entry just above. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Dec 25 22:50:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA10453 for bugs-outgoing; Wed, 25 Dec 1996 22:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA10445; Wed, 25 Dec 1996 22:50:02 -0800 (PST) Date: Wed, 25 Dec 1996 22:50:02 -0800 (PST) Message-Id: <199612260650.WAA10445@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: kern/2279: questionable parameter types in /usr/include/signal.h Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2279; it has been noted by GNATS. From: Bruce Evans To: FreeBSD-gnats-submit@freebsd.org, jau@jau.tmt.tele.fi Cc: Subject: Re: kern/2279: questionable parameter types in /usr/include/signal.h Date: Thu, 26 Dec 1996 17:39:47 +1100 >>Description: > > See the patch below in the Fix section. THere was no bug. _BSD_PID_T is defined in . >--- /usr/include/signal.h.orig Thu Dec 26 00:01:31 1996 >+++ /usr/include/signal.h Wed Dec 25 23:55:02 1996 >@@ -36,6 +36,7 @@ > #ifndef _SIGNAL_H_ > #define _SIGNAL_H_ > >+#include This restores the massive namespace pollution that I fixed in rev.1.4. Note that is included unconditionally by , so it must be just as careful about namespace pollution as . Bruce From owner-freebsd-bugs Thu Dec 26 04:30:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA18921 for bugs-outgoing; Thu, 26 Dec 1996 04:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA18907; Thu, 26 Dec 1996 04:30:02 -0800 (PST) Date: Thu, 26 Dec 1996 04:30:02 -0800 (PST) Message-Id: <199612261230.EAA18907@freefall.freebsd.org> To: freebsd-bugs Cc: From: Guido van Rooij Subject: Re: bin/2265: su(1) does not call skeyaccess() Reply-To: Guido van Rooij Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2265; it has been noted by GNATS. From: Guido van Rooij To: bradley@dunn.org (Bradley Dunn) Cc: joerg_wunsch@uriah.heep.sax.de, FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/2265: su(1) does not call skeyaccess() Date: Mon, 23 Dec 1996 18:12:57 +0100 (MET) Bradley Dunn wrote: > Someone running su(1) has already been authenticated, but as someone else. > Correct. > I think that if one puts a "deny user foo" in skey.access, the intention > is that foo should not be able to gain access to the system using foo's > UNIX password. With the current su, foo has a way of gaining access with > his UNIX password, even though it is desired that he not be able to.A All of your reasoning is correct. If there's enough demand, I'll add the su skey code to su. Btw: there is a manpage for skey.access: skey.access(5) - S/Key password control table -Guido From owner-freebsd-bugs Thu Dec 26 04:30:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA18928 for bugs-outgoing; Thu, 26 Dec 1996 04:30:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA18915; Thu, 26 Dec 1996 04:30:03 -0800 (PST) Date: Thu, 26 Dec 1996 04:30:03 -0800 (PST) Message-Id: <199612261230.EAA18915@freefall.freebsd.org> To: freebsd-bugs Cc: From: Guido van Rooij Subject: Re: bin/2265: su(1) does not call skeyaccess() Reply-To: Guido van Rooij Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2265; it has been noted by GNATS. From: Guido van Rooij To: joerg_wunsch@uriah.heep.sax.de Cc: bradley@dunn.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/2265: su(1) does not call skeyaccess() Date: Mon, 23 Dec 1996 18:09:34 +0100 (MET) J Wunsch wrote: > As bradley@dunn.org wrote: > > > >Description: > > > > su(1) does not call skeyaccess() (from libskey), thus rendering the > > controls in /etc/skey.access useless. > > Well, it rather seems like it was deliberately omitted, as opposed to > forgotten. A user running su(1) has already been authenticated to the > system, and _that's_ where skey.access should hit. > > Guido, any comments on this (and perhaps even a manpage for > skeyaccess(3) :)? Not really. We use a modified su all the time. The advantage is that you never have to type in the root password over an insecure line. If there is enough demand I can add it. I will look for the manpage; I thought I'd already add it. -Guido From owner-freebsd-bugs Thu Dec 26 10:00:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA00609 for bugs-outgoing; Thu, 26 Dec 1996 10:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA00602; Thu, 26 Dec 1996 10:00:02 -0800 (PST) Resent-Date: Thu, 26 Dec 1996 10:00:02 -0800 (PST) Resent-Message-Id: <199612261800.KAA00602@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, rwm@Apollo.Tansoft.COM Received: from Apollo.Tansoft.COM (Apollo.TanSoft.COM [206.175.4.46]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA28466 for ; Thu, 26 Dec 1996 09:42:06 -0800 (PST) Received: (from rwm@localhost) by Apollo.Tansoft.COM (8.8.4/8.7.3) id MAA00552; Thu, 26 Dec 1996 12:43:54 -0500 (EST) Message-Id: <199612261743.MAA00552@Apollo.Tansoft.COM> Date: Thu, 26 Dec 1996 12:43:54 -0500 (EST) From: Rob Miracle Reply-To: rwm@Apollo.Tansoft.COM To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/2285: Setting memory to 256M in config file causes panic Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2285 >Category: conf >Synopsis: Setting memory to 256M in config file causes panic >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 26 10:00:01 PST 1996 >Last-Modified: >Originator: Rob Miracle >Organization: Tantalus Inc. >Release: FreeBSD 2.2-BETA_A i386 >Environment: SAG Pentium Pro 200MHZ Dual Intel Processors 256M RAM Adaptec 2924 SCSI Host Adapter 2GB Hard drive SMC Ethernet Adapter (e0) >Description: If I define: options "MAXMEM=262144" in /sys/i386/conf/MACHINE, config MACHINE, and rebuild the Kernel, and install the kernel, after it reboots, I get a panic before all the devices check saying that the max memory size is too large. >How-To-Repeat: See Above >Fix: Unknown >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Dec 26 10:09:56 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA00934 for bugs-outgoing; Thu, 26 Dec 1996 10:09:56 -0800 (PST) Received: from phoenix.its.rpi.edu (phoenix.its.rpi.edu [128.113.161.45]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id KAA00928 for ; Thu, 26 Dec 1996 10:09:48 -0800 (PST) Received: (from dec@localhost) by phoenix.its.rpi.edu (8.8.3/8.8.3) id NAA16462 for bugs@freebsd.org; Thu, 26 Dec 1996 13:08:19 -0500 (EST) Date: Thu, 26 Dec 1996 13:08:19 -0500 (EST) From: "David E. Cross" Message-Id: <199612261808.NAA16462@phoenix.its.rpi.edu> To: bugs@freebsd.org Subject: xload Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The xload in the 2.2-Beta distribution needs to be group kmem and set-groupid -- David C. From owner-freebsd-bugs Thu Dec 26 10:40:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA02013 for bugs-outgoing; Thu, 26 Dec 1996 10:40:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA01992; Thu, 26 Dec 1996 10:40:01 -0800 (PST) Date: Thu, 26 Dec 1996 10:40:01 -0800 (PST) Message-Id: <199612261840.KAA01992@freefall.freebsd.org> To: freebsd-bugs Cc: From: "Jukka A. Ukkonen" Subject: Re: kern/2279: questionable parameter types in /usr/include/signal.h Reply-To: "Jukka A. Ukkonen" Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2279; it has been noted by GNATS. From: "Jukka A. Ukkonen" To: bde@zeta.org.au (Bruce Evans) Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/2279: questionable parameter types in /usr/include/signal.h Date: Thu, 26 Dec 1996 20:32:53 +0200 (EET) Quoting Bruce Evans: > > >>Description: > > > > See the patch below in the Fix section. > > THere was no bug. _BSD_PID_T is defined in . No, not a functional bug, but a logic one. For logical completeness it should read pid_t as per definition instead of _BSD_PID_T_ which is not a real type from the compiler's point of view, but just a macro which is later undefined when the real pid_t gets defined. Macros within the parameter lists of prototypes will probably one day cause more problems than importing some definitions one does not absolutely need at the time. I always liked the ConvexOS way of doing these #defines and typedefs. ConvexOS also has something like _BSD_PID_T_ macros which are used for initial typedefs. All the typedef types are then declared as #ifndef _PID_T typedef _BSD_PID_T_ pid_t; # define _PID_T pid_t #endif That should save you at least from doing useless duplicated typedefs. On the other hand I guess there is no way of importing only those typedefs that are absolutely needed. Making everything the way STDC and POSIX put it one is bound to always get some "crap" with the typedefs one really needs. > >--- /usr/include/signal.h.orig Thu Dec 26 00:01:31 1996 > >+++ /usr/include/signal.h Wed Dec 25 23:55:02 1996 > >@@ -36,6 +36,7 @@ > > #ifndef _SIGNAL_H_ > > #define _SIGNAL_H_ > > > >+#include > > This restores the massive namespace pollution that I fixed in rev.1.4. > Note that is included unconditionally by , so > it must be just as careful about namespace pollution as . Eh? So... what has to do with it? It has nothing to do with defining pid_t. At least it shouldn't have. Cheers, // jau ------ / Jukka A. Ukkonen, Internet and New Media / Finnish Telecom Ltd. /__ M.Sc. (sw-eng & cs) (Phone) +358-2040-4025 / Internet: Jukka.Ukkonen@tele.fi (Fax) +358-2040-2712 / Internet: jau@iki.fi (Mobile) +358-400-606671 v Internet: ukkonen@nic.funet.fi (Home&Fax) +358-9-6215280 From owner-freebsd-bugs Thu Dec 26 10:40:52 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA02103 for bugs-outgoing; Thu, 26 Dec 1996 10:40:52 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id KAA02065; Thu, 26 Dec 1996 10:40:39 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id TAA23991; Thu, 26 Dec 1996 19:40:34 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA16426; Thu, 26 Dec 1996 19:40:33 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id TAA07065; Thu, 26 Dec 1996 19:30:49 +0100 (MET) From: J Wunsch Message-Id: <199612261830.TAA07065@uriah.heep.sax.de> Subject: Re: xload To: dec@phoenix.its.rpi.edu (David E. Cross) Date: Thu, 26 Dec 1996 19:30:44 +0100 (MET) Cc: bugs@freebsd.org, dawes@physics.usyd.edu.au (David Dawes), rich@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199612261808.NAA16462@phoenix.its.rpi.edu> from "David E. Cross" at "Dec 26, 96 01:08:19 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As David E. Cross wrote: > The xload in the 2.2-Beta distribution needs to be group kmem and set-groupid This is a bug in xload (actually, a known bug in the version as distributed with XFree86 3.2). The package needs to be rebuilt. xload is supposed to use getloadavg(3) (which doesn't require read permission to /dev/kmem), but didn't use it right in that version, so it's #ifdef spagghetti fell through into the generic /dev/kmem-reading part which accidentally works on FreeBSD, too. David or Rich, do you plan to put updated binaries onto the servers with the bug fixed anytime soon? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Thu Dec 26 12:50:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA06747 for bugs-outgoing; Thu, 26 Dec 1996 12:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA06741; Thu, 26 Dec 1996 12:50:02 -0800 (PST) Resent-Date: Thu, 26 Dec 1996 12:50:02 -0800 (PST) Resent-Message-Id: <199612262050.MAA06741@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, vitjok@fasts.com Received: from server.fasts.com (qmailr@server.fasts.com [199.125.215.66]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA06513 for ; Thu, 26 Dec 1996 12:40:21 -0800 (PST) Received: (qmail 10490 invoked by uid 0); 26 Dec 1996 22:39:07 -0000 Message-Id: <19961226223907.10489.qmail@server.fasts.com> Date: 26 Dec 1996 22:39:07 -0000 From: vitjok@fasts.com Reply-To: vitjok@fasts.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/2286: rpm (and possibly others) from RedHat 4.0 fail to run Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2286 >Category: kern >Synopsis: rpm (and possibly others) from RedHat 4.0 fail to run >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 26 12:50:01 PST 1996 >Last-Modified: >Originator: Victor Rotanov >Organization: FASTS Ltd. >Release: FreeBSD 2.2-RELEASE i386 >Environment: FreeBSD 2.2-current, linux compatibility installed. >Description: rpm (and possibly other binaries) from RedHat Linux 4.0 do not run. >How-To-Repeat: > rpm ELF binary type not known >Fix: Don't know >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Dec 26 13:00:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA07222 for bugs-outgoing; Thu, 26 Dec 1996 13:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA07215; Thu, 26 Dec 1996 13:00:02 -0800 (PST) Resent-Date: Thu, 26 Dec 1996 13:00:02 -0800 (PST) Resent-Message-Id: <199612262100.NAA07215@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, andrew@pubnix.net Received: from stills.pubnix.net (Stills.pubnix.net [192.172.250.8]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id MAA06847 for ; Thu, 26 Dec 1996 12:53:05 -0800 (PST) Received: (from root@localhost) by stills.pubnix.net (8.7.6/8.7.3) id PAA18771; Thu, 26 Dec 1996 15:53:02 -0500 (EST) Message-Id: <199612262053.PAA18771@stills.pubnix.net> Date: Thu, 26 Dec 1996 15:53:02 -0500 (EST) From: root Reply-To: andrew@pubnix.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2287: problem with rwhod Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2287 >Category: bin >Synopsis: Owner of /var/rwho is wrong >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 26 13:00:01 PST 1996 >Last-Modified: >Originator: root >Organization: PubNIX Montreal >Release: FreeBSD 2.1.6-RELEASE >Environment: Any 2.1.6-RELEASE system >Description: Owner of /var/rwho whould be daemon.deamon, not bin.daemon as installed from 2.1.6-RELEASE. >How-To-Repeat: Install from 2.1.6-RELEASE start rwhod >Fix: chown daemon.daemon /var/rwho >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Dec 26 13:26:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA08618 for bugs-outgoing; Thu, 26 Dec 1996 13:26:05 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA08571; Thu, 26 Dec 1996 13:25:51 -0800 (PST) Date: Thu, 26 Dec 1996 13:25:51 -0800 (PST) From: Joerg Wunsch Message-Id: <199612262125.NAA08571@freefall.freebsd.org> To: seki@sysrap.cs.fujitsu.co.jp, joerg, freebsd-bugs Subject: Re: misc/2281 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: sysinstall panics kernel on Screenmap screen State-Changed-From-To: open-closed State-Changed-By: joerg State-Changed-When: Thu Dec 26 22:24:10 MET 1996 State-Changed-Why: Fixed in rev 1.32 of src/gnu/lib/libdialog/radiolist.c. From owner-freebsd-bugs Thu Dec 26 13:26:32 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA08715 for bugs-outgoing; Thu, 26 Dec 1996 13:26:32 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA08685; Thu, 26 Dec 1996 13:26:21 -0800 (PST) Date: Thu, 26 Dec 1996 13:26:21 -0800 (PST) From: Joerg Wunsch Message-Id: <199612262126.NAA08685@freefall.freebsd.org> To: seki@sysrap.cs.fujitsu.co.jp, joerg, freebsd-bugs Subject: Re: docs/2282 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: ahc0 is listed twice in HARDWARE.TXT State-Changed-From-To: open-closed State-Changed-By: joerg State-Changed-When: Thu Dec 26 22:24:10 MET 1996 State-Changed-Why: Suggested fix applied, thanks! From owner-freebsd-bugs Thu Dec 26 14:46:14 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA13901 for bugs-outgoing; Thu, 26 Dec 1996 14:46:14 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA13872; Thu, 26 Dec 1996 14:45:57 -0800 (PST) Date: Thu, 26 Dec 1996 14:45:57 -0800 (PST) From: Joerg Wunsch Message-Id: <199612262245.OAA13872@freefall.freebsd.org> To: andrew@pubnix.net, joerg, freebsd-bugs Subject: Re: bin/2287 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Owner of /var/rwho is wrong State-Changed-From-To: open-closed State-Changed-By: joerg State-Changed-When: Thu Dec 26 23:44:38 MET 1996 State-Changed-Why: The owner of /var/rwho is correct, the directory is group-writable. The submitter needs to update the group membership of his `daemon' user. From owner-freebsd-bugs Thu Dec 26 14:50:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA14237 for bugs-outgoing; Thu, 26 Dec 1996 14:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA14226; Thu, 26 Dec 1996 14:50:02 -0800 (PST) Date: Thu, 26 Dec 1996 14:50:02 -0800 (PST) Message-Id: <199612262250.OAA14226@freefall.freebsd.org> To: freebsd-bugs Cc: From: J Wunsch Subject: Re: bin/2287: problem with rwhod Reply-To: J Wunsch Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2287; it has been noted by GNATS. From: J Wunsch To: andrew@pubnix.net Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/2287: problem with rwhod Date: Thu, 26 Dec 1996 23:42:24 +0100 (MET) As andrew@pubnix.net wrote: > Owner of /var/rwho whould be daemon.deamon, not bin.daemon > as installed from 2.1.6-RELEASE. No, it should not. The directory is group-writable by daemon, this suffices. You forgot to update your master.passwd file; the primary group of Mr. Daemon has been migrated from `guest' to `daemon' over time... -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Thu Dec 26 15:20:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA15996 for bugs-outgoing; Thu, 26 Dec 1996 15:20:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA15980; Thu, 26 Dec 1996 15:20:02 -0800 (PST) Date: Thu, 26 Dec 1996 15:20:02 -0800 (PST) Message-Id: <199612262320.PAA15980@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: kern/2279: questionable parameter types in /usr/include/signal.h Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2279; it has been noted by GNATS. From: Bruce Evans To: bde@zeta.org.au, jau@jau.tmt.tele.fi Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/2279: questionable parameter types in /usr/include/signal.h Date: Fri, 27 Dec 1996 10:06:52 +1100 >> THere was no bug. _BSD_PID_T is defined in . > > No, not a functional bug, but a logic one. For logical completeness > it should read pid_t as per definition instead of _BSD_PID_T_ which > is not a real type from the compiler's point of view, but just a > macro which is later undefined when the real pid_t gets defined. No, the macro is never undefined. See . > I always liked the ConvexOS way of doing these #defines and typedefs. > ConvexOS also has something like _BSD_PID_T_ macros which are used > for initial typedefs. All the typedef types are then declared as > > #ifndef _PID_T > typedef _BSD_PID_T_ pid_t; > # define _PID_T pid_t > #endif This way takes more code and is only necessary for types that must be declared in multiple headers (like size_t). >> This restores the massive namespace pollution that I fixed in rev.1.4. >> Note that is included unconditionally by , so >> it must be just as careful about namespace pollution as . > > Eh? So... what has to do with it? It has nothing > to do with defining pid_t. At least it shouldn't have. I thought you were fixing . It's more obviously wrong to include in than in :-). used to include it. Bruce From owner-freebsd-bugs Thu Dec 26 15:29:29 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA16719 for bugs-outgoing; Thu, 26 Dec 1996 15:29:29 -0800 (PST) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id PAA16684; Thu, 26 Dec 1996 15:28:57 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hydrogen.nike.efn.org (8.8.4/8.8.4) with SMTP id PAA27682; Thu, 26 Dec 1996 15:28:33 -0800 (PST) Date: Thu, 26 Dec 1996 15:28:32 -0800 (PST) From: John-Mark Gurney X-Sender: jmg@hydrogen Reply-To: John-Mark Gurney To: vitjok@fasts.com cc: FreeBSD-gnats-submit@freebsd.org, GNATS Management , freebsd-bugs@freefall.freebsd.org Subject: Re: kern/2286: rpm (and possibly others) from RedHat 4.0 fail to run In-Reply-To: <19961226223907.10489.qmail@server.fasts.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On 26 Dec 1996 vitjok@fasts.com wrote: > rpm (and possibly other binaries) from RedHat Linux 4.0 > do not run. > > >How-To-Repeat: > > > rpm > ELF binary type not known did you brand the binary with brandelf? (don't ask me for specifics... I don't run -current or even close..) hope this helps... ttyl.. John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix) From owner-freebsd-bugs Thu Dec 26 15:30:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA16836 for bugs-outgoing; Thu, 26 Dec 1996 15:30:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA16829; Thu, 26 Dec 1996 15:30:02 -0800 (PST) Date: Thu, 26 Dec 1996 15:30:02 -0800 (PST) Message-Id: <199612262330.PAA16829@freefall.freebsd.org> To: freebsd-bugs Cc: From: John-Mark Gurney Subject: Re: kern/2286: rpm (and possibly others) from RedHat 4.0 fail to run Reply-To: John-Mark Gurney Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2286; it has been noted by GNATS. From: John-Mark Gurney To: vitjok@fasts.com Cc: FreeBSD-gnats-submit@freebsd.org, GNATS Management , freebsd-bugs@freefall.freebsd.org Subject: Re: kern/2286: rpm (and possibly others) from RedHat 4.0 fail to run Date: Thu, 26 Dec 1996 15:28:32 -0800 (PST) On 26 Dec 1996 vitjok@fasts.com wrote: > rpm (and possibly other binaries) from RedHat Linux 4.0 > do not run. > > >How-To-Repeat: > > > rpm > ELF binary type not known did you brand the binary with brandelf? (don't ask me for specifics... I don't run -current or even close..) hope this helps... ttyl.. John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix) From owner-freebsd-bugs Thu Dec 26 15:55:26 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA18606 for bugs-outgoing; Thu, 26 Dec 1996 15:55:26 -0800 (PST) Received: from icarus.cc.uic.edu (rory@ICARUS-FDDI.CC.UIC.EDU [128.248.100.53]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id PAA18598 for ; Thu, 26 Dec 1996 15:55:24 -0800 (PST) Received: from localhost (rory@localhost) by icarus.cc.uic.edu (8.8.3/8.8.3) with SMTP id RAA17528 for ; Thu, 26 Dec 1996 17:56:42 -0600 (CST) X-Authentication-Warning: icarus.cc.uic.edu: rory owned process doing -bs Date: Thu, 26 Dec 1996 17:56:42 -0600 (CST) From: Rory Imua Lampert X-Sender: rory@icarus.cc.uic.edu To: bugs@freebsd.org Subject: AMD 120 page fault during boot up Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello, I just recently purchased a AMD 486dx4/120 CPU. I have a 486/PCI motherboard with a UMC chipset. I have 32MB of EDO ram. The system works perfectly fine with the original Intel 486dx2/66 CPU. I installtg the AMD chip, set the jumpers for the correct voltage (3.3v) and CPU type (AMD dx4). When I boot my machine, it goes through the device probe, then shortly after init starts to run /etc/rc, gives me this error: Fatal trap 12: page fault while in kernel mode fault virtual address = 0xffbfed4 fault code = Supervisor read, page not present instruction pointer = 0x8:0xf0190146 code segment = base 0x0, lim, 4 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resum, IOPL=0 current process = 7 (fsck) interrupt mask = panic: page fault Someone told me to play with my cache settings in the bios, I've tried every combination upto disabling the internal and external cache. When I do this, the panic happens anywhere between init and say...sendmail starting up. I also duel boot to NT 4.0 and have had strange dealings with that...Photoshop works, but install Perfect Office dies with a divide by 0 error. Does anyone have any clue as to what I should try next? Thanks, Rory Imua Lampert From owner-freebsd-bugs Thu Dec 26 16:27:30 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA20875 for bugs-outgoing; Thu, 26 Dec 1996 16:27:30 -0800 (PST) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.fr [193.56.58.253]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA20863 for ; Thu, 26 Dec 1996 16:27:25 -0800 (PST) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id BAA02683; Fri, 27 Dec 1996 01:27:17 +0100 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id BAA15666; Fri, 27 Dec 1996 01:26:46 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.4/keltia-uucp-2.9) id BAA06746; Fri, 27 Dec 1996 01:21:01 +0100 (CET) Message-ID: Date: Fri, 27 Dec 1996 01:21:01 +0100 From: roberto@keltia.freenix.fr (Ollivier Robert) To: vitjok@fasts.com Cc: freebsd-bugs@freebsd.org (FreeBSD Bugs' list) Subject: Re: kern/2286: rpm (and possibly others) from RedHat 4.0 fail to run References: <19961226223907.10489.qmail@server.fasts.com> X-Mailer: Mutt 0.55.04 Mime-Version: 1.0 X-Operating-System: FreeBSD 3.0-CURRENT ctm#2837 In-Reply-To: <19961226223907.10489.qmail@server.fasts.com>; from vitjok@fasts.com on Dec 26, 1996 22:39:07 -0000 Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk According to vitjok@fasts.com: > > rpm > ELF binary type not known This is probably a static binary ELF program that you need to "brand". brandelf: illegal option -- h Usage: brandelf [-t string] file ... No file(s) specified. brandelf -t Linux linuxbin brandelf -t FreeBSD freebsdbin and so on. -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #33: Sat Dec 21 12:57:17 CET 1996 From owner-freebsd-bugs Thu Dec 26 17:00:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA21956 for bugs-outgoing; Thu, 26 Dec 1996 17:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA21929; Thu, 26 Dec 1996 17:00:02 -0800 (PST) Resent-Date: Thu, 26 Dec 1996 17:00:02 -0800 (PST) Resent-Message-Id: <199612270100.RAA21929@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, dillon@backplane.com Received: from apollo.backplane.com (dillon@apollo.backplane.com [204.156.134.254]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA21661 for ; Thu, 26 Dec 1996 16:50:36 -0800 (PST) Received: (dillon@localhost) by apollo.backplane.com (8.7.5/8.6.5) id QAA09552; Thu, 26 Dec 1996 16:50:34 -0800 (PST) Message-Id: <199612270050.QAA09552@apollo.backplane.com> Date: Thu, 26 Dec 1996 16:50:34 -0800 (PST) From: Matthew Dillon Reply-To: dillon@backplane.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2291: Race condition in pw_lock (vipw, chpass, etc....) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2291 >Category: bin >Synopsis: race condition in /etc/master.passwd locking code pw_lock() >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 26 17:00:01 PST 1996 >Last-Modified: >Originator: Matthew Dillon >Organization: >Release: FreeBSD 2.1-STABLE i386 >Environment: pentium-pro 200 / SCSI (irrelevent) >Description: In /usr/src/usr.sbin/vipw/pw_util.c, in the procedure pw_lock(): int pw_lock() { /* * If the master password file doesn't exist, the system is hosed. * Might as well try to build one. Set the close-on-exec bit so * that users can't get at the encrypted passwords while editing. * Open should allow flock'ing the file; see 4.4BSD. XXX */ lockfd = open(_PATH_MASTERPASSWD, O_RDONLY, 0); if (lockfd < 0 || fcntl(lockfd, F_SETFD, 1) == -1) err(1, "%s", _PATH_MASTERPASSWD); if (flock(lockfd, LOCK_EX|LOCK_NB)) errx(1, "the password db file is busy"); return (lockfd); } There is a race condition between the open() call and the flock() call whereby one program may get access to the master.passwd file, create a temporary-file copy, and rename() over and the second program winds up with a valid lock to a file descriptor to a now-unlinked file. >How-To-Repeat: >Fix: The fix is simple. After you have obtained the exclusive lock on the file, you must do an fstat() on the file descriptor and check st_nlink. If st_nlink is 0, someone else renamed the file out from under you and you must close your descriptor and loop to try again. This fix presumes that there are no other hardlinks to master.passwd. -- Alternately, you can stat() the master.passwd file AND fstat() the open descriptor and compare the inode numbers. If the inode numbers do not match, you have to close the descriptor and try again. If they do, you are ok. This fix works even in the face of additional hardlinks. -Matt >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Dec 26 17:50:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA23876 for bugs-outgoing; Thu, 26 Dec 1996 17:50:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA23861; Thu, 26 Dec 1996 17:50:03 -0800 (PST) Resent-Date: Thu, 26 Dec 1996 17:50:03 -0800 (PST) Resent-Message-Id: <199612270150.RAA23861@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, andrew@fortress.org Received: from stills.pubnix.net (Stills.pubnix.net [192.172.250.8]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id RAA23815 for ; Thu, 26 Dec 1996 17:49:51 -0800 (PST) Received: (from root@localhost) by stills.pubnix.net (8.7.6/8.7.3) id UAA20174; Thu, 26 Dec 1996 20:49:49 -0500 (EST) Message-Id: <199612270149.UAA20174@stills.pubnix.net> Date: Thu, 26 Dec 1996 20:49:49 -0500 (EST) From: root Reply-To: andrew@fortress.org To: FreeBSD-gnats-submit@freebsd.org Cc: andrew@fortress.org X-Send-Pr-Version: 3.2 Subject: bin/2293: Improvement to sliplogin Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2293 >Category: bin >Synopsis: Improvement to sliplogin - prints dest. IP address >Confidential: NO >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Dec 26 17:50:01 PST 1996 >Last-Modified: >Originator: Root >Organization: PubNIX Montreal >Release: FreeBSD 2.1.6-RELEASE >Environment: ISP using FreeBSD as modem server >Description: Modification to sliplogin prints desitination's IP address before going into SLIP mode, useful for scripts that can automatically grok IP addresses ala Trumpet Winsock >How-To-Repeat: N/R >Fix: *** sliplogin.c.orig Sat Dec 21 16:45:02 1996 --- sliplogin.c Sat Dec 21 20:57:45 1996 *************** *** 105,110 **** --- 105,133 ---- char loginargs[BUFSIZ]; char loginfile[MAXPATHLEN]; char loginname[BUFSIZ]; + static char raddr[32]; + + + char * + make_ipaddr(void) + { + static char address[20] =""; + struct hostent *he; + unsigned long ipaddr; + int i; + + address[0] = '\0'; + if ((he = gethostbyname(raddr)) != NULL) { + ipaddr = ntohl(*(long *)he->h_addr_list[0]); + sprintf(address, "%lu.%lu.%lu.%lu", + ipaddr >> 24, + (ipaddr & 0x00ff0000) >> 16, + (ipaddr & 0x0000ff00) >> 8, + (ipaddr & 0x000000ff)); + } + + return address; + } struct slip_modes { char *sm_name; *************** *** 124,130 **** FILE *fp; static char slopt[5][16]; static char laddr[16]; - static char raddr[16]; static char mask[16]; char slparmsfile[MAXPATHLEN]; char user[16]; --- 147,152 ---- *************** *** 381,386 **** --- 403,412 ---- } (void) fchmod(0, 0600); (void) fprintf(stderr, "starting slip login for %s\n", loginname); + (void) fprintf(stderr, "your address is %s\n\n", make_ipaddr()); + + (void) fflush(stderr); + sleep(1); /* set up the line parameters */ if (tcgetattr(0, &tios) < 0) { >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Dec 26 17:51:16 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA23957 for bugs-outgoing; Thu, 26 Dec 1996 17:51:16 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id RAA23952 for ; Thu, 26 Dec 1996 17:51:14 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.4/8.6.9) with ESMTP id RAA29236; Thu, 26 Dec 1996 17:51:10 -0800 (PST) To: Rory Imua Lampert cc: bugs@freebsd.org Subject: Re: AMD 120 page fault during boot up In-reply-to: Your message of "Thu, 26 Dec 1996 17:56:42 CST." Date: Thu, 26 Dec 1996 17:51:10 -0800 Message-ID: <29233.851651470@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Does anyone have any clue as to what I should try next? Try swapping that CPU. Jordan From owner-freebsd-bugs Thu Dec 26 18:34:10 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA25429 for bugs-outgoing; Thu, 26 Dec 1996 18:34:10 -0800 (PST) Received: from icarus.cc.uic.edu (ICARUS-FDDI.CC.UIC.EDU [128.248.100.53]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA25424 for ; Thu, 26 Dec 1996 18:34:08 -0800 (PST) Received: from localhost (rory@localhost) by icarus.cc.uic.edu (8.8.3/8.8.3) with SMTP id UAA28197 for ; Thu, 26 Dec 1996 20:34:11 -0600 (CST) X-Authentication-Warning: icarus.cc.uic.edu: rory owned process doing -bs Date: Thu, 26 Dec 1996 20:34:11 -0600 (CST) From: Rory Imua Lampert X-Sender: rory@icarus.cc.uic.edu To: bugs@FreeBSD.ORG Subject: Re: AMD 120 page fault during boot up In-Reply-To: <29233.851651470@time.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I did...well something like that. A friend had the exact same motherboard and cpu. So I put my cpu and ram in his motherboard, it worked just fine, with another hitch...He was running linux. We tried with my cpu and his ram, my cpu and my ram, his cpu and my ram and all variations worked. -Rory On Thu, 26 Dec 1996, Jordan K. Hubbard wrote: > > Does anyone have any clue as to what I should try next? > > Try swapping that CPU. > > Jordan > From owner-freebsd-bugs Thu Dec 26 21:10:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA02226 for bugs-outgoing; Thu, 26 Dec 1996 21:10:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA02220; Thu, 26 Dec 1996 21:10:01 -0800 (PST) Resent-Date: Thu, 26 Dec 1996 21:10:01 -0800 (PST) Resent-Message-Id: <199612270510.VAA02220@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jas@agua.flyingfox.com Received: from agua.flyingfox.com (agua.flyingfox.com [206.14.52.81]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id VAA02126 for ; Thu, 26 Dec 1996 21:06:38 -0800 (PST) Received: (from jas@localhost) by agua.flyingfox.com (8.8.4/8.8.4) id VAA00372; Thu, 26 Dec 1996 21:06:07 -0800 (PST) Message-Id: <199612270506.VAA00372@agua.flyingfox.com> Date: Thu, 26 Dec 1996 21:06:07 -0800 (PST) From: Jim Shankland Reply-To: jas@agua.flyingfox.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/2294: sysinstall over PPP to "custom" URL doesn't work Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2294 >Category: conf >Synopsis: sysinstall over PPP to "custom" URL doesn't work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 26 21:10:01 PST 1996 >Last-Modified: >Originator: Jim Shankland >Organization: Flying Fox Computer Systems, Inc. >Release: FreeBSD 2.2-BETA_A i386 >Environment: Pentium 133 on Asus P/I-P55TP4N IDE disk using serial ports on the motherboard (probably none of this matters) >Description: Can't load FreeBSD via sysinstall using PPP if you specify a "custom" URL -- e.g. ftp://myprivaterepository/pub/FreeBSD/ You get a clearly bogus error message ("Can't connect to .52.18", where this is the tail end of the entered gateway IP address). This problem appeared between 2.1.0 and 2.1.5, and still exists in 2.2-BETA_A. >How-To-Repeat: Use PPP to install FreeBSD on a machine, and specify an URL of your own, rather than choosing one of the offered ones. (It works fine if you use Ethernet rather than PPP.) >Fix: Workaround: take your machine to the office, and install over Ethernet :-). >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Dec 26 21:20:06 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA02569 for bugs-outgoing; Thu, 26 Dec 1996 21:20:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA02543; Thu, 26 Dec 1996 21:20:02 -0800 (PST) Date: Thu, 26 Dec 1996 21:20:02 -0800 (PST) Message-Id: <199612270520.VAA02543@freefall.freebsd.org> To: freebsd-bugs Cc: From: George Simunovich Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Reply-To: George Simunovich Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2270; it has been noted by GNATS. From: George Simunovich To: Bruce Evans Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Date: Thu, 26 Dec 1996 21:47:11 -0700 (MST) On 25-Dec-96 Bruce Evans wrote: >For single files it's easy enough to check out specific revisions (read >the cvs log to find the revision numbers), and in this case it's easiest >to work with the -current version (-current sio.c is identical with -2.2 >sio.c and the changes on 11/30/1996 aren't all together). > >Bruce I stepped through the sio.c versions from 11/30/1996. 1.152 works, 1.153 doesn't. The diff between the these two versions looks simple enough. The logs says "Reset h/w fifos (if any) in siostop(). ...". What does this mean with respect to the Hayes ESP? Is there a different way to do this for the ESP? I've checked out the RELENG_2_2 tagged versions of sio.c and #ifndef COM_ESP the two blocks of code that 1.153 added. The ESP card seems to be working fine. So now what? George ------------------------------------ George Simunovich From owner-freebsd-bugs Thu Dec 26 23:10:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA07743 for bugs-outgoing; Thu, 26 Dec 1996 23:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA07735; Thu, 26 Dec 1996 23:10:01 -0800 (PST) Resent-Date: Thu, 26 Dec 1996 23:10:01 -0800 (PST) Resent-Message-Id: <199612270710.XAA07735@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jas@agua.flyingfox.com Received: from agua.flyingfox.com (agua.flyingfox.com [206.14.52.81]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id XAA07374 for ; Thu, 26 Dec 1996 23:00:30 -0800 (PST) Received: (from jas@localhost) by agua.flyingfox.com (8.8.4/8.8.4) id XAA00565; Thu, 26 Dec 1996 23:00:08 -0800 (PST) Message-Id: <199612270700.XAA00565@agua.flyingfox.com> Date: Thu, 26 Dec 1996 23:00:08 -0800 (PST) From: Jim Shankland Reply-To: jas@agua.flyingfox.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/2296: Can't sysinstall via PPP over sio1 (/dev/cuaa1) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2296 >Category: conf >Synopsis: Can't sysinstall via PPP over sio1 (/dev/cuaa1) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 26 23:10:01 PST 1996 >Last-Modified: >Originator: Jim Shankland >Organization: Flying Fox Computer Systems, Inc. >Release: FreeBSD 2.2-BETA_A i386 >Environment: P5/133 on an Asus motherboard >Description: When trying to sysinstall via PPP over a device connected to sio1, ppp is unable to communicate with the device. It appears that even though sio1 (COM2, whatever) is selected, ppp is trying to use sio0. Even saying "set device /dev/cuaa1" has no effect. The kernel appears to have no trouble using /dev/cuaa1; but PPP cannot be made to. >How-To-Repeat: Attach a modem to sio1, and try to sysinstall over it. >Fix: Workaround: attach your modem to sio0. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Fri Dec 27 00:30:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA10076 for bugs-outgoing; Fri, 27 Dec 1996 00:30:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA10070; Fri, 27 Dec 1996 00:30:01 -0800 (PST) Date: Fri, 27 Dec 1996 00:30:01 -0800 (PST) Message-Id: <199612270830.AAA10070@freefall.freebsd.org> To: freebsd-bugs Cc: From: J Wunsch Subject: Re: bin/2291: Race condition in pw_lock (vipw, chpass, etc....) Reply-To: J Wunsch Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2291; it has been noted by GNATS. From: J Wunsch To: dillon@backplane.com Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/2291: Race condition in pw_lock (vipw, chpass, etc....) Date: Fri, 27 Dec 1996 09:20:55 +0100 (MET) As Matthew Dillon wrote: > /* > * If the master password file doesn't exist, the system is hosed. > * Might as well try to build one. Set the close-on-exec bit so > * that users can't get at the encrypted passwords while editing. > * Open should allow flock'ing the file; see 4.4BSD. XXX ^^^^^^^^^^ > */ > lockfd = open(_PATH_MASTERPASSWD, O_RDONLY, 0); > if (lockfd < 0 || fcntl(lockfd, F_SETFD, 1) == -1) > err(1, "%s", _PATH_MASTERPASSWD); > if (flock(lockfd, LOCK_EX|LOCK_NB)) > errx(1, "the password db file is busy"); > return (lockfd); > } > > There is a race condition between the open() call and the flock() > call whereby one program may get access to the master.passwd file, > The fix is simple. Why not using the O_EXLOCK flag in open(2)? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Fri Dec 27 01:30:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA11849 for bugs-outgoing; Fri, 27 Dec 1996 01:30:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA11843; Fri, 27 Dec 1996 01:30:01 -0800 (PST) Date: Fri, 27 Dec 1996 01:30:01 -0800 (PST) Message-Id: <199612270930.BAA11843@freefall.freebsd.org> To: freebsd-bugs Cc: From: Matthew Dillon Subject: Re: bin/2291: Race condition in pw_lock (vipw, chpass, etc....) Reply-To: Matthew Dillon Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2291; it has been noted by GNATS. From: Matthew Dillon To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/2291: Race condition in pw_lock (vipw, chpass, etc....) Date: Fri, 27 Dec 1996 01:21:07 -0800 (PST) : :Why not using the O_EXLOCK flag in open(2)? : :-- :cheers, J"org : :joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE :Never trust an operating system you don't have sources for. ;-) I don't think O_EXLOCK avoids the rename()-over race condition... you still have to do the stat()/fstat() check afterwords. -Matt Matthew Dillon Engineering, BEST Internet Communications, Inc. [always include a portion of the original email in any response!] From owner-freebsd-bugs Fri Dec 27 03:52:35 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA16084 for bugs-outgoing; Fri, 27 Dec 1996 03:52:35 -0800 (PST) Received: from murkwood.gaffaneys.com (dialup5.gaffaneys.com [134.129.252.24]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id DAA16079 for ; Fri, 27 Dec 1996 03:52:31 -0800 (PST) Received: (from zach@localhost) by murkwood.gaffaneys.com (8.8.2/8.7.3) id FAA02841; Fri, 27 Dec 1996 05:57:36 -0600 (CST) To: freebsd-bugs@freebsd.org Subject: Possible bug in Linux emulation code... Mime-Version: 1.0 (generated by tm-edit 7.89) Content-Type: text/plain; charset=US-ASCII From: Zach Heilig Date: 27 Dec 1996 05:57:35 -0600 In-Reply-To: Thomas Biskup's message of Thu, 26 Dec 1996 12:49:14 +0100 (MET) Message-ID: <87ybekfbdc.fsf@murkwood.gaffaneys.com> Lines: 30 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk There is a Linux game that comes in both statically linked a.out and dynamically linked elf formats. The a.out version (which I was using) is compiled with ncurses 1.9.9e headers, and linked with an older (1.8.6?) a.out library. Even though it might be a bad idea, this situation appearantly works fine for Linux. The only function this game calls that crashes in the FreeBSD emulation box is mvinch(). Whatever other ncurses functions the game calls do work properly (as far as I can tell, I haven't had much chance to do testing... this bug just happened to be painfully obvious). The maintainer is probably going to send me a linux a.out compiled binary that contains the above function, to make sure that is the cause of the SEGV... If it does turn out to be a crash only for FreeBSD, I'll submit a real bug report, since it means there probably is a Linux emulation bug somewhere... The ELF version (with the correct library linked in) works for both operating systems. The a.out version (with the older library linked) appearantly works for Linux (I don't know for sure, since I have no linux box to play with). If anyone else wants to reproduce the crash, the game is adom, available from: ftp://crescent.dartmouth.edu/adom/linux/adom-094g3-aout.tar.gz. It crashes whenever the game attempts to create a screen dump. (press '[' once you get into the main part of the game) From owner-freebsd-bugs Fri Dec 27 06:30:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA20403 for bugs-outgoing; Fri, 27 Dec 1996 06:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA20397; Fri, 27 Dec 1996 06:30:02 -0800 (PST) Resent-Date: Fri, 27 Dec 1996 06:30:02 -0800 (PST) Resent-Message-Id: <199612271430.GAA20397@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, andrew@fortress.org Received: from stills.pubnix.net (Stills.pubnix.net [192.172.250.8]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id GAA20355 for ; Fri, 27 Dec 1996 06:28:47 -0800 (PST) Received: (from root@localhost) by stills.pubnix.net (8.7.6/8.7.3) id JAA25479; Fri, 27 Dec 1996 09:28:45 -0500 (EST) Message-Id: <199612271428.JAA25479@stills.pubnix.net> Date: Fri, 27 Dec 1996 09:28:45 -0500 (EST) From: root Reply-To: andrew@fortress.org To: FreeBSD-gnats-submit@freebsd.org Cc: andrew@fortress.org X-Send-Pr-Version: 3.2 Subject: kern/2298: DCD/DSR swap support for sio.c Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2298 >Category: kern >Synopsis: Support for DSR/DCD swapping on serial ports (sio) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Dec 27 06:30:01 PST 1996 >Last-Modified: >Originator: root@pubnix.net >Organization: PubNIX Montreal >Release: FreeBSD 2.1.6-RELEASE >Environment: ISP with multi port serial cards using 10 pin RJ45s >Description: This change can benefit anyone using multiport serial cards that employ 10 pin RJ45 connectors (also known as RJ68) to distribute the data signals. These include but are not limited to the Boca 16 port serial board and and Digi PC/x cards with RJ68 fanout plugs. The pinout of the RJ68 connections has DCD on pin 1 and RI on pin 10. As the RI signal is not generally required in an ISP environment, and DCD is, I've added a flag bit in sio.c to support swapping DCD and DSR. This is also a common feature found on most Digi drivers, the company being aware that RJ68 connectors and all the related stuff are hard to find and/or expensive. >How-To-Repeat: N/R >Fix: *** sio.c.orig Fri Nov 15 18:36:37 1996 --- sio.c Fri Dec 20 11:24:46 1996 *************** *** 90,95 **** --- 90,99 ---- #define COM_LOSESOUTINTS(dev) ((dev)->id_flags & 0x08) #define COM_NOFIFO(dev) ((dev)->id_flags & 0x02) #define COM_VERBOSE(dev) ((dev)->id_flags & 0x80) + #define COM_SWAPDCDDSR(dev) ((dev)->id_flags & 0x10) + #define SWAPMASKDCD (MSR_DCD | MSR_DDCD) + #define SWAPMASKDSR (MSR_DSR | MSR_DDSR) + #define SWAPMASKDCDDSR (SWAPMASKDCD | SWAPMASKDSR) #define com_scr 7 /* scratch register for 16450-16550 (R/W) */ *************** *** 168,173 **** --- 172,178 ---- #ifdef COM_MULTIPORT bool_t multiport; /* is this unit part of a multiport device? */ #endif /* COM_MULTIPORT */ + bool_t swapdcddsr; /* We want to swap DCD and DSR */ bool_t no_irq; /* nonzero if irq is not attached */ bool_t poll; /* nonzero if polling is required */ bool_t poll_output; /* nonzero if polling for output is required */ *************** *** 410,415 **** --- 415,421 ---- } } #endif /* COM_MULTIPORT */ + if (idev->id_irq == 0) mcr_image = 0; *************** *** 683,688 **** --- 689,698 ---- outb(iobase + com_fifo, 0); determined_type: ; + if (COM_SWAPDCDDSR(isdp)) { + com->swapdcddsr = TRUE; + printf (" DSR<->DCD "); + } #ifdef COM_MULTIPORT if (COM_ISMULTIPORT(isdp)) { com->multiport = TRUE; *************** *** 752,757 **** --- 762,768 ---- int s; struct tty *tp; int unit; + u_char tmp1; mynor = minor(dev); unit = MINOR_TO_UNIT(mynor); *************** *** 857,864 **** disable_intr(); (void) inb(com->line_status_port); (void) inb(com->data_port); ! com->prev_modem_status = com->last_modem_status ! = inb(com->modem_status_port); outb(iobase + com_ier, IER_ERXRDY | IER_ETXRDY | IER_ERLS | IER_EMSC); enable_intr(); --- 868,884 ---- disable_intr(); (void) inb(com->line_status_port); (void) inb(com->data_port); ! tmp1 = inb(com->modem_status_port); ! if (com->swapdcddsr) ! com->prev_modem_status = com->last_modem_status = ! ((tmp1 & ~SWAPMASKDCDDSR) ! | ((tmp1 & SWAPMASKDCD) >> 2) ! | ((tmp1 & SWAPMASKDSR) << 2)); ! else ! com->prev_modem_status = com->last_modem_status = tmp1; ! ! ! outb(iobase + com_ier, IER_ERXRDY | IER_ETXRDY | IER_ERLS | IER_EMSC); enable_intr(); *************** *** 1102,1107 **** --- 1122,1128 ---- u_char modem_status; u_char *ioptr; u_char recv_data; + u_char tmp1; if (com->do_timestamp) /* XXX a little bloat here... */ *************** *** 1187,1193 **** } /* modem status change? (always check before doing output) */ ! modem_status = inb(com->modem_status_port); if (modem_status != com->last_modem_status) { /* * Schedule high level to handle DCD changes. Note --- 1208,1220 ---- } /* modem status change? (always check before doing output) */ ! tmp1 = inb(com->modem_status_port); ! if (com->swapdcddsr) ! modem_status = ((tmp1 & ~SWAPMASKDCDDSR) ! | ((tmp1 & SWAPMASKDCD) >> 2) ! | ((tmp1 & SWAPMASKDSR) << 2)); ! else ! modem_status = tmp1; if (modem_status != com->last_modem_status) { /* * Schedule high level to handle DCD changes. Note >Audit-Trail: >Unformatted: From owner-freebsd-bugs Fri Dec 27 11:30:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA04414 for bugs-outgoing; Fri, 27 Dec 1996 11:30:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA04404; Fri, 27 Dec 1996 11:30:01 -0800 (PST) Date: Fri, 27 Dec 1996 11:30:01 -0800 (PST) Message-Id: <199612271930.LAA04404@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2270; it has been noted by GNATS. From: Bruce Evans To: bde@zeta.org.au, george@cia-g.com Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Date: Sat, 28 Dec 1996 06:16:42 +1100 >I stepped through the sio.c versions from 11/30/1996. 1.152 works, >1.153 doesn't. The diff between the these two versions looks simple >enough. The logs says "Reset h/w fifos (if any) in siostop(). ...". >What does this mean with respect to the Hayes ESP? Is there a >different way to do this for the ESP? Good work. Look at the magic outb for the ESP case near line 902. This sets the FIFO_RCV_RST and FIFO_XMT_RST bits in combination with the FIFO_DMA_MODE bit. I don't know what this does (I don't have any documentation about the ESP). The author of the ESP changes said that the DMA bit doesn't have anything to do with DMA. Apparently the reset bits aren't for reset either. Bruce From owner-freebsd-bugs Fri Dec 27 11:52:35 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA05327 for bugs-outgoing; Fri, 27 Dec 1996 11:52:35 -0800 (PST) Received: from aldhfn.aldhfn.org (root@aldhfn.aldhfn.org [198.17.116.1]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA05319; Fri, 27 Dec 1996 11:52:19 -0800 (PST) Received: (from ciaran@localhost) by aldhfn.aldhfn.org (8.8.3/8.6.11.1) id OAA00860; Fri, 27 Dec 1996 14:44:14 -0500 (EST) Date: Fri, 27 Dec 1996 14:44:13 -0500 (EST) From: Skip Watson To: joerg@freefall.freebsd.org cc: freebsd-bugs@freefall.freebsd.org Subject: Re: bin/2092 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Synopsis: rlogind not using passwords > > State-Changed-From-To: open-feedback > State-Changed-By: joerg > State-Changed-When: Sun Dec 22 15:10:13 MET 1996 > State-Changed-Why: > The behaviour described in this PR cannot be seen on any other FreeBSD system > around. Please make sure that your sysstem has not been hacked. I just finished updating to 2.1.6 and the problem is still there. I have not wiped the disk to do a complete new install. The business can't have the machines down for that long. I've tried it with and without tcp_wrappers. It's strange because it has always acted this way, even back with 1.* versions. > Try adding some debugging syslog() lines to rlogind, to make sure > what's happening. REplace the function do_rlogin() in > /usr/src/libexec/rlogind/rlogind.c with: > > int > do_rlogin(dest) > struct sockaddr_in *dest; > { > int rv; > > getstr(rusername, sizeof(rusername), "remuser too long"); > getstr(lusername, sizeof(lusername), "locuser too long"); > getstr(term+ENVSIZE, sizeof(term)-ENVSIZE, "Terminal type too long"); > > pwd = getpwnam(lusername); > if (pwd == NULL) > return (-1); > /* XXX why don't we syslog() failure? */ > rv = (iruserok(dest->sin_addr.s_addr, pwd->pw_uid == 0, > rusername, lusername)); > syslog(LOG_DEBUG, > "do_rlogin(): from %s, ruser %s, luser %s, iruserok(): %d", > inet_ntoa(dest->sin_addr.s_addr), rusername, > lusername, rv); > return (rv); > } I applied that and typed make and got the following: rlogind.c: In function 'do_rlogin'; rlogind.c:588 incompatible type for argument 1 of 'inet_ntoa' rlogind.c: At top level: rlogind.c:608 parse error before 'return' rlogind.c:617 parse error before '{' rlogind.c:625 parse error before '++' Skip -- Auldhaefen Online Services automated info: info@aldhfn.org 330 745-9380 voice questions: support@aldhfn.org 330 753-8791 bbs/fax person: ciaran@aldhfn.org 330 745-7624 data WWW: http://www.ald.net From owner-freebsd-bugs Fri Dec 27 12:50:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA07588 for bugs-outgoing; Fri, 27 Dec 1996 12:50:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA07581; Fri, 27 Dec 1996 12:50:02 -0800 (PST) Date: Fri, 27 Dec 1996 12:50:02 -0800 (PST) Message-Id: <199612272050.MAA07581@freefall.freebsd.org> To: freebsd-bugs Cc: From: Julian Elischer Subject: Re: kern/2298: DCD/DSR swap support for sio.c Reply-To: Julian Elischer Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2298; it has been noted by GNATS. From: Julian Elischer To: andrew@fortress.org Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/2298: DCD/DSR swap support for sio.c Date: Fri, 27 Dec 1996 10:45:25 -0800 root@freefall.freebsd.org wrote: > > >Number: 2298 > >Category: kern > >Synopsis: Support for DSR/DCD swapping on serial ports (sio) > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-bugs > >State: open > >Class: change-request > >Submitter-Id: current-users > >Arrival-Date: Fri Dec 27 06:30:01 PST 1996 > >Last-Modified: > >Originator: root@pubnix.net > >Organization: > PubNIX Montreal > >Release: FreeBSD 2.1.6-RELEASE > >Environment: > > ISP with multi port serial cards using 10 pin RJ45s > > >Description: > > This change can benefit anyone using multiport serial cards that > employ 10 pin RJ45 connectors (also known as RJ68) to distribute the > data signals. These include but are not limited to the Boca 16 port > serial board and and Digi PC/x cards with RJ68 fanout plugs. > > The pinout of the RJ68 connections has DCD on pin 1 and RI on pin 10. > As the RI signal is not generally required in an ISP environment, > and DCD is, I've added a flag bit in sio.c to support swapping DCD > and DSR. > > This is also a common feature found on most Digi drivers, the company > being aware that RJ68 connectors and all the related stuff are hard to > find and/or expensive. > > >How-To-Repeat: > > N/R > Your change is much more likely to be accepted if you also include about 2 paragraphs of description in a diff to the sio man page, so that this change is not lost in obscurity. julian. From owner-freebsd-bugs Fri Dec 27 13:20:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA09023 for bugs-outgoing; Fri, 27 Dec 1996 13:20:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA09006; Fri, 27 Dec 1996 13:20:02 -0800 (PST) Resent-Date: Fri, 27 Dec 1996 13:20:02 -0800 (PST) Resent-Message-Id: <199612272120.NAA09006@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, brandon@cold.org Received: from glacier.cold.org (glacier.cold.org [206.81.134.54]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id NAA08850 for ; Fri, 27 Dec 1996 13:14:57 -0800 (PST) Received: (from brandon@localhost) by glacier.cold.org (8.7.5/8.7.3) id OAA03095; Fri, 27 Dec 1996 14:14:57 -0700 (MST) Message-Id: <199612272114.OAA03095@glacier.cold.org> Date: Fri, 27 Dec 1996 14:14:57 -0700 (MST) From: brandon@cold.org Reply-To: brandon@cold.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/2302: new crypt() including SHS and an extendable interface Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2302 >Category: misc >Synopsis: new crypt() including SHS and an extendable interface >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 27 13:20:01 PST 1996 >Last-Modified: >Originator: Brandon Gillespie >Organization: >Release: FreeBSD 2.1-STABLE i386 >Environment: >Description: New crypt() library and integration notes, including SHS encryption as well as MD5 and a hook for DES as well as an extensible interface for newer algorithms as they arise. Worked with PHK a bit on full implementation. >How-To-Repeat: >Fix: Contact me and I can provide a tarred source file including the crypt library, notes and the shs implementation. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Fri Dec 27 14:31:25 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA11483 for bugs-outgoing; Fri, 27 Dec 1996 14:31:25 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA11453; Fri, 27 Dec 1996 14:30:02 -0800 (PST) Date: Fri, 27 Dec 1996 14:30:02 -0800 (PST) Message-Id: <199612272230.OAA11453@freefall.freebsd.org> To: freebsd-bugs Cc: From: "Jukka A. Ukkonen" Subject: Re: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches Reply-To: "Jukka A. Ukkonen" Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2273; it has been noted by GNATS. From: "Jukka A. Ukkonen" To: FreeBSD-gnats@freefall.freebsd.org, freebsd-bugs@freefall.freebsd.org Cc: Subject: Re: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches Date: Wed, 25 Dec 1996 13:02:58 +0200 (EET) Quoting FreeBSD-gnats@freefall.freebsd.org: > > Thank you very much for your problem report. > It has the internal identification `kern/2273'. > The individual assigned to look at your > bug is: freebsd-bugs. > > >Category: kern > >Responsible: freebsd-bugs > >Synopsis: support for POSIX.4 / POSIX.1a RT-scheduler API > >Arrival-Date: Tue Dec 24 05:30:01 PST 1996 > Aargh! I did it again - sent the old shar package, I mean. Now the attached one is the correct one. I promise. Cheers, // jau ------ / Jukka A. Ukkonen, Internet and New Media / Finnish Telecom Ltd. /__ M.Sc. (sw-eng & cs) (Phone) +358-2040-4025 / Internet: Jukka.Ukkonen@tele.fi (Fax) +358-2040-2712 / Internet: jau@iki.fi (Mobile) +358-400-606671 v Internet: ukkonen@nic.funet.fi (Home&Fax) +358-9-6215280 o \ / - X ------------------------- clip clip ------------------------------ / \ O # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sched/sched.h # sched/sched_getparam.c # sched/sched_getscheduler.c # sched/sched_get_priority_max.c # sched/sched_get_priority_min.c # sched/sched_rr_get_interval.c # sched/sched_setparam.c # sched/sched_setscheduler.c # sched/Makefile # sched/Kernel-Sched.Diffs # sched/sched_yield.Diffs # sched/RTprio.diffs # echo x - sched/sched.h sed 's/^X//' >sched/sched.h << 'END-of-sched/sched.h' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X X#ifndef _SCHED_H X#define _SCHED_H X X#include X#include X#include /* For struct timespec */ X X#ifndef _POSIX_PRIORITY_SCHEDULING X# define _POSIX_PRIORITY_SCHEDULING X#endif X X/* X * FIFO and Round-Robin must really be separate, but maybe X * it could be possible and worthwhile to try approximate FIFO X * using RR with higher priorities. X * X * RTP_PRIO_REALTIME with round-robin among equal priority X * processes at every time-quantum (= currently HZ/10) would X * still be only a poor substitute for fifo scheduling on X * systems that don't have a real fifo policy. X * X * Otherwise FIFO and RR are equivalent in all respects, but X * RR comes with involuntary release of CPU after the time X * quantum has passed. X * FIFO knows only about voluntary release of the CPU while X * the process can run as long as it wishes. So, you really X * can hang your machine, if there is no other process with X * higher RT-priority (FIFO or RR) ready to kill a infinitely X * looping FIFO process. X */ X X#ifdef RTP_PRIO_FIFO X# define SCHED_FIFO RTP_PRIO_FIFO X#else X# define SCHED_FIFO RTP_PRIO_REALTIME X#endif X X#define SCHED_RR RTP_PRIO_REALTIME X#define SCHED_TIMESHARE RTP_PRIO_NORMAL X#define SCHED_IDLE RTP_PRIO_IDLE X#define SCHED_OTHER SCHED_TIMESHARE X X/* X * Hopefully someone is interested enough to add X * the necessary deadline logic to the kernel. X */ X X#ifdef RTP_PRIO_DEADLINE X# define SCHED_DEADLINE RTP_PRIO_DEADLINE X#endif X Xstruct sched_param { X int sched_type; /* scheduling policy */ X int sched_priority; /* nice for time-share, else true prio */ X int sched_pgprio; /* pg-nice for TS, else unused */ X int sched_userprio; /* user-nice for TS, else unused */ X struct timespec sched_deadline; /* reserved for deadline scheduling */ X struct timespec sched_timereq; /* reserved for deadline scheduling */ X}; X X#endif END-of-sched/sched.h echo x - sched/sched_getparam.c sed 's/^X//' >sched/sched_getparam.c << 'END-of-sched/sched_getparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_getparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X param->sched_type = rtp.type; X X if (rtp.type == RTP_PRIO_NORMAL) { X errno = 0; X X param->sched_priority = getpriority (PRIO_PROCESS, pid); X X if ((param->sched_priority == -1) && errno) X return (-1); X X param->sched_priority = -param->sched_priority; X X errno = 0; X X param->sched_pgprio = getpriority (PRIO_PGRP, pid); X X if ((param->sched_pgprio == -1) && errno) X return (-1); X X param->sched_pgprio = -param->sched_pgprio; X X errno = 0; X X param->sched_userprio = getpriority (PRIO_USER, pid); X X if ((param->sched_userprio == -1) && errno) X return (-1); X X param->sched_userprio = -param->sched_userprio; X } X else X param->sched_priority = RTP_PRIO_MAX - rtp.prio; X X return (0); X} END-of-sched/sched_getparam.c echo x - sched/sched_getscheduler.c sed 's/^X//' >sched/sched_getscheduler.c << 'END-of-sched/sched_getscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X Xint Xsched_getscheduler (pid) X pid_t pid; X{ X struct rtprio rtp; X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X return ((int) rtp.type); X} END-of-sched/sched_getscheduler.c echo x - sched/sched_get_priority_max.c sed 's/^X//' >sched/sched_get_priority_max.c << 'END-of-sched/sched_get_priority_max.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X errno = 0; X X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MAX); X X case SCHED_TIMESHARE: X return (PRIO_MAX); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched/sched_get_priority_max.c echo x - sched/sched_get_priority_min.c sed 's/^X//' >sched/sched_get_priority_min.c << 'END-of-sched/sched_get_priority_min.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X Xint Xsched_get_priority_max (policy) X int policy; X{ X errno = 0; X X switch (policy) { X X case SCHED_FIFO: X case SCHED_RR: X case SCHED_IDLE: X return (RTP_PRIO_MIN); X X case SCHED_TIMESHARE: X return (PRIO_MIN); X X default: X errno = EINVAL; /* Here is a gotcha! Always check errno! */ X return (-1); /* Whether negatives are valid is unspecified. */ X } X} X END-of-sched/sched_get_priority_min.c echo x - sched/sched_rr_get_interval.c sed 's/^X//' >sched/sched_rr_get_interval.c << 'END-of-sched/sched_rr_get_interval.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X Xint Xsched_rr_get_interval (pid, ts) X pid_t pid; X struct timespec *ts; X{ X struct clockinfo cinfo; X struct rtprio rtp; X int sysmib[2]; X size_t cinfosize; X X if (! ts) { X errno = EFAULT; X X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X if (rtp.type != SCHED_RR) { X errno = EINVAL; X X return (-1); X } X X cinfosize = sizeof (cinfo); X X sysmib[0] = CTL_KERN; X sysmib[1] = KERN_CLOCKRATE; X X if (sysctl (sysmib, 2, &cinfo, &cinfosize, NULL, 0) < 0) X return (-1); X X ts->ts_sec = 0; X ts->ts_nsec = cinfo.tick * 10 * 1000; /* really (hz / 10) */ X X return (0); X} X X#ifdef DEBUG_SCHED_RR_GET_INTERVAL X Xint Xmain () X{ X struct timespec ts; X X if (sched_rr_get_interval (getpid (), &ts) < 0) { X perror ("sched_rr_get_interval ()"); X exit (-1); X } X X printf ("ts.ts_sec = %d, ts.ts_nsec = %d\n", ts.ts_sec, ts.ts_nsec); X X return (0); X} X X#endif X END-of-sched/sched_rr_get_interval.c echo x - sched/sched_setparam.c sed 's/^X//' >sched/sched_setparam.c << 'END-of-sched/sched_setparam.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setparam (pid, param) X pid_t pid; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X if (rtprio (RTP_LOOKUP, pid, &rtp) < 0) X return (-1); X X if (rtp.type == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched/sched_setparam.c echo x - sched/sched_setscheduler.c sed 's/^X//' >sched/sched_setscheduler.c << 'END-of-sched/sched_setscheduler.c' X/* X * Copyright (c) 1995,1996 Jukka Ukkonen X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by Jukka Antero Ukkonen. X * 4. Neither the names of the authors nor the names of contributors X * may be used to endorse or promote products derived from this software X * without specific prior written permission. X * 5. The source code must be available for anyone who wishes to have it. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * %W% (Jukka Ukkonen) %E% X */ X X#ifndef lint Xstatic const char sccsid[] = "%W%\t(Jukka Ukkonen)\t%E%"; X#endif X X X#include X#include X#include X#include X#include X#include X Xint Xsched_setscheduler (pid, policy, param) X pid_t pid; X int policy; X struct sched_param *param; X{ X struct rtprio rtp; X X if (! param) { X errno = EINVAL; X return (-1); X } X X rtp.type = policy; X X if (policy == RTP_PRIO_NORMAL) { X if (setpriority (PRIO_PROCESS, pid, -param->sched_priority) < 0) X return (-1); X X if (setpriority (PRIO_PGRP, pid, -param->sched_pgprio) < 0) X return (-1); X X if (setpriority (PRIO_USER, pid, -param->sched_userprio) < 0) X return (-1); X X rtp.prio = 0; X } X else X rtp.prio = RTP_PRIO_MAX - param->sched_priority; X X if (rtprio (RTP_SET, pid, &rtp) < 0) X return (-1); X X return (0); X} END-of-sched/sched_setscheduler.c echo x - sched/Makefile sed 's/^X//' >sched/Makefile << 'END-of-sched/Makefile' X XCC = gcc X X.c.o: X $(CC) $(CFLAGS) -c $< X ld -r -x $@ X mv a.out $@ X chmod a-x $@ X XCINCL = -I../include -I../ctype X XCFLAGS = -O4 -fexpensive-optimizations -fpcc-struct-return -funsigned-char \ X -D_NO_POSIX_OPAQUE_TYPES $(CDEBUG) $(CINCL) X#CFLAGS = $(CDEBUG) $(CINCL) X XSRCS = \ X sched_get_priority_max.c sched_setparam.c \ X sched_get_priority_min.c sched_setscheduler.c \ X sched_getparam.c sched_getscheduler.c \ X sched_rr_get_interval.c X XOBJS = \ X sched_get_priority_max.o sched_setparam.o \ X sched_get_priority_min.o sched_setscheduler.o \ X sched_getparam.o sched_getscheduler.o \ X sched_rr_get_interval.o X Xlibsched.a: $(OBJS) X rm -f $@ X ar rv $@ $(OBJS) X ranlib $@ X END-of-sched/Makefile echo x - sched/Kernel-Sched.Diffs sed 's/^X//' >sched/Kernel-Sched.Diffs << 'END-of-sched/Kernel-Sched.Diffs' X--- /sys/kern/kern_resource.c.orig Tue May 30 11:05:39 1995 X+++ /sys/kern/kern_resource.c Mon Dec 25 20:52:30 1995 X@@ -247,8 +247,11 @@ X /* can't set realtime priority */ X if (rtp.type == RTP_PRIO_REALTIME) X return (EPERM); X+ if (rtp.type == RTP_PRIO_FIFO) X+ return (EPERM); X } X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X case RTP_PRIO_REALTIME: X case RTP_PRIO_NORMAL: X case RTP_PRIO_IDLE: X--- /sys/kern/kern_synch.c.orig Tue May 30 11:05:44 1995 X+++ /sys/kern/kern_synch.c Tue Dec 26 16:23:20 1995 X@@ -67,8 +67,10 @@ X roundrobin(arg) X void *arg; X { X+ if (! curproc || curproc->p_rtprio.type != RTP_PRIO_FIFO) { X+ need_resched(); X+ } X X- need_resched(); X timeout(roundrobin, NULL, hz / 10); X } X X@@ -670,7 +672,11 @@ X p->p_usrpri = newpriority; X if (newpriority < curpriority) X need_resched(); X- } else { X+ } else if (! curproc || X+ (curproc->p_rtprio.type != RTP_PRIO_FIFO) || X+ (((p->p_rtprio.type == RTP_PRIO_FIFO) || X+ (p->p_rtprio.type == RTP_PRIO_REALTIME)) && X+ (p->p_rtprio.prio < curproc->p_rtprio.prio))) { X need_resched(); X } X } X--- /sys/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /sys/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X X--- /sys/i386/i386/swtch.s.orig Tue Dec 26 14:19:25 1995 X+++ /sys/i386/i386/swtch.s Tue Dec 26 14:20:58 1995 X@@ -90,6 +90,9 @@ X X movzwl P_RTPRIO_PRIO(%eax),%edx X X+ cmpw $RTP_PRIO_FIFO,P_RTPRIO_TYPE(%eax) /* fifo rt priority? */ X+ je set_rt X+ X cmpw $RTP_PRIO_REALTIME,P_RTPRIO_TYPE(%eax) /* realtime priority? */ X jne set_id /* must be idle priority */ X X--- /sys/vm/vm_glue.c.orig Mon Oct 16 22:43:05 1995 X+++ /sys/vm/vm_glue.c Mon Dec 25 20:52:32 1995 X@@ -430,6 +430,9 @@ X /* X * do not swapout a realtime process X */ X+ if (p->p_rtprio.type == RTP_PRIO_FIFO) X+ continue; X+ X if (p->p_rtprio.type == RTP_PRIO_REALTIME) X continue; X X--- /usr/include/sys/rtprio.h.orig Sun Oct 2 06:45:59 1994 X+++ /usr/include/sys/rtprio.h Mon Dec 25 20:48:18 1995 X@@ -42,7 +42,26 @@ X #define RTP_PRIO_REALTIME 0 X #define RTP_PRIO_NORMAL 1 X #define RTP_PRIO_IDLE 2 X+#define RTP_PRIO_FIFO 3 X X+/* X+ * RTP_PRIO_QUANTUM -- not implemented yet! X+ * Actually this is intended as another type X+ * of round-robin policy with the ability to X+ * allow processes request a non-default X+ * time-slice or time-quantum. X+ */ X+/* #define RTP_PRIO_QUANTUM 4 */ X+ X+/* X+ * RTP_PRIO_DEADLINE -- not implemented yet! X+ */ X+/* #define RTP_PRIO_DEADLINE 5 */ X+ X+/* X+ * Actual priority ranges should be changed X+ * to cover at least some 128 to 256 steps! X+ */ X /* priority range */ X #define RTP_PRIO_MIN 0 /* Highest priority */ X #define RTP_PRIO_MAX 31 /* Lowest priority */ X@@ -57,6 +76,10 @@ X struct rtprio { X u_short type; X u_short prio; X+#if defined(RTP_PRIO_DEADLINE) || defined(RTP_PRIO_QUANTUM) X+ struct timeval deadline; /* Fail if not ready to repeat. */ X+ struct timeval quantum; /* Min./required time slice. */ X+#endif X }; X #endif X END-of-sched/Kernel-Sched.Diffs echo x - sched/sched_yield.Diffs sed 's/^X//' >sched/sched_yield.Diffs << 'END-of-sched/sched_yield.Diffs' X--- /sys/kern/init_sysent.c.no_sched_yield Wed Dec 4 23:41:55 1996 X+++ /sys/kern/init_sysent.c Wed Dec 4 23:49:14 1996 X@@ -179,6 +179,7 @@ X int mlock(); X int munlock(); X int getsid(); X+int sched_yield(); X int lkmnosys(); X X #ifdef COMPAT_43 X@@ -489,7 +490,8 @@ X { 2, munlock }, /* 204 = munlock */ X /* { 0, nosys }, 205 = nosys */ X { 1, getsid }, /* 205 = getsid */ X- { 0, nosys }, /* 206 = nosys */ X+ /* { 0, nosys }, 206 = nosys */ X+ { 0, sched_yield }, /* 206 = sched_yield */ X { 0, nosys }, /* 207 = nosys */ X { 0, nosys }, /* 208 = nosys */ X { 0, nosys }, /* 209 = nosys */ X--- /sys/kern/syscalls.c.no_sched_yield Wed Dec 4 23:42:24 1996 X+++ /sys/kern/syscalls.c Wed Dec 4 23:46:07 1996 X@@ -249,7 +249,8 @@ X "munlock", /* 204 = munlock */ X /* "#205", 205 = nosys */ X "getsid", /* 205 = getsid */ X- "#206", /* 206 = nosys */ X+ /* "#206", 206 = nosys */ X+ "sched_yield", /* 206 = sched_yield */ X "#207", /* 207 = nosys */ X "#208", /* 208 = nosys */ X "#209", /* 209 = nosys */ X--- /sys/kern/syscalls.master.no_sched_yield Wed Dec 4 23:42:43 1996 X+++ /sys/kern/syscalls.master Wed Dec 4 23:44:28 1996 X@@ -280,7 +280,8 @@ X 204 STD 2 BSD munlock X ; 205 UNIMPL 0 NOHIDE nosys X 205 STD 1 BSD getsid X-206 UNIMPL 0 NOHIDE nosys X+; 206 UNIMPL 0 NOHIDE nosys X+206 STD 0 POSIX sched_yield X 207 UNIMPL 0 NOHIDE nosys X 208 UNIMPL 0 NOHIDE nosys X 209 UNIMPL 0 NOHIDE nosys X--- /sys/kern/kern_synch.c.no_sched_yield Tue Dec 24 13:12:02 1996 X+++ /sys/kern/kern_synch.c Tue Dec 24 11:25:33 1996 X@@ -681,3 +681,20 @@ X } X } X X+struct sched_yield_args { X+ void *arg; X+}; X+/* ARGSUSED */ X+int X+sched_yield (p, uap, retval) X+ struct proc *p; X+ struct sched_yield_args *uap; X+ int *retval; X+{ X+ need_resched (); /* Wild, isn't it? */ X+ X+ *retval = 0; X+ X+ return (0); X+} X+ X--- /usr/include/sys/syscall.h.no_sched_yield Tue Dec 24 13:19:56 1996 X+++ /usr/include/sys/syscall.h Tue Dec 24 12:23:18 1996 X@@ -193,3 +193,4 @@ X #define SYS_mlock 203 X #define SYS_munlock 204 X #define SYS_getsid 205 X+#define SYS_sched_yield 206 X--- /usr/include/unistd.h.no_sched_yield Tue Dec 24 13:18:59 1996 X+++ /usr/include/unistd.h Tue Dec 24 12:39:59 1996 X@@ -174,6 +174,7 @@ X int vhangup __P((void)); X void *valloc __P((size_t)); /* obsoleted by malloc() */ X pid_t vfork __P((void)); X+int sched_yield __P((void)); X #endif /* !_POSIX_SOURCE */ X __END_DECLS X X--- /sys/sys/syscall.h.no_sched_yield Tue Dec 24 13:22:52 1996 X+++ /sys/sys/syscall.h Tue Dec 24 12:23:56 1996 X@@ -193,3 +193,4 @@ X #define SYS_mlock 203 X #define SYS_munlock 204 X #define SYS_getsid 205 X+#define SYS_sched_yield 206 END-of-sched/sched_yield.Diffs echo x - sched/RTprio.diffs sed 's/^X//' >sched/RTprio.diffs << 'END-of-sched/RTprio.diffs' X--- /usr/src/usr.sbin/rtprio/rtprio.c.orig Sun Oct 2 06:48:21 1994 X+++ /usr/src/usr.sbin/rtprio/rtprio.c Tue Dec 26 11:18:20 1995 X@@ -63,6 +63,10 @@ X X if (!strcmp(p, "rtprio")) X rtp.type = RTP_PRIO_REALTIME; X+#ifdef RTP_PRIO_FIFO X+ else if (!strcmp(p, "rtfifoprio")) X+ rtp.type = RTP_PRIO_FIFO; X+#endif X else if (!strcmp(p, "idprio")) X rtp.type = RTP_PRIO_IDLE; X X@@ -76,8 +80,13 @@ X perror(argv[0]); X exit (1); X } X+ X printf("%s: ", p); X+ X switch (rtp.type) { X+ case RTP_PRIO_FIFO: X+ printf("hard realtime fifo priority %d\n", rtp.prio); X+ break; X case RTP_PRIO_REALTIME: X printf("realtime priority %d\n", rtp.prio); X break; END-of-sched/RTprio.diffs exit From owner-freebsd-bugs Fri Dec 27 14:40:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA11730 for bugs-outgoing; Fri, 27 Dec 1996 14:40:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA11722; Fri, 27 Dec 1996 14:40:01 -0800 (PST) Resent-Date: Fri, 27 Dec 1996 14:40:01 -0800 (PST) Resent-Message-Id: <199612272240.OAA11722@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, gurney_j@efn.org Received: from mail.webspan.net (mail.webspan.net [206.154.70.7]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA11600 for ; Fri, 27 Dec 1996 14:36:08 -0800 (PST) Received: from orion.webspan.net (orion.webspan.net [206.154.70.5]) by mail.webspan.net (8.7.5/8.7.3) with ESMTP id RAA09728 for ; Fri, 27 Dec 1996 17:35:17 -0500 (EST) Received: from orion.webspan.net (localhost [127.0.0.1]) by orion.webspan.net (8.8.3/8.7.3) with ESMTP id RAA03717 for ; Fri, 27 Dec 1996 17:35:16 -0500 (EST) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.18]) by mail.webspan.net (8.7.5/8.7.3) with ESMTP id TAA04915 for ; Thu, 26 Dec 1996 19:44:32 -0500 (EST) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA21489 for ; Thu, 26 Dec 1996 16:44:05 -0800 (PST) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.4/8.8.4) id QAA28028; Thu, 26 Dec 1996 16:44:03 -0800 (PST) Message-Id: <199612270044.QAA28028@hydrogen.nike.efn.org> Date: Thu, 26 Dec 1996 16:44:03 -0800 (PST) From: John-Mark Gurney Reply-To: gurney_j@efn.org To: FreeBSD-gnats@freefall.FreeBSD.org X-Send-Pr-Version: 3.2 Subject: bin/2303: cdcontrol can read to many toc entries if track numbers are large Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 2303 >Category: bin >Synopsis: cdcontrol can read to many toc entries if track numbers are large >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 27 14:40:00 PST 1996 >Last-Modified: >Originator: John-Mark Gurney >Organization: Cu Networking >Release: FreeBSD 2.2-960801-SNAP i386 >Environment: pretty much and version of cdcontrol... plus a cd such as Nine Inch Nail's Broken cd which has track numbers 1 to 153 (yes that is 153)... >Description: basicly it blindly uses the stant and ending track numbers to see how many toc entries exist... but from the looks of it (I'm not completely sure on this) there can only be a total of 100, no more... if you try to read more it returns an error... basicly meaning any cd that has more than 99 (plus the last whole cd track number 170) it makes the cd unplayable.... at first I though it was because the buffer (hard coded to 100) wasn't big enough.. but then I added code to dynamicly allocate it but it didn't fix the problem... if you would like example toc_header output of a failed case I can send the info to you... >How-To-Repeat: put a cd that has more than 99 playable tracks in the cd drive and use cdcontrol to get info on it... or play it... it fails... >Fix: apply this fix... it basicly checks to see if there are more than 99 tracks reported.. and if so, reduct the number of tracks down to 99... open_cd already does the checking for a valid fd, and returns appropriately... the check before open_cd is called isn't needed... also move all the open_cd calls into one place... to reduce code duplication... the last two hunks are the one that fixes the above bug... the rest are consolidating the open_cd code... Index: cdcontrol.c =================================================================== RCS file: /usr/cvs/src/usr.sbin/cdcontrol/cdcontrol.c,v retrieving revision 1.13 diff -c -r1.13 cdcontrol.c *** cdcontrol.c 1996/06/25 21:01:27 1.13 --- cdcontrol.c 1996/12/27 00:39:02 *************** *** 246,282 **** switch (cmd) { case CMD_QUIT: exit (0); case CMD_INFO: - if (fd < 0 && ! open_cd ()) - return (0); - return info (arg); case CMD_STATUS: - if (fd < 0 && ! open_cd ()) - return (0); - return pstatus (arg); case CMD_PAUSE: - if (fd < 0 && ! open_cd ()) - return (0); - return ioctl (fd, CDIOCPAUSE); case CMD_RESUME: - if (fd < 0 && ! open_cd ()) - return (0); - return ioctl (fd, CDIOCRESUME); case CMD_STOP: - if (fd < 0 && ! open_cd ()) - return (0); - rc = ioctl (fd, CDIOCSTOP); (void) ioctl (fd, CDIOCALLOW); --- 246,287 ---- switch (cmd) { + /* the following commands need the cd open, so open it, or at + least try */ + case CMD_VOLUME: + case CMD_PLAY: + case CMD_CLOSE: + case CMD_EJECT: + case CMD_DEBUG: + case CMD_RESET: + case CMD_STOP: + case CMD_RESUME: + case CMD_PAUSE: + case CMD_STATUS: + case CMD_INFO: + if (! open_cd ()) + return (0); + break; + } + + switch (cmd) { + case CMD_QUIT: exit (0); case CMD_INFO: return info (arg); case CMD_STATUS: return pstatus (arg); case CMD_PAUSE: return ioctl (fd, CDIOCPAUSE); case CMD_RESUME: return ioctl (fd, CDIOCRESUME); case CMD_STOP: rc = ioctl (fd, CDIOCSTOP); (void) ioctl (fd, CDIOCALLOW); *************** *** 284,292 **** return (rc); case CMD_RESET: - if (fd < 0 && ! open_cd ()) - return (0); - rc = ioctl (fd, CDIOCRESET); if (rc < 0) return rc; --- 289,294 ---- *************** *** 295,303 **** return (0); case CMD_DEBUG: - if (fd < 0 && ! open_cd ()) - return (0); - if (! strcasecmp (arg, "on")) return ioctl (fd, CDIOCSETDEBUG); --- 297,302 ---- *************** *** 309,317 **** return (0); case CMD_EJECT: - if (fd < 0 && ! open_cd ()) - return (0); - (void) ioctl (fd, CDIOCALLOW); rc = ioctl (fd, CDIOCEJECT); if (rc < 0) --- 308,313 ---- *************** *** 319,327 **** return (0); case CMD_CLOSE: - if (fd < 0 && ! open_cd ()) - return (0); - (void) ioctl (fd, CDIOCALLOW); rc = ioctl (fd, CDIOCCLOSE); if (rc < 0) --- 315,320 ---- *************** *** 331,339 **** return (0); case CMD_PLAY: - if (fd < 0 && ! open_cd ()) - return (0); - while (isspace (*arg)) arg++; --- 324,329 ---- *************** *** 349,357 **** return (0); case CMD_VOLUME: - if (fd < 0 && !open_cd ()) - return (0); - if (! strncasecmp (arg, "left", strlen(arg))) return ioctl (fd, CDIOCSETLEFT); --- 339,344 ---- *************** *** 393,398 **** --- 380,387 ---- return (rc); n = h.ending_track - h.starting_track + 1; + if(n>99) + n=99; rc = read_toc_entrys ((n + 1) * sizeof (struct cd_toc_entry)); if (rc < 0) *************** *** 742,747 **** --- 731,738 ---- } n = h.ending_track - h.starting_track + 1; + if(n>99) + n=99; rc = read_toc_entrys ((n + 1) * sizeof (struct cd_toc_entry)); if (rc < 0) return (rc); >Audit-Trail: >Unformatted: John-Mark Gurney From owner-freebsd-bugs Fri Dec 27 14:45:16 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA12128 for bugs-outgoing; Fri, 27 Dec 1996 14:45:16 -0800 (PST) Received: (from gpalmer@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA12105; Fri, 27 Dec 1996 14:45:04 -0800 (PST) Date: Fri, 27 Dec 1996 14:45:04 -0800 (PST) From: Gary Palmer Message-Id: <199612272245.OAA12105@freefall.freebsd.org> To: gpalmer, gnats-admin, freebsd-bugs Subject: Re: misc/2300 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: include/sys/dirent.h needs to include sys/type.h Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: gpalmer Responsible-Changed-When: Fri Dec 27 14:44:53 PST 1996 Responsible-Changed-Why: Misfiled From owner-freebsd-bugs Fri Dec 27 17:30:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA21008 for bugs-outgoing; Fri, 27 Dec 1996 17:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA21002; Fri, 27 Dec 1996 17:30:02 -0800 (PST) Resent-Date: Fri, 27 Dec 1996 17:30:02 -0800 (PST) Resent-Message-Id: <199612280130.RAA21002@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, wosch@cs.tu-berlin.de Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id RAA20965 for ; Fri, 27 Dec 1996 17:29:46 -0800 (PST) Received: from campa.panke.de (anonymous214.ppp.cs.tu-berlin.de [130.149.17.214]) by mail.cs.tu-berlin.de (8.8.4/8.8.4) with SMTP id CAA05609 for ; Sat, 28 Dec 1996 02:27:32 +0100 (MET) Received: (from wosch@localhost) by campa.panke.de (8.6.12/8.6.12) id BAA00896; Sat, 28 Dec 1996 01:41:08 +0100 Message-Id: <199612280041.BAA00896@campa.panke.de> Date: Sat, 28 Dec 1996 01:41:08 +0100 From: Wolfram Schneider Reply-To: wosch@cs.tu-berlin.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2304: mkdir -p Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2304 >Category: bin >Synopsis: mkdir -p >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 27 17:30:01 PST 1996 >Last-Modified: >Originator: Wolfram Schneider >Organization: >Release: FreeBSD 2.1-STABLE i386 >Environment: >Description: `mkdir -p dir' ignores the return value for the last path component. >How-To-Repeat: $ mkdir -p /var/mkdir/dir; echo $? mkdir: /var/mkdir: Permission denied 1 ok, but: $ mkdir -p /var/mkdir; echo $? 0 should be '1' and print 'Permission denied' >Fix: The bug exists since revision 1.2 mkdir.c 1994/09/08 author: jkh >Audit-Trail: >Unformatted: From owner-freebsd-bugs Fri Dec 27 19:13:09 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id TAA24393 for bugs-outgoing; Fri, 27 Dec 1996 19:13:09 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id TAA24388 for ; Fri, 27 Dec 1996 19:13:04 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.4/8.6.9) with ESMTP id TAA02559; Fri, 27 Dec 1996 19:12:43 -0800 (PST) To: "Jukka A. Ukkonen" cc: freebsd-bugs@freefall.freebsd.org Subject: Re: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches In-reply-to: Your message of "Fri, 27 Dec 1996 14:30:02 PST." <199612272230.OAA11453@freefall.freebsd.org> Date: Fri, 27 Dec 1996 19:12:43 -0800 Message-ID: <2555.851742763@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Aargh! I did it again - sent the old shar package, I mean. > Now the attached one is the correct one. I promise. Either this got sent twice or I'm *really* confused now and will wait until we know we've gotten the definitive version from you. :-) Jordan From owner-freebsd-bugs Fri Dec 27 21:20:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA28023 for bugs-outgoing; Fri, 27 Dec 1996 21:20:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA28011; Fri, 27 Dec 1996 21:20:02 -0800 (PST) Date: Fri, 27 Dec 1996 21:20:02 -0800 (PST) Message-Id: <199612280520.VAA28011@freefall.freebsd.org> To: freebsd-bugs Cc: From: George Simunovich Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Reply-To: George Simunovich Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2270; it has been noted by GNATS. From: George Simunovich To: Bruce Evans Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/2270: Hayes ESP serial card locks system as of 12/01 ke Date: Fri, 27 Dec 1996 21:54:20 -0700 (MST) On 28-Dec-96 Bruce Evans wrote: >Look at the magic outb for the ESP case near line 902. This sets the >FIFO_RCV_RST and FIFO_XMT_RST bits in combination with the FIFO_DMA_MODE >bit. I don't know what this does (I don't have any documentation about >the ESP). The author of the ESP changes said that the DMA bit doesn't >have anything to do with DMA. Apparently the reset bits aren't for reset >either. > >Bruce I have found some ESP docs at ftp://ftp.hayes.com/esp/esi.{doc,txt}. A choice of MS-WORD or badly formatted ascii. I glanced through it and noticed a lot of programming information. George ------------------------------------ George Simunovich From owner-freebsd-bugs Sat Dec 28 04:10:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA09711 for bugs-outgoing; Sat, 28 Dec 1996 04:10:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA09702; Sat, 28 Dec 1996 04:10:02 -0800 (PST) Resent-Date: Sat, 28 Dec 1996 04:10:02 -0800 (PST) Resent-Message-Id: <199612281210.EAA09702@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, wh@helbig.informatik.ba-stuttgart.de Received: from helbig.informatik.ba-stuttgart.de (helbig.informatik.ba-stuttgart.de [141.31.166.22]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id EAA09328 for ; Sat, 28 Dec 1996 04:00:35 -0800 (PST) Received: (from root@localhost) by helbig.informatik.ba-stuttgart.de (8.8.4/8.7.3) id NAA22867; Sat, 28 Dec 1996 13:00:22 +0100 (MET) Message-Id: <199612281200.NAA22867@helbig.informatik.ba-stuttgart.de> Date: Sat, 28 Dec 1996 13:00:22 +0100 (MET) From: Wolfgang Helbig Reply-To: wh@helbig.informatik.ba-stuttgart.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/2305: system hangs with second Ide controller Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2305 >Category: kern >Synopsis: system hangs with second Ide controller >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 28 04:10:01 PST 1996 >Last-Modified: >Originator: Wolfgang Helbig >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: Processor: i486DX2 Motherboard: UM8810P AIO Chipsets: UMC UM8881 (Host Bridge) UMC UM8886 (ISA Brigde Controller) CMD PCIO640B (PCI Bus IDE Controller) BIOS: Phoenix - BIOS Disks: Conner Peripherals 850 MB CFS850A Seagate 1275 MB ST31276A CD-ROM: Mitsumi ATAPI FX400 Software: Generic Kernel FreeBSD 2.1.5 Generic Kernel FreeBSD 2.2 Alpha Kernel FreeBSD - current (22. Dec ) >Description: Whenever wdc1 and wdc0 are used concurrently (copying one file from a disk connected to wdc1 to a disk connected to wdc0) the system hangs after about 2 seconds. >How-To-Repeat: Attach one disk as master to wdc0 the other as master to wdc1 and copy a big file from one disk to the other. OR: Attach one disk as master to wdc2, the other as master to wdc0 and the CD-ROM as slave to wdc0. Try to install from CD-ROM to the disk on wdc2. (FreeBSD 2.1.5-boot.flp) Everything works fine till the binaries are installed. The system hangs. >Fix: Attach both disks to wdc0 and forget the CD-ROM. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Dec 28 05:31:37 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA12091 for bugs-outgoing; Sat, 28 Dec 1996 05:31:37 -0800 (PST) Received: (from wosch@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA11761; Sat, 28 Dec 1996 05:30:16 -0800 (PST) Date: Sat, 28 Dec 1996 05:30:16 -0800 (PST) From: Wolfram Schneider Message-Id: <199612281330.FAA11761@freefall.freebsd.org> To: jkh@time.cdrom.com, wosch, freebsd-bugs Subject: Re: bin/1778 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: locate.updatedb uses /tmp directory. State-Changed-From-To: open-closed State-Changed-By: wosch State-Changed-When: Sat Dec 28 05:29:41 PST 1996 State-Changed-Why: set TMPDIR in /etc/locate.rc to a disk with more free space if the default /tmp is to small. From owner-freebsd-bugs Sat Dec 28 06:21:25 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA13209 for bugs-outgoing; Sat, 28 Dec 1996 06:21:25 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id GAA13202 for ; Sat, 28 Dec 1996 06:21:17 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id BAA20220; Sun, 29 Dec 1996 01:17:04 +1100 Date: Sun, 29 Dec 1996 01:17:04 +1100 From: Bruce Evans Message-Id: <199612281417.BAA20220@godzilla.zeta.org.au> To: bugs@freebsd.org Subject: another POSIX access timestamp pessimization Cc: bde@zeta.org.au Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk POSIX says that "Upon successful completion, the exec functions shall mark for update the st_atime field of the file". Not content with this pessimization, it also specifies that exec shall be considered as doing an open() and close() where the close() occurs before the process terminates and before the next successful exec. The access time must be updated if the close() leaves the file completely closed. In FreeBSD, marking for update dirties inodes just as much as update and update is cheap, so the second pessimization doesn't make much difference. Here is a (not very good) implementation. It updates the access time immediately. This slows down execs on ufs a little (caching works) and slows down execs on an nfs file system a lot (about 1 msec per exec for a 10Mbps ethernet). It's remarkably inconvenient to get at the update flags and/or the access times from the vfs level. I used VFS_SETATTR() and added a flag to tell it what to do. There was a bug in handling the existing flag VA_UTIMES_NULL - suser() was sometimes called although no superuser privilege was used. Bruce diff -c2 src/sys/sys/vnode.h~ src/sys/sys/vnode.h *** src/sys/sys/vnode.h~ Fri Oct 18 07:07:42 1996 --- src/sys/sys/vnode.h Wed Dec 11 18:34:10 1996 *************** *** 156,159 **** --- 156,160 ---- */ #define VA_UTIMES_NULL 0x01 /* utimes argument was NULL */ + #define VA_EXECVE_ATIME 0x02 /* setting atime for execve */ /* diff -c2 src/sys/kern/kern_exec.c~ src/sys/kern/kern_exec.c *** src/sys/kern/kern_exec.c~ Sun Nov 10 05:00:02 1996 --- src/sys/kern/kern_exec.c Wed Dec 11 19:12:39 1996 *************** *** 323,326 **** --- 323,341 ---- (vm_offset_t)imgp->image_header + PAGE_SIZE)) panic("execve: header dealloc failed (2)"); + + if (!(ndp->ni_vp->v_mount->mnt_flag & MNT_NOATIME)) { + struct timeval tv; + struct vattr vattr; + + VATTR_NULL(&vattr); + microtime(&tv); + TIMEVAL_TO_TIMESPEC(&tv, &vattr.va_atime); + vattr.va_vaflags |= VA_EXECVE_ATIME; + LEASE_CHECK(ndp->ni_vp, p, p->p_ucred, LEASE_WRITE); + VOP_LOCK(ndp->ni_vp); + (void) VOP_SETATTR(ndp->ni_vp, &vattr, p->p_ucred, p); + VOP_UNLOCK(ndp->ni_vp); + } + vrele(ndp->ni_vp); FREE(ndp->ni_cnd.cn_pnbuf, M_NAMEI); diff -c2 src/sys/ufs/ufs/ufs_vnops.c~ src/sys/ufs/ufs/ufs_vnops.c *** src/sys/ufs/ufs/ufs_vnops.c~ Tue Nov 5 21:05:36 1996 --- src/sys/ufs/ufs/ufs_vnops.c Wed Dec 11 19:11:37 1996 *************** *** 422,438 **** return (EROFS); if (cred->cr_uid != ip->i_uid && ! (error = suser(cred, &p->p_acflag)) && ! ((vap->va_vaflags & VA_UTIMES_NULL) == 0 || ! (error = VOP_ACCESS(vp, VWRITE, cred, p)))) ! return (error); if (vap->va_atime.tv_sec != VNOVAL) ip->i_flag |= IN_ACCESS; if (vap->va_mtime.tv_sec != VNOVAL) ip->i_flag |= IN_CHANGE | IN_UPDATE; atimeval.tv_sec = vap->va_atime.tv_sec; atimeval.tv_usec = vap->va_atime.tv_nsec / 1000; mtimeval.tv_sec = vap->va_mtime.tv_sec; mtimeval.tv_usec = vap->va_mtime.tv_nsec / 1000; ! error = VOP_UPDATE(vp, &atimeval, &mtimeval, 1); if (error) return (error); --- 417,438 ---- return (EROFS); if (cred->cr_uid != ip->i_uid && ! !(vap->va_vaflags & VA_EXECVE_ATIME)) { ! if (vap->va_vaflags & VA_UTIMES_NULL) ! error = VOP_ACCESS(vp, VWRITE, cred, p); ! else ! error = suser(cred, &p->p_acflag); ! if (error != 0) ! return (error); ! } if (vap->va_atime.tv_sec != VNOVAL) ip->i_flag |= IN_ACCESS; if (vap->va_mtime.tv_sec != VNOVAL) ip->i_flag |= IN_CHANGE | IN_UPDATE; atimeval.tv_sec = vap->va_atime.tv_sec; atimeval.tv_usec = vap->va_atime.tv_nsec / 1000; mtimeval.tv_sec = vap->va_mtime.tv_sec; mtimeval.tv_usec = vap->va_mtime.tv_nsec / 1000; ! error = VOP_UPDATE(vp, &atimeval, &mtimeval, + vap->va_vaflags & VA_EXECVE_ATIME ? 0 : 1); if (error) return (error); From owner-freebsd-bugs Sat Dec 28 07:00:22 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA14314 for bugs-outgoing; Sat, 28 Dec 1996 07:00:22 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id HAA14309 for ; Sat, 28 Dec 1996 07:00:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id HAA01066; Sat, 28 Dec 1996 07:00:15 -0800 (PST) Message-Id: <199612281500.HAA01066@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Bruce Evans cc: bugs@freebsd.org Subject: Re: another POSIX access timestamp pessimization In-reply-to: Your message of "Sun, 29 Dec 1996 01:17:04 +1100." <199612281417.BAA20220@godzilla.zeta.org.au> From: David Greenman Reply-To: dg@root.com Date: Sat, 28 Dec 1996 07:00:14 -0800 Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >POSIX says that "Upon successful completion, the exec functions shall >mark for update the st_atime field of the file". Not content with In my opinion, "tough". This is one part of POSIX that I'm not interested in being compatible with since the cost is too great. It may not be much of an issue at exec time, but the disk I/O caused by the update of the access time that occurs later is extremely expensive. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project From owner-freebsd-bugs Sat Dec 28 07:20:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA14778 for bugs-outgoing; Sat, 28 Dec 1996 07:20:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA14772; Sat, 28 Dec 1996 07:20:02 -0800 (PST) Resent-Date: Sat, 28 Dec 1996 07:20:02 -0800 (PST) Resent-Message-Id: <199612281520.HAA14772@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, roberto@keltia.freenix.fr Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.fr [193.56.58.253]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id HAA14689 for ; Sat, 28 Dec 1996 07:14:40 -0800 (PST) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id QAA05507 for ; Sat, 28 Dec 1996 16:14:35 +0100 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id QAA16464 for FreeBSD-gnats-submit@freebsd.org; Sat, 28 Dec 1996 16:14:26 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.4/keltia-uucp-2.9) id QAA02929; Sat, 28 Dec 1996 16:04:56 +0100 (CET) Message-Id: <199612281504.QAA02929@keltia.freenix.fr> Date: Sat, 28 Dec 1996 16:04:56 +0100 (CET) From: Ollivier Robert Reply-To: roberto@keltia.freenix.fr To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2307: watch(8) is broken in CURRENT WRT output & signals Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2307 >Category: bin >Synopsis: Signals are ignored (esp. ^Q) and output is mangled >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 28 07:20:01 PST 1996 >Last-Modified: >Originator: Ollivier Robert >Organization: Usenet Canal Historique >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD keltia.freenix.fr 3.0-CURRENT FreeBSD 3.0-CURRENT #33: Sat Dec 21 12:57:17 CET 1996 roberto@keltia.freenix.fr:/src/src/sys/compile/DKELTIA i386 CURRENT from cvs-cur #2837 made 1996/12/21 09:16:07 >Description: When using watch(8) on a tty, be it "d0" or a pseudo-tty like "p7", the output is mangled as if only CR were sent and not LF. This gives a screen like the following: 206 [15:56] roberto@keltia:~/Mail/freebsd> ll total 7266 -rw------- 1 roberto staff 149021 Dec 26 06:31 announce -rw------- 1 roberto staff 588223 Dec 28 15:51 bugs -rw------- 1 roberto staff 531483 Dec 28 04:03 chat -rw------- 1 roberto staff 1090184 Dec 28 15:51 current -rw------- 1 roberto staff 178920 Dec 28 15:51 cvs -rw------- 1 roberto staff 457344 Dec 28 04:02 doc -rw------- 1 roberto staff 2262897 Dec 28 15:51 hackers -rw------- 1 roberto staff 242647 Dec 28 15:51 hardware -rw------- 1 roberto staff 45468 Dec 23 20:33 hubs -rw------- 1 roberto staff 65336 Dec 22 18:32 mobile drwxr-xr-x 2 roberto staff 512 Oct 19 18:51 old/ -rw------- 1 roberto staff 77571 Dec 3 21:37 platform Also, the only way to get out is to kill watch from another pty because ^Q doesn't seem to do anything. >How-To-Repeat: Use watch on a terminal. >Fix: Unknown. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Dec 28 07:21:42 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA14832 for bugs-outgoing; Sat, 28 Dec 1996 07:21:42 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id HAA14826 for ; Sat, 28 Dec 1996 07:21:39 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id QAA20048; Sat, 28 Dec 1996 16:21:34 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id QAA03415; Sat, 28 Dec 1996 16:21:22 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id PAA12076; Sat, 28 Dec 1996 15:48:28 +0100 (MET) From: J Wunsch Message-Id: <199612281448.PAA12076@uriah.heep.sax.de> Subject: Re: kern/2273: POSIX.4 / POSIX.1a style sched_*() API and RTFIFO-scheduler patches To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Sat, 28 Dec 1996 15:48:28 +0100 (MET) Cc: jau@jau.tmt.tele.fi, freebsd-bugs@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <2555.851742763@time.cdrom.com> from "Jordan K. Hubbard" at "Dec 27, 96 07:12:43 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Jordan K. Hubbard wrote: > > Aargh! I did it again - sent the old shar package, I mean. > > Now the attached one is the correct one. I promise. > > Either this got sent twice or I'm *really* confused now and will wait > until we know we've gotten the definitive version from you. :-) You've seen it twice since it has only been sent to `bugs' in the first place, and i bounced it back to `freebsd-gnats-submit', so it would be recorded in the PR. The correct one should now be that in the audit-trail (i.e. the one indented by two spaces). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Sat Dec 28 07:48:10 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA15595 for bugs-outgoing; Sat, 28 Dec 1996 07:48:10 -0800 (PST) Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id HAA15588 for ; Sat, 28 Dec 1996 07:48:08 -0800 (PST) Received: from critter.dk.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0ve0z2-0003wNC; Sat, 28 Dec 96 07:47 PST Received: from critter.dk.tfs.com (localhost.dk.tfs.com [127.0.0.1]) by critter.dk.tfs.com (8.8.2/8.8.2) with ESMTP id QAA03568; Sat, 28 Dec 1996 16:50:45 +0100 (MET) To: dg@root.com cc: Bruce Evans , bugs@freebsd.org Subject: Re: another POSIX access timestamp pessimization In-reply-to: Your message of "Sat, 28 Dec 1996 07:00:14 PST." <199612281500.HAA01066@root.com> Date: Sat, 28 Dec 1996 16:50:44 +0100 Message-ID: <3566.851788244@critter.dk.tfs.com> From: Poul-Henning Kamp Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199612281500.HAA01066@root.com>, David Greenman writes: >>POSIX says that "Upon successful completion, the exec functions shall >>mark for update the st_atime field of the file". Not content with > > In my opinion, "tough". This is one part of POSIX that I'm not interested >in being compatible with since the cost is too great. It may not be much of >an issue at exec time, but the disk I/O caused by the update of the access >time that occurs later is extremely expensive. > >-DG mount option ? -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@tfs.com TRW Financial Systems, Inc. Power and ignorance is a disgusting cocktail. From owner-freebsd-bugs Sat Dec 28 08:01:06 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA15955 for bugs-outgoing; Sat, 28 Dec 1996 08:01:06 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id IAA15950 for ; Sat, 28 Dec 1996 08:01:02 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id CAA22346; Sun, 29 Dec 1996 02:57:12 +1100 Date: Sun, 29 Dec 1996 02:57:12 +1100 From: Bruce Evans Message-Id: <199612281557.CAA22346@godzilla.zeta.org.au> To: bde@zeta.org.au, dg@root.com Subject: Re: another POSIX access timestamp pessimization Cc: bugs@freebsd.org Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>POSIX says that "Upon successful completion, the exec functions shall >>mark for update the st_atime field of the file". Not content with > > In my opinion, "tough". This is one part of POSIX that I'm not interested >in being compatible with since the cost is too great. It may not be much of >an issue at exec time, but the disk I/O caused by the update of the access >time that occurs later is extremely expensive. This problem affects many things other than the access times for exec'ed binaries, even for exec itself for shared libraries. E.g., execing /usr/bin/du accesses the following files: ld.so (crt0 begins by reading 0x20 bytes from this, so its access time gets set. After that it is only accessed via mmap(), which I think doesn't set the access time, but probably should (at fault time)) ld.so.hints (ld.so begins by reading 0x20 bytes from this) libc.so.3.0 (ld.so begins by reading 0x20 bytes from this) crt0 and ld.so read the a.out header for some reason before mmapping the whole file. Of course, the problem is not so large because there are only a few library files so caching works. I forgot to say that the access time already gets set when scripts are execed, since something has to read the script. Access times are set on exec in Linux-2.0.27. Bruce From owner-freebsd-bugs Sat Dec 28 08:52:46 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA17196 for bugs-outgoing; Sat, 28 Dec 1996 08:52:46 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id IAA17190 for ; Sat, 28 Dec 1996 08:52:43 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id RAA00120; Sat, 28 Dec 1996 17:52:38 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id RAA04590; Sat, 28 Dec 1996 17:52:12 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id RAA13047; Sat, 28 Dec 1996 17:28:33 +0100 (MET) From: J Wunsch Message-Id: <199612281628.RAA13047@uriah.heep.sax.de> Subject: Re: bin/2303: cdcontrol can read to many toc entries if track numbers are large To: gurney_j@efn.org Date: Sat, 28 Dec 1996 17:28:33 +0100 (MET) Cc: freebsd-bugs@FreeBSD.org (FreeBSD bugs list) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199612270044.QAA28028@hydrogen.nike.efn.org> from John-Mark Gurney at "Dec 26, 96 04:44:03 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As John-Mark Gurney wrote: > plus a cd such as Nine Inch Nail's Broken cd which has track numbers > 1 to 153 (yes that is 153)... I leave it to others to see whether your patch is ok or not. However, this CD does IMHO violate the specs. There must be no more than 99 tracks on a CD. So better complain at their producer. :-) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Sat Dec 28 09:30:23 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA18123 for bugs-outgoing; Sat, 28 Dec 1996 09:30:23 -0800 (PST) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA18117 for ; Sat, 28 Dec 1996 09:30:21 -0800 (PST) Received: (from root@localhost) by dyson.iquest.net (8.8.4/8.6.9) id MAA01161; Sat, 28 Dec 1996 12:30:05 -0500 (EST) From: "John S. Dyson" Message-Id: <199612281730.MAA01161@dyson.iquest.net> Subject: Re: another POSIX access timestamp pessimization To: bde@zeta.org.au (Bruce Evans) Date: Sat, 28 Dec 1996 12:30:05 -0500 (EST) Cc: bde@zeta.org.au, dg@root.com, bugs@freebsd.org In-Reply-To: <199612281557.CAA22346@godzilla.zeta.org.au> from "Bruce Evans" at Dec 29, 96 02:57:12 am Reply-To: dyson@freebsd.org X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > crt0 and ld.so read the a.out header for some reason before mmapping the > whole file. Of course, the problem is not so large because there are > only a few library files so caching works. > > I forgot to say that the access time already gets set when scripts are > execed, since something has to read the script. > > Access times are set on exec in Linux-2.0.27. > Yeah, and the guys on the Linux team don't like the overhead either. Maybe we could make a "strict posix" mount option. Default to something sane, and if someone really needs slow operation, then they can have it :-). John From owner-freebsd-bugs Sat Dec 28 10:22:09 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA20091 for bugs-outgoing; Sat, 28 Dec 1996 10:22:09 -0800 (PST) Received: (from jkh@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA20072; Sat, 28 Dec 1996 10:22:06 -0800 (PST) Date: Sat, 28 Dec 1996 10:22:06 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199612281822.KAA20072@freefall.freebsd.org> To: jkh, freebsd-bugs, jkh Subject: Re: bin/2307 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Signals are ignored (esp. ^Q) and output is mangled Responsible-Changed-From-To: freebsd-bugs->jkh Responsible-Changed-By: jkh Responsible-Changed-When: Sat Dec 28 10:21:48 PST 1996 Responsible-Changed-Why: My bug - I probably broke it in the first place. :) From owner-freebsd-bugs Sat Dec 28 11:50:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA22557 for bugs-outgoing; Sat, 28 Dec 1996 11:50:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA22551; Sat, 28 Dec 1996 11:50:01 -0800 (PST) Resent-Date: Sat, 28 Dec 1996 11:50:01 -0800 (PST) Resent-Message-Id: <199612281950.LAA22551@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, markd@Grizzly.COM Received: from scruz.net (nic.scruz.net [165.227.1.2]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA22474 for ; Sat, 28 Dec 1996 11:47:21 -0800 (PST) Received: from osprey.grizzly.com by scruz.net (8.7.3/1.34) id LAA16854; Sat, 28 Dec 1996 11:47:18 -0800 (PST) Received: (from markd@localhost) by osprey.grizzly.com (8.7.6/8.7.3) id LAA00422; Sat, 28 Dec 1996 11:48:04 -0800 (PST) Message-Id: <199612281948.LAA00422@osprey.grizzly.com> Date: Sat, 28 Dec 1996 11:48:04 -0800 (PST) From: Mark Diekhans Reply-To: markd@Grizzly.COM To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/2308: src/release/sysinstall includes .o files Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2308 >Category: misc >Synopsis: src/release/sysinstall includes .o files >Confidential: yes >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 28 11:50:01 PST 1996 >Last-Modified: >Originator: Mark Diekhans >Organization: no >Release: FreeBSD 2.2-BETA i386 >Environment: >Description: src/release/sysinstall includes .o files, it kind of makes the release files bigger than necessary. >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Dec 28 13:20:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA25286 for bugs-outgoing; Sat, 28 Dec 1996 13:20:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA25274; Sat, 28 Dec 1996 13:20:02 -0800 (PST) Resent-Date: Sat, 28 Dec 1996 13:20:02 -0800 (PST) Resent-Message-Id: <199612282120.NAA25274@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jb@cimlogic.com.au Received: from mira.net.au (eplet.mira.net.au [203.9.190.17]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id NAA25142 for ; Sat, 28 Dec 1996 13:15:08 -0800 (PST) Received: (qmail 3350 invoked from network); 28 Dec 1996 21:15:05 -0000 Received: from melb.werple.net.au (203.9.190.18) by eplet.mira.net.au with SMTP; 28 Dec 1996 21:15:05 -0000 Received: (from uucp@localhost) by melb.werple.net.au (8.7.6/8.7.3/2) with UUCP id IAA26609 for FreeBSD-gnats-submit@freebsd.org; Sun, 29 Dec 1996 08:12:07 +1100 (EST) Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.7.5/8.7.3) id IAA14097; Sun, 29 Dec 1996 08:14:52 +1100 (EST) Message-Id: <199612282114.IAA14097@freebsd1.cimlogic.com.au> Date: Sun, 29 Dec 1996 08:14:52 +1100 (EST) From: John Birrell Reply-To: jb@cimlogic.com.au To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/2309: Thread safe fixes to malloc, localtime, libc_r Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2309 >Category: misc >Synopsis: Thread safe fixes to malloc, localtime, libc_r >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 28 13:20:01 PST 1996 >Last-Modified: >Originator: John Birrell >Organization: CIMlogic Pty Ltd >Release: FreeBSD 3.0-current (961227) >Environment: >Description: 1. Thread unlocking macro in malloc is broken. 2. pthread_getspecific call in localtime treats NULL as an error. 3. 'tags' has never worked in libc_r/Makefile 4. Thread auto init routine not being linked if static. 5. libc_r makefiles out of sync with libc. >How-To-Repeat: Try to build libc_r. >Fix: Apply the following patch: diff -rc /freebsd1/u/freebsd/src/lib/libc/stdlib/malloc.c /u/freebsd/src/lib/libc/stdlib/malloc.c *** /freebsd1/u/freebsd/src/lib/libc/stdlib/malloc.c Wed Oct 30 07:35:39 1996 --- /u/freebsd/src/lib/libc/stdlib/malloc.c Thu Dec 26 13:59:03 1996 *************** *** 1085,1091 **** #include "pthread_private.h" static int malloc_lock; #define THREAD_LOCK() _thread_kern_sig_block(&malloc_lock); ! #define THREAD_UNLOCK() _thread_kern_sig_unblock(&malloc_lock); #else #define THREAD_LOCK() #define THREAD_UNLOCK() --- 1085,1091 ---- #include "pthread_private.h" static int malloc_lock; #define THREAD_LOCK() _thread_kern_sig_block(&malloc_lock); ! #define THREAD_UNLOCK() _thread_kern_sig_unblock(malloc_lock); #else #define THREAD_LOCK() #define THREAD_UNLOCK() diff -rc /freebsd1/u/freebsd/src/lib/libc/stdtime/localtime.c /u/freebsd/src/lib/libc/stdtime/localtime.c *** /freebsd1/u/freebsd/src/lib/libc/stdtime/localtime.c Mon Nov 11 21:58:37 1996 --- /u/freebsd/src/lib/libc/stdtime/localtime.c Sun Dec 29 08:02:35 1996 *************** *** 1103,1118 **** pthread_mutex_lock(&localtime_mutex); if (localtime_key < 0) { if (pthread_key_create(&localtime_key, free) < 0) { ! pthread_mutex_unlock(&localtime_mutex); ! return(NULL); } } pthread_mutex_unlock(&localtime_mutex); ! if ((p_tm = pthread_getspecific(localtime_key)) != 0) { ! return(NULL); ! } else if (p_tm == NULL) { if ((p_tm = (struct tm *)malloc(sizeof(struct tm))) == NULL) { ! return(NULL); } pthread_setspecific(localtime_key, p_tm); } --- 1103,1115 ---- pthread_mutex_lock(&localtime_mutex); if (localtime_key < 0) { if (pthread_key_create(&localtime_key, free) < 0) { ! PANIC("Cannot create key for localtime"); } } pthread_mutex_unlock(&localtime_mutex); ! if ((p_tm = pthread_getspecific(localtime_key)) == NULL) { if ((p_tm = (struct tm *)malloc(sizeof(struct tm))) == NULL) { ! PANIC("Cannot malloc for localtime"); } pthread_setspecific(localtime_key, p_tm); } diff -rc /freebsd1/u/freebsd/src/lib/libc_r/Makefile /u/freebsd/src/lib/libc_r/Makefile *** /freebsd1/u/freebsd/src/lib/libc_r/Makefile Fri Aug 30 11:43:15 1996 --- /u/freebsd/src/lib/libc_r/Makefile Sun Dec 29 08:03:03 1996 *************** *** 11,17 **** CFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE -I${.CURDIR}/uthread AINC= -I${.CURDIR}/../libc/${MACHINE} -I${.CURDIR}/uthread - CLEANFILES+=tags PRECIOUSLIB= yes .include "${.CURDIR}/db/Makefile.inc" --- 11,16 ---- *************** *** 37,50 **** .include "${.CURDIR}/yp/Makefile.inc" .endif .include "${.CURDIR}/${MACHINE}/sys/Makefile.inc" - - beforeinstall: tags - ${INSTALL} ${COPY} -o bin -g bin -m 444 tags /var/db/libc_r.tags - - tags: ${SRCS} - ctags ${.ALLSRC:M*.c} - egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \ - sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ - >> tags; sort -o tags tags .include --- 36,40 ---- diff -rc /freebsd1/u/freebsd/src/lib/libc_r/sys/Makefile.inc /u/freebsd/src/lib/libc_r/sys/Makefile.inc *** /freebsd1/u/freebsd/src/lib/libc_r/sys/Makefile.inc Thu Aug 22 14:25:09 1996 --- /u/freebsd/src/lib/libc_r/sys/Makefile.inc Thu Dec 26 11:32:06 1996 *************** *** 27,33 **** setpgid.o setpriority.o setregid.o setreuid.o setrlimit.o \ setsid.o settimeofday.o setuid.o shmsys.o stat.o statfs.o \ swapon.o symlink.o sync.o sysarch.o umask.o unlink.o \ ! unmount.o utimes.o vadvise.o __syscall.o __sysctl.o # Syscalls renamed as _thread_sys_{syscall}. THREADASM= accept.o bind.o close.o connect.o dup.o dup2.o \ --- 27,33 ---- setpgid.o setpriority.o setregid.o setreuid.o setrlimit.o \ setsid.o settimeofday.o setuid.o shmsys.o stat.o statfs.o \ swapon.o symlink.o sync.o sysarch.o umask.o unlink.o \ ! unmount.o utimes.o utrace.o vadvise.o __syscall.o __sysctl.o # Syscalls renamed as _thread_sys_{syscall}. THREADASM= accept.o bind.o close.o connect.o dup.o dup2.o \ diff -rc /freebsd1/u/freebsd/src/lib/libc_r/uthread/Makefile.inc /u/freebsd/src/lib/libc_r/uthread/Makefile.inc *** /freebsd1/u/freebsd/src/lib/libc_r/uthread/Makefile.inc Mon Nov 11 21:58:53 1996 --- /u/freebsd/src/lib/libc_r/uthread/Makefile.inc Thu Dec 26 12:35:29 1996 *************** *** 7,12 **** --- 7,13 ---- SRCS+= \ uthread_accept.c \ + uthread_attr_destroy.c \ uthread_attr_init.c \ uthread_attr_setcreatesuspend_np.c \ uthread_attr_setstacksize.c \ diff -rc /freebsd1/u/freebsd/src/lib/libc_r/uthread/uthread_init.c /u/freebsd/src/lib/libc_r/uthread/uthread_init.c *** /freebsd1/u/freebsd/src/lib/libc_r/uthread/uthread_init.c Tue Aug 20 18:21:23 1996 --- /u/freebsd/src/lib/libc_r/uthread/uthread_init.c Thu Dec 26 11:44:50 1996 *************** *** 44,49 **** --- 44,50 ---- #include #include #include "pthread_private.h" + extern int _thread_autoinit_dummy_decl; void _thread_init(void) *************** *** 52,57 **** --- 53,59 ---- int i; struct sigaction act; + _thread_autoinit_dummy_decl = 1; /* Check if this function has already been called: */ if (_thread_initial) { /* Only initialise the threaded application once. */ diff -rc /freebsd1/u/freebsd/src/lib/libc_r/yp/Makefile.inc /u/freebsd/src/lib/libc_r/yp/Makefile.inc *** /freebsd1/u/freebsd/src/lib/libc_r/yp/Makefile.inc Mon Jan 22 11:23:58 1996 --- /u/freebsd/src/lib/libc_r/yp/Makefile.inc Thu Dec 26 12:08:07 1996 *************** *** 4,8 **** # yp sources .PATH: ${.CURDIR}/../libc/yp ! SRCS+= xdryp.c yplib.c --- 4,17 ---- # yp sources .PATH: ${.CURDIR}/../libc/yp ! SRCS+= xdryp.c yp_xdr.c yplib.c ! CLEANFILES+= yp_xdr.c yp.h + RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/yp.x + RPCGEN= rpcgen + + yp_xdr.c: ${RPCSRC} yp.h + ${RPCGEN} -c -o ${.TARGET} ${RPCSRC} + + yp.h: ${RPCSRC} + ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Dec 28 14:58:41 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA00116 for bugs-outgoing; Sat, 28 Dec 1996 14:58:41 -0800 (PST) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA00111 for ; Sat, 28 Dec 1996 14:58:36 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hydrogen.nike.efn.org (8.8.4/8.8.4) with SMTP id OAA23464; Sat, 28 Dec 1996 14:57:00 -0800 (PST) Date: Sat, 28 Dec 1996 14:56:59 -0800 (PST) From: John-Mark Gurney X-Sender: jmg@hydrogen Reply-To: John-Mark Gurney To: Joerg Wunsch cc: FreeBSD bugs list Subject: Re: bin/2303: cdcontrol can read to many toc entries if track numbers are large In-Reply-To: <199612281628.RAA13047@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-738118234-851813819=:18733" Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-738118234-851813819=:18733 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 28 Dec 1996, J Wunsch wrote: > As John-Mark Gurney wrote: > > > plus a cd such as Nine Inch Nail's Broken cd which has track numbers > > 1 to 153 (yes that is 153)... > > I leave it to others to see whether your patch is ok or not. However, > this CD does IMHO violate the specs. There must be no more than 99 > tracks on a CD. So better complain at their producer. :-) but there aren't more than 99 tracks... there are exactly 99 toc entries... and the track numbering happens to go above 99... attached is results from "echo info | cdcontrol > brk" to give you a list of the tracks to see that there aren't more than 99... also note that if you do a "play 153" the cdrom drive understands that properly... so it's not like it's so far out that even the cdrom drive doesn't understand it... hope this helps... ttyl.. John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix) --0-738118234-851813819=:18733 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=brk Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: MSAxNTMgMg0KICAgIDEgICAwOjAyLjMyICAgMTowNC4yNSAgICAgIDMyICAg IDQ2NzUgIGF1ZGlvDQogICAgMiAgIDE6MDQuNTcgICAzOjQ4LjU1ICAgIDQ3 MDcgICAxNzAwNSAgYXVkaW8NCiAgICAzICAgNDo1MS4zNyAgIDQ6NDYuNDAg ICAyMTcxMiAgIDIxMzQwICBhdWRpbw0KICAgIDQgICA5OjM2LjAyICAgMTo1 OC4xMyAgIDQzMDUyICAgIDg3MTMgIGF1ZGlvDQogICAgNSAgMTE6MzIuMTUg ICA1OjIzLjEwICAgNTE3NjUgICAyNDA4NSAgYXVkaW8NCiAgICA2ICAxNjo1 My4yNSAgIDQ6MTAuNDUgICA3NTg1MCAgIDE4NjQ1ICBhdWRpbw0KICAgIDcg IDIxOjAxLjcwICAgMDowMy4wMCAgIDk0NDk1ICAgICAgNzUgIGF1ZGlvDQog ICAgOCAgMjE6MDIuNzAgICAwOjAzLjAwICAgOTQ1NzAgICAgICA3NSAgYXVk aW8NCiAgICA5ICAyMTowMy43MCAgIDA6MDMuMDAgICA5NDY0NSAgICAgIDc1 ICBhdWRpbw0KICAgMTYgIDIxOjA0LjcwICAgMDowMy4wMCAgIDk0NzIwICAg ICAgNzUgIGF1ZGlvDQogICAxNyAgMjE6MDUuNzAgICAwOjAzLjAwICAgOTQ3 OTUgICAgICA3NSAgYXVkaW8NCiAgIDE4ICAyMTowNi43MCAgIDA6MDMuMDAg ICA5NDg3MCAgICAgIDc1ICBhdWRpbw0KICAgMTkgIDIxOjA3LjcwICAgMDow My4wMCAgIDk0OTQ1ICAgICAgNzUgIGF1ZGlvDQogICAyMCAgMjE6MDguNzAg ICAwOjAzLjAwICAgOTUwMjAgICAgICA3NSAgYXVkaW8NCiAgIDIxICAyMTow OS43MCAgIDA6MDMuMDAgICA5NTA5NSAgICAgIDc1ICBhdWRpbw0KICAgMjIg IDIxOjEwLjcwICAgMDowMy4wMCAgIDk1MTcwICAgICAgNzUgIGF1ZGlvDQog ICAyMyAgMjE6MTEuNzAgICAwOjAzLjAwICAgOTUyNDUgICAgICA3NSAgYXVk aW8NCiAgIDI0ICAyMToxMi43MCAgIDA6MDMuMDAgICA5NTMyMCAgICAgIDc1 ICBhdWRpbw0KICAgMjUgIDIxOjEzLjcwICAgMDowMy4wMCAgIDk1Mzk1ICAg ICAgNzUgIGF1ZGlvDQogICAzMiAgMjE6MTQuNzAgICAwOjAzLjAwICAgOTU0 NzAgICAgICA3NSAgYXVkaW8NCiAgIDMzICAyMToxNS43MCAgIDA6MDMuMDAg ICA5NTU0NSAgICAgIDc1ICBhdWRpbw0KICAgMzQgIDIxOjE2LjcwICAgMDow My4wMCAgIDk1NjIwICAgICAgNzUgIGF1ZGlvDQogICAzNSAgMjE6MTcuNzAg ICAwOjAzLjAwICAgOTU2OTUgICAgICA3NSAgYXVkaW8NCiAgIDM2ICAyMTox OC43MCAgIDA6MDMuMDAgICA5NTc3MCAgICAgIDc1ICBhdWRpbw0KICAgMzcg IDIxOjE5LjcwICAgMDowMy4wMCAgIDk1ODQ1ICAgICAgNzUgIGF1ZGlvDQog ICAzOCAgMjE6MjAuNzAgICAwOjAzLjAwICAgOTU5MjAgICAgICA3NSAgYXVk aW8NCiAgIDM5ICAyMToyMS43MCAgIDA6MDMuMDAgICA5NTk5NSAgICAgIDc1 ICBhdWRpbw0KICAgNDAgIDIxOjIyLjcwICAgMDowMy4wMCAgIDk2MDcwICAg ICAgNzUgIGF1ZGlvDQogICA0MSAgMjE6MjMuNzAgICAwOjAzLjAwICAgOTYx NDUgICAgICA3NSAgYXVkaW8NCiAgIDQ4ICAyMToyNC43MCAgIDA6MDMuMDAg ICA5NjIyMCAgICAgIDc1ICBhdWRpbw0KICAgNDkgIDIxOjI1LjcwICAgMDow My4wMCAgIDk2Mjk1ICAgICAgNzUgIGF1ZGlvDQogICA1MCAgMjE6MjYuNzAg ICAwOjAzLjAwICAgOTYzNzAgICAgICA3NSAgYXVkaW8NCiAgIDUxICAyMToy Ny43MCAgIDA6MDMuMDAgICA5NjQ0NSAgICAgIDc1ICBhdWRpbw0KICAgNTIg IDIxOjI4LjcwICAgMDowMy4wMCAgIDk2NTIwICAgICAgNzUgIGF1ZGlvDQog ICA1MyAgMjE6MjkuNzAgICAwOjAzLjAwICAgOTY1OTUgICAgICA3NSAgYXVk aW8NCiAgIDU0ICAyMTozMC43MCAgIDA6MDMuMDAgICA5NjY3MCAgICAgIDc1 ICBhdWRpbw0KICAgNTUgIDIxOjMxLjcwICAgMDowMy4wMCAgIDk2NzQ1ICAg ICAgNzUgIGF1ZGlvDQogICA1NiAgMjE6MzIuNzAgICAwOjAzLjAwICAgOTY4 MjAgICAgICA3NSAgYXVkaW8NCiAgIDU3ICAyMTozMy43MCAgIDA6MDMuMDAg ICA5Njg5NSAgICAgIDc1ICBhdWRpbw0KICAgNjQgIDIxOjM0LjcwICAgMDow My4wMCAgIDk2OTcwICAgICAgNzUgIGF1ZGlvDQogICA2NSAgMjE6MzUuNzAg ICAwOjAzLjAwICAgOTcwNDUgICAgICA3NSAgYXVkaW8NCiAgIDY2ICAyMToz Ni43MCAgIDA6MDMuMDAgICA5NzEyMCAgICAgIDc1ICBhdWRpbw0KICAgNjcg IDIxOjM3LjcwICAgMDowMy4wMCAgIDk3MTk1ICAgICAgNzUgIGF1ZGlvDQog ICA2OCAgMjE6MzguNzAgICAwOjAzLjAwICAgOTcyNzAgICAgICA3NSAgYXVk aW8NCiAgIDY5ICAyMTozOS43MCAgIDA6MDMuMDAgICA5NzM0NSAgICAgIDc1 ICBhdWRpbw0KICAgNzAgIDIxOjQwLjcwICAgMDowMy4wMCAgIDk3NDIwICAg ICAgNzUgIGF1ZGlvDQogICA3MSAgMjE6NDEuNzAgICAwOjAzLjAwICAgOTc0 OTUgICAgICA3NSAgYXVkaW8NCiAgIDcyICAyMTo0Mi43MCAgIDA6MDMuMDAg ICA5NzU3MCAgICAgIDc1ICBhdWRpbw0KICAgNzMgIDIxOjQzLjcwICAgMDow My4wMCAgIDk3NjQ1ICAgICAgNzUgIGF1ZGlvDQogICA4MCAgMjE6NDQuNzAg ICAwOjAzLjAwICAgOTc3MjAgICAgICA3NSAgYXVkaW8NCiAgIDgxICAyMTo0 NS43MCAgIDA6MDMuMDAgICA5Nzc5NSAgICAgIDc1ICBhdWRpbw0KICAgODIg IDIxOjQ2LjcwICAgMDowMy4wMCAgIDk3ODcwICAgICAgNzUgIGF1ZGlvDQog ICA4MyAgMjE6NDcuNzAgICAwOjAzLjAwICAgOTc5NDUgICAgICA3NSAgYXVk aW8NCiAgIDg0ICAyMTo0OC43MCAgIDA6MDMuMDAgICA5ODAyMCAgICAgIDc1 ICBhdWRpbw0KICAgODUgIDIxOjQ5LjcwICAgMDowMy4wMCAgIDk4MDk1ICAg ICAgNzUgIGF1ZGlvDQogICA4NiAgMjE6NTAuNzAgICAwOjAzLjAwICAgOTgx NzAgICAgICA3NSAgYXVkaW8NCiAgIDg3ICAyMTo1MS43MCAgIDA6MDMuMDAg ICA5ODI0NSAgICAgIDc1ICBhdWRpbw0KICAgODggIDIxOjUyLjcwICAgMDow My4wMCAgIDk4MzIwICAgICAgNzUgIGF1ZGlvDQogICA4OSAgMjE6NTMuNzAg ICAwOjAzLjAwICAgOTgzOTUgICAgICA3NSAgYXVkaW8NCiAgIDk2ICAyMTo1 NC43MCAgIDA6MDMuMDAgICA5ODQ3MCAgICAgIDc1ICBhdWRpbw0KICAgOTcg IDIxOjU1LjcwICAgMDowMy4wMCAgIDk4NTQ1ICAgICAgNzUgIGF1ZGlvDQog ICA5OCAgMjE6NTYuNzAgICAwOjAzLjAwICAgOTg2MjAgICAgICA3NSAgYXVk aW8NCiAgIDk5ICAyMTo1Ny43MCAgIDA6MDMuMDAgICA5ODY5NSAgICAgIDc1 ICBhdWRpbw0KICAxMDAgIDIxOjU4LjcwICAgMDowMy4wMCAgIDk4NzcwICAg ICAgNzUgIGF1ZGlvDQogIDEwMSAgMjE6NTkuNzAgICAwOjAzLjAwICAgOTg4 NDUgICAgICA3NSAgYXVkaW8NCiAgMTAyICAyMjowMC43MCAgIDA6MDMuMDAg ICA5ODkyMCAgICAgIDc1ICBhdWRpbw0KICAxMDMgIDIyOjAxLjcwICAgMDow My4wMCAgIDk4OTk1ICAgICAgNzUgIGF1ZGlvDQogIDEwNCAgMjI6MDIuNzAg ICAwOjAzLjAwICAgOTkwNzAgICAgICA3NSAgYXVkaW8NCiAgMTA1ICAyMjow My43MCAgIDA6MDMuMDAgICA5OTE0NSAgICAgIDc1ICBhdWRpbw0KICAxMTIg IDIyOjA0LjcwICAgMDowMy4wMCAgIDk5MjIwICAgICAgNzUgIGF1ZGlvDQog IDExMyAgMjI6MDUuNzAgICAwOjAzLjAwICAgOTkyOTUgICAgICA3NSAgYXVk aW8NCiAgMTE0ICAyMjowNi43MCAgIDA6MDMuMDAgICA5OTM3MCAgICAgIDc1 ICBhdWRpbw0KICAxMTUgIDIyOjA3LjcwICAgMDowMy4wMCAgIDk5NDQ1ICAg ICAgNzUgIGF1ZGlvDQogIDExNiAgMjI6MDguNzAgICAwOjAzLjAwICAgOTk1 MjAgICAgICA3NSAgYXVkaW8NCiAgMTE3ICAyMjowOS43MCAgIDA6MDMuMDAg ICA5OTU5NSAgICAgIDc1ICBhdWRpbw0KICAxMTggIDIyOjEwLjcwICAgMDow My4wMCAgIDk5NjcwICAgICAgNzUgIGF1ZGlvDQogIDExOSAgMjI6MTEuNzAg ICAwOjAzLjAwICAgOTk3NDUgICAgICA3NSAgYXVkaW8NCiAgMTIwICAyMjox Mi43MCAgIDA6MDMuMDAgICA5OTgyMCAgICAgIDc1ICBhdWRpbw0KICAxMjEg IDIyOjEzLjcwICAgMDowMy4wMCAgIDk5ODk1ICAgICAgNzUgIGF1ZGlvDQog IDEyOCAgMjI6MTQuNzAgICAwOjAzLjAwICAgOTk5NzAgICAgICA3NSAgYXVk aW8NCiAgMTI5ICAyMjoxNS43MCAgIDA6MDMuMDAgIDEwMDA0NSAgICAgIDc1 ICBhdWRpbw0KICAxMzAgIDIyOjE2LjcwICAgMDowMy4wMCAgMTAwMTIwICAg ICAgNzUgIGF1ZGlvDQogIDEzMSAgMjI6MTcuNzAgICAwOjAzLjAwICAxMDAx OTUgICAgICA3NSAgYXVkaW8NCiAgMTMyICAyMjoxOC43MCAgIDA6MDMuMDAg IDEwMDI3MCAgICAgIDc1ICBhdWRpbw0KICAxMzMgIDIyOjE5LjcwICAgMDow My4wMCAgMTAwMzQ1ICAgICAgNzUgIGF1ZGlvDQogIDEzNCAgMjI6MjAuNzAg ICAwOjAzLjAwICAxMDA0MjAgICAgICA3NSAgYXVkaW8NCiAgMTM1ICAyMjoy MS43MCAgIDA6MDMuMDAgIDEwMDQ5NSAgICAgIDc1ICBhdWRpbw0KICAxMzYg IDIyOjIyLjcwICAgMDowMy4wMCAgMTAwNTcwICAgICAgNzUgIGF1ZGlvDQog IDEzNyAgMjI6MjMuNzAgICAwOjAzLjAwICAxMDA2NDUgICAgICA3NSAgYXVk aW8NCiAgMTQ0ICAyMjoyNC43MCAgIDA6MDMuMDAgIDEwMDcyMCAgICAgIDc1 ICBhdWRpbw0KICAxNDUgIDIyOjI1LjcwICAgMDowMy4wMCAgMTAwNzk1ICAg ICAgNzUgIGF1ZGlvDQogIDE0NiAgMjI6MjYuNzAgICAwOjAzLjAwICAxMDA4 NzAgICAgICA3NSAgYXVkaW8NCiAgMTQ3ICAyMjoyNy43MCAgIDA6MDMuMDAg IDEwMDk0NSAgICAgIDc1ICBhdWRpbw0KICAxNDggIDIyOjI4LjcwICAgMDow My4wMCAgMTAxMDIwICAgICAgNzUgIGF1ZGlvDQogIDE0OSAgMjI6MjkuNzAg ICAwOjAzLjAwICAxMDEwOTUgICAgICA3NSAgYXVkaW8NCiAgMTUwICAyMjoz MC43MCAgIDA6MDMuMDAgIDEwMTE3MCAgICAgIDc1ICBhdWRpbw0KICAxNTEg IDIyOjMxLjcwICAgMDowMi43MCAgMTAxMjQ1ICAgICAgNzAgIGF1ZGlvDQog IDE1MiAgMjI6MzIuNjUgICA1OjMxLjY1ICAxMDEzMTUgICAyNDc0MCAgYXVk aW8NCiAgMTUzICAyODowMi41NSAgIDU6MDguNzAgIDEyNjA1NSAgIDIzMDIw ICBhdWRpbw0KICAxNzAgIDMzOjA5LjUwICAgICAgICAgLSAgMTQ5MDc1ICAg ICAgIC0gICAgICAtDQo= --0-738118234-851813819=:18733-- From owner-freebsd-bugs Sat Dec 28 15:50:03 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA02633 for bugs-outgoing; Sat, 28 Dec 1996 15:50:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA02622; Sat, 28 Dec 1996 15:50:01 -0800 (PST) Date: Sat, 28 Dec 1996 15:50:01 -0800 (PST) Message-Id: <199612282350.PAA02622@freefall.freebsd.org> To: freebsd-bugs Cc: From: root@uhf.wireless.net Subject: Re: kern/2277: 2.2-BETA fails to boot on my laptop (me too!) Reply-To: root@uhf.wireless.net Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/2277; it has been noted by GNATS. From: root@uhf.wireless.net To: freebsd-gnats-submit@freebsd.org, brian@mpress.com Cc: Subject: Re: kern/2277: 2.2-BETA fails to boot on my laptop (me too!) Date: Sat, 28 Dec 1996 18:48:12 -0500 (EST) Same problem here on my TI Extensa 570CDT notebook. CPU: P100 Memory: 16MB Crash and burn after displaying: apm0: disabled, not probed when using 2.2-BETA boot disk or any 2.2-BETA kernel, but not with 2.1.6 kernels/boot disk. Please advice. Thanks. Bernie Doehner root@uhf.wireless.net From owner-freebsd-bugs Sat Dec 28 21:25:22 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA14537 for bugs-outgoing; Sat, 28 Dec 1996 21:25:22 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA14516; Sat, 28 Dec 1996 21:25:19 -0800 (PST) Date: Sat, 28 Dec 1996 21:25:19 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199612290525.VAA14516@freefall.freebsd.org> To: jkh, freebsd-bugs, jkh Subject: Re: misc/2308 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: src/release/sysinstall includes .o files Responsible-Changed-From-To: freebsd-bugs->jkh Responsible-Changed-By: jkh Responsible-Changed-When: Sat Dec 28 21:24:57 PST 1996 Responsible-Changed-Why: This is my problem. It will be fixed very shortly. From owner-freebsd-bugs Sat Dec 28 23:08:36 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA17345 for bugs-outgoing; Sat, 28 Dec 1996 23:08:36 -0800 (PST) Received: (from jkh@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA17323; Sat, 28 Dec 1996 23:08:30 -0800 (PST) Date: Sat, 28 Dec 1996 23:08:30 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199612290708.XAA17323@freefall.freebsd.org> To: jkh, freebsd-bugs, sos Subject: Re: kern/2150 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Machine locks when playing .au sound file using pca device Responsible-Changed-From-To: freebsd-bugs->sos Responsible-Changed-By: jkh Responsible-Changed-When: Sat Dec 28 23:08:15 PST 1996 Responsible-Changed-Why: This is Soren's department (and his driver, I believe!)