int wait_shm_fd, ret;
mode_t mode;
- assert(shm_path);
+ LTTNG_ASSERT(shm_path);
/* Default permissions */
mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP;
* This returned value is used by futex_wait_update() in futex.c to WAKE all
* waiters which are UST application waiting for a session daemon.
*/
-LTTNG_HIDDEN
char *shm_ust_get_mmap(char *shm_path, int global)
{
size_t mmap_size;
char *wait_shm_mmap;
long sys_page_size;
- assert(shm_path);
+ LTTNG_ASSERT(shm_path);
sys_page_size = sysconf(_SC_PAGE_SIZE);
if (sys_page_size < 0) {
/*
* shm_create_anonymous is never called concurrently within a process.
*/
-LTTNG_HIDDEN
int shm_create_anonymous(const char *owner_name)
{
char tmp_name[NAME_MAX];