cvs commit: src/sys/compat/linux linux_misc.c

Konstantin Belousov kib at FreeBSD.org
Sat Oct 4 19:23:40 UTC 2008


kib         2008-10-04 19:23:30 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linux     linux_misc.c 
  Log:
  SVN rev 183612 on 2008-10-04 19:23:30Z by kib
  
  Current linux_fooaffinity() emulation fails, as the FreeBSD affinity
  syscalls expect the bitmap size in the range from 32 to 128. Old glibc
  always assumed size 1024, while newer glibc searches for approriate
  size, starting from 1024 and going up.
  
  For now, use FreeBSD size of cpuset_t for bitmap size parameter and
  return EINVAL if length of user space bitmap less than our size of
  cpuset_t.
  
  Submitted by:   dchagin
  MFC after:      1 week
          [This requires MFC of the actual linux affinity syscalls]
  
  Revision  Changes    Path
  1.229     +9 -4      src/sys/compat/linux/linux_misc.c


More information about the cvs-all mailing list