--- libaitsess/src/aitsess.c 2013/01/17 13:12:47 1.6.4.2 +++ libaitsess/src/aitsess.c 2013/01/17 13:26:37 1.6.4.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsess.c,v 1.6.4.2 2013/01/17 13:12:47 misho Exp $ +* $Id: aitsess.c,v 1.6.4.3 2013/01/17 13:26:37 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -83,7 +83,7 @@ sess_SetErr(int eno, char *estr, ...) /* - * sess_initSession() Initializing session structure, + * sess_initSession() - Initializing session structure, * if session file not exists creating with specified tech * * @id = Technology using in session. SHARED_IPC IPC tech or SHARED_MAP BSD MemoryMap tech @@ -212,7 +212,7 @@ sess_initSession(int id, const char *csFName, ait_sess } /* - * sess_freeSession() Free allocated memory for session item and delete session file if present name + * sess_freeSession() - Free allocated memory for session item and delete session file if present name * * @Sess = Session item * return: none @@ -238,7 +238,7 @@ sess_freeSession(ait_sess_t ** __restrict Sess) /* - * map_createSession() MMAP Created session and allocated resources + * map_createSession() - MMAP Created session and allocated resources * * @nSeed = Seed for securing key, if =-1 must add ready for use key * @nSize = Allocated shared memory size in bytes @@ -324,7 +324,7 @@ map_createSession(int nSeed, long nSize, ait_sess_t * } /* - * map_destroySession() MMAP free shared resources + * map_destroySession() - MMAP free shared resources * * @Sess = Session item * return: none @@ -364,7 +364,7 @@ map_destroySession(ait_sess_t * __restrict Sess) } /* - * ipc_createSession() IPC Created session and allocated resources + * ipc_createSession() - IPC Created session and allocated resources * * @nSeed = Seed for securing key, if =-1 must add ready for use key * @nSize = Allocated shared memory size in bytes @@ -425,7 +425,7 @@ ipc_createSession(int nSeed, long nSize, ait_sess_t * } /* - * ipc_destroySession() IPC free shared resources + * ipc_destroySession() - IPC free shared resources * * @Sess = Session item * return: none @@ -451,7 +451,7 @@ ipc_destroySession(ait_sess_t * __restrict Sess) /* - * map_attachSession() MMAP Attach to shared memory & return begin address + * map_attachSession() - MMAP Attach to shared memory & return begin address * * @s = Session item * @procMem = Custom start address (optionl) *default must be 0* @@ -476,7 +476,7 @@ map_attachSession(ait_sess_t * __restrict s, void *pro } /* - * map_detachSession() MMAP Detach from shared memory + * map_detachSession() - MMAP Detach from shared memory * * @s = Session item * return: none @@ -496,7 +496,7 @@ map_detachSession(ait_sess_t * __restrict s) } /* - * ipc_attachSession() IPC Attach to shared memory & return begin address + * ipc_attachSession() - IPC Attach to shared memory & return begin address * * @s = Session item * @procMem = Custom start address (optionl) *default must be 0* @@ -518,7 +518,7 @@ ipc_attachSession(ait_sess_t * __restrict s, void *pro } /* - * ipc_detachSession() IPC Detach from shared memory + * ipc_detachSession() - IPC Detach from shared memory * * @s = Session item * return: none @@ -536,7 +536,7 @@ ipc_detachSession(ait_sess_t * __restrict s) } /* - * sess_isAttached() Check for attached shared memory + * sess_isAttached() - Check for attached shared memory * * @s = Session item * return: -1 null session item, 0 not attached, 1 attached memory @@ -552,7 +552,7 @@ sess_isAttached(ait_sess_t * __restrict s) /* - * map_notSemaphore() MMAP negative block if semaphore isn`t signaled + * map_notSemaphore() - MMAP negative block if semaphore isn`t signaled * * @s = Session item * return: none @@ -573,7 +573,7 @@ map_notSemaphore(ait_sess_t * __restrict s) } /* - * map_isSemaphoreOK() MMAP Check semaphore + * map_isSemaphoreOK() - MMAP Check semaphore * * @s = Session item * return: -1 error: can`t return semaphore, 0 = false, 1 = true @@ -591,7 +591,7 @@ map_isSemaphoreOK(ait_sess_t * __restrict s) } /* - * map_incSemaphore() MMAP unblock semaphore, increment semaphore + * map_incSemaphore() - MMAP unblock semaphore, increment semaphore * * @s = Session item * return: 0 Ok, -1 error: can`t increment @@ -606,7 +606,7 @@ map_incSemaphore(ait_sess_t * __restrict s) } /* - * map_decSemaphore() MMAP block semaphore, decrement semaphore + * map_decSemaphore() - MMAP block semaphore, decrement semaphore * * @s = Session item * return: 0 Ok, -1 error: can`t decrement @@ -621,7 +621,7 @@ map_decSemaphore(ait_sess_t * __restrict s) } /* - * ipc_notSemaphore() IPC negative block if semaphore isn`t signaled + * ipc_notSemaphore() - IPC negative block if semaphore isn`t signaled * * @s = Session item * return: none @@ -636,7 +636,7 @@ ipc_notSemaphore(ait_sess_t * __restrict s) } /* - * ipc_isSemaphoreOK() IPC Check semaphore + * ipc_isSemaphoreOK() - IPC Check semaphore * * @s = Session item * return: -1 error: can`t return semaphore, 0 = false, 1 = true @@ -653,7 +653,7 @@ ipc_isSemaphoreOK(ait_sess_t * __restrict s) } /* - * ipc_incSemaphore() IPC unblock semaphore, increment semaphore + * ipc_incSemaphore() - IPC unblock semaphore, increment semaphore * * @s = Session item * return: 0 Ok, -1 error: can`t increment @@ -670,7 +670,7 @@ ipc_incSemaphore(ait_sess_t * __restrict s) } /* - * ipc_decSemaphore() IPC block semaphore, decrement semaphore + * ipc_decSemaphore() - IPC block semaphore, decrement semaphore * * @s = Session item * return: 0 Ok, -1 error: can`t decrement