From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Tue, 16 Jun 2009 07:37:52 +0200 From: cinap_lenrek@gmx.de In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] interface for per process gdt manipulation Topicbox-Message-UUID: 0b6f2014-ead5-11e9-9d60-3106f5b1d025 > i haven't looked at your code, > but a text interface is better than binary. > if you make the first field the table index number, > then you don't need to bother with seeking > to fixed offsets. design a text format that is > convenient to use instead of forcing the binary > interface on everyone. thats a good idea. i'll look into it. should the descriptor be presented in a decoded/splitted up form or just be the text representation of the numerical values? > also i wonder if this should really be in > a separate ldt instead of polluting the gdt. older versions of glibc use an ldt entry per thread but it got deprecated for tls use by set_thread_area wich works only with with gdt entries. also ldt is not supported on amd64, but gdt segments are still present and used for tls on linux. > russ -- cinap