From owner-freebsd-questions@FreeBSD.ORG Sat Oct 8 17:52:01 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8820916A41F for ; Sat, 8 Oct 2005 17:52:01 +0000 (GMT) (envelope-from tijl@ulyssis.org) Received: from outmx014.isp.belgacom.be (outmx014.isp.belgacom.be [195.238.2.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id E631E43D45 for ; Sat, 8 Oct 2005 17:51:58 +0000 (GMT) (envelope-from tijl@ulyssis.org) Received: from outmx014.isp.belgacom.be (localhost [127.0.0.1]) by outmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id j98HpujI017958 for ; Sat, 8 Oct 2005 19:51:56 +0200 (envelope-from ) Received: from kalimero.kotnet.org (97-220.245.81.adsl.skynet.be [81.245.220.97]) by outmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id j98HprxO017816 for ; Sat, 8 Oct 2005 19:51:53 +0200 (envelope-from ) Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.13.4/8.13.3) with ESMTP id j98Hpqou029934 for ; Sat, 8 Oct 2005 19:51:53 +0200 (CEST) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: freebsd-questions@freebsd.org Date: Sat, 8 Oct 2005 19:51:51 +0200 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510081951.51894.tijl@ulyssis.org> Subject: i386_set_ldt differences between 4.x and 5.x? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2005 17:52:01 -0000 i386_set_ldt(int start_sel, union descriptor *descs, int num_sels); The man page for this function in FreeBSD 5.x mentions the following: "If num_descs is 1, start_sels is valid, and descs is NULL, then i386_set_ldt() will free that descriptor (making it available to be reallocated again later)." Am I right when I say this is only because 5.x allows dynamic allocation of descriptors and that freeing a descriptor isn't necessary for pre-5.0 versions of FreeBSD (and current versions of Net/OpenBSD)?