From owner-freebsd-hackers Fri Jun 12 13:11:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA02511 for freebsd-hackers-outgoing; Fri, 12 Jun 1998 13:11:46 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ntu-kpi.kiev.ua (vovik@ntu-kpi.kiev.ua [195.178.136.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA02363 for ; Fri, 12 Jun 1998 13:11:03 -0700 (PDT) (envelope-from vovik@ntu-kpi.kiev.ua) Received: (from vovik@localhost) by ntu-kpi.kiev.ua (8.8.8/8.7.3) id XAA07718; Fri, 12 Jun 1998 23:09:32 +0300 (EEST) Message-ID: <19980612230931.49179@NTU-KPI.Kiev.UA> Date: Fri, 12 Jun 1998 23:09:31 +0300 From: "Vladimir A. Jakovenko" To: freebsd-hackers@FreeBSD.ORG Subject: getty issue file Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I found some possible "typos" in FreeBSD getty implementation, and whant ask: is it possible to fix it? Generally, I need to load russian fonts into DEC VT420/DEC VT240 terminals. After looking at gettytab(5) I found the easiest way -- use the "if" (issue file) tag, because getty cat it to terminal when terminal comming up. According to /usr/src/libexec/getty/main.c getty uses function getline() for reading an issue file. And this function allocates only 512 bytes buffer for issue file. But in our case, russian fonts need about 1727 bytes. Also I found a currios comment in function getline (line 682): /* * This is certainly slow, but it avoids having to include * stdio.h unnecessarily. Issue files should be small anyway. */ The easiest way should be add stat() call and dynamically allocate buffer, or at least increase size of default static buffer from 512 to something like 2048. But I don't know that using "if" tag is the right way to load fonts. May be for some reasons issue file must be no more then 512 bytes long? -- Regards, Vladimir. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message