[comp.unix.xenix] question on ldtalloc

rminnich@udel.EDU (Ron Minnich) (04/26/88)

I have a device driver that allocates ldt's. I am using ldtalloc().
This function takes two parameters: 
1) starting ldt number
2) number to allocate.
If the starting ldt number is 0, then it gives you the next free ldt.
well, ..., no matter what i hand it, e.g., i tried:

ldtalloc(0,1);
ldtalloc(0,2);
ldtalloc(0x900,2);

   it always returns 1428 ! All subsequent calls to ldtalloc return 1428,
which is wrong, wrong, wrong. This is v2.2.1 SCO xenix
   Anybody got this to work yet?
ron

-- 
ron (rminnich@udel.edu)