const record argument in functions
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
I have writen an interface to the pthread_mutex_timedlock function (in libpthread.so.0, code attached). Calling it causes a general protection fault. Changing the AbsTime argument from const to var causes the problem to go away. Given that the C Header defines AbsTime as a const pointer is this a compiler problem ?
/* Wait until lock becomes available, or specified time passes. */
extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
__const struct timespec *__restrict
__abstime) __THROW;
Additional information:
Reporter: A. Pyrski
EMail: apyrski at yahoo dot com
Mantis conversion info:
- Mantis ID: 4122
- OS: Linux
- Version: 1.0.6
- Fixed in version: N/A