From owner-freebsd-current@FreeBSD.ORG Sun Dec 21 12:44:53 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A82216A4CE for ; Sun, 21 Dec 2003 12:44:53 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87FD143D5C for ; Sun, 21 Dec 2003 12:44:52 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id hBLKipXi030961; Sun, 21 Dec 2003 14:44:51 -0600 (CST) (envelope-from dan) Date: Sun, 21 Dec 2003 14:44:51 -0600 From: Dan Nelson To: "Bjoern A. Zeeb" Message-ID: <20031221204450.GC74567@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: current@freebsd.org Subject: Re: where is the rotating thing /^H-^H\^H|^H/^H-... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2003 20:44:53 -0000 In the last episode (Dec 21), Bjoern A. Zeeb said: > Hi, >=20 > I am currently searching the =08 sequence (rotating thing at boot time > when loading kernel or md_images ...): >=20 > /^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H| >=20 > can anybody please tell me where the code for this is (be it C or 4th) ? It's usually implemented as something like: static unsigned c =3D 0x2d5c7c2f; printf("%c\b", c =3D c << 8 | c >> 24); Print the first byte of 'c', then rotate it 8 bits :) --=20 Dan Nelson dnelson@allantgroup.com