Rafi Gordon wrote:
Hello,
Processes can change their Local Descriptor Table using
modify_ldt() system called.
see "man  modify_ldt" or :
(for x386 look at include/asm-i386/unistd.h:
#define __NR_modify_ldt         123)

However, usually there is no need to manipulate the LDT
with this system call.

I saw in wine a call to modify_ldt()  (libs/wine/ldt.c)

I was wondering in which occasions is this
system call being invoked: did anybody had encountered (or used himeslf)
a call to modify_ldt() in other apps (emulators maybe ? ).


If memory serves me right the old LinuxThreads threading library used modify_ldt on x86 to create thread local variables in the absense of TLS (The Thread Local Storage kind, not the encryption scheme) that NPTL relies on.

Gilad

--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com  | SIP: [EMAIL PROTECTED]
IL: +972.9.8650475 ext. 201  | Fax:            +972.9.8850643
US: +1.212.2026643 ext. 201  | Cel:           +972.52.8260388

"I am Jack's Overwritten Stack Pointer"
        -- Hackers Club, the movie

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to