Message98188
In the libc case you shouldn't give absolute path in CDLL: CDLL('libc.so.6') is better. You use "/lib/libc.so.6" path, but Python (and ctypes.so) actually uses something like "/lib/tls/i686/cmov/libc.so.6" - these are two separate libraries with separate "errno" variables, mapped to different memory regions. Your call to getxattr modifies errno in the former library, but ctypes get_errno() fetches value from the latter library.
If I fix CDLL() call, the test works ok for me. |
|
Date |
User |
Action |
Args |
2010-01-23 16:59:02 | marcin.bachry | set | recipients:
+ marcin.bachry, theller, nikratio |
2010-01-23 16:59:01 | marcin.bachry | set | messageid: <1264265941.92.0.826742797011.issue7760@psf.upfronthosting.co.za> |
2010-01-23 16:59:00 | marcin.bachry | link | issue7760 messages |
2010-01-23 16:58:59 | marcin.bachry | create | |
|