Выделить память для структур блокировок
#include <sys/iofunc.h>iofunc_lock_list_t * iofunc_lock_calloc( resmgr_context_t *ctp,IOFUNC_OCB_T *ocb,size_t size );
libc
The function iofunc_lock_calloc() is used by iofunc_lock() to allocate memory to lock structures.
![]() | Because the malloc() implementation uses signed, 32-bit integers to represent the size internally, you can't allocate more than 2 GB in a single allocation. If the size is greater than 2 GB, iofunc_lock_calloc() indicates an error of ENOMEM . |
A pointer to a zeroed buffer that the POSIX layer uses for locks.
Если возникла ошибка функция возвращает NULL
, код ошибки записывается в errno.
ЗОСРВ «Нейтрино»
iofunc_lock(), iofunc_lock_free(), malloc(), resmgr_context_t
Предыдущий раздел: Описание API системной библиотеки