key-value/kv.c
/**
 * @brief Delete the shared memory object
 * @param name Name of the shared memory object
 * @return KV_OK on success and Non KV_OK otherwise
 */
@brief Delete the shared memory object
@param name Name of the shared memory object
@return KV_OK on success and Non KV_OK otherwise
@brief Delete the shared memory object @param name Name of the shared memory object @return KV_OK on success and Non KV_OK otherwise
static int sm_close(char *name)
{
    if (!name)
        return KV_ERR_ARG;
    close(g_fd);
    int r = shm_unlink(name);
    if (r == -1)
        return KV_ERR;
    return KV_OK;
}
static int sm_close ( char * name ) { if ( ! name ) return KV_ERR_ARG ; close ( g_fd ) ; int r = shm_unlink ( name ) ; if ( r == -1 ) return KV_ERR ; return KV_OK ; }
@brief Delete the shared memory object
 @param name Name of the shared memory object
 @return KV_OK on success and Non KV_OK otherwise
@brief Delete the shared memory object @param name Name of the shared memory object @return KV_OK on success and Non KV_OK otherwise