Lines Matching refs:g_command_args
169 static struct CommandArgs_Impl g_command_args = variable
183 pthread_mutex_lock (&(g_command_args.m_mutex)); in osl_getExecutableFile()
184 OSL_ASSERT(g_command_args.m_nCount > 0); in osl_getExecutableFile()
185 if (g_command_args.m_nCount > 0) in osl_getExecutableFile()
188 rtl_uString_assign (ppustrFile, g_command_args.m_ppArgs[0]); in osl_getExecutableFile()
191 pthread_mutex_unlock (&(g_command_args.m_mutex)); in osl_getExecutableFile()
203 pthread_mutex_lock (&(g_command_args.m_mutex)); in osl_getCommandArgCount()
204 OSL_ASSERT(g_command_args.m_nCount > 0); in osl_getCommandArgCount()
205 if (g_command_args.m_nCount > 0) in osl_getCommandArgCount()
206 result = g_command_args.m_nCount - 1; in osl_getCommandArgCount()
207 pthread_mutex_unlock (&(g_command_args.m_mutex)); in osl_getCommandArgCount()
219 pthread_mutex_lock (&(g_command_args.m_mutex)); in osl_getCommandArg()
220 OSL_ASSERT(g_command_args.m_nCount > 0); in osl_getCommandArg()
221 if (g_command_args.m_nCount > (nArg + 1)) in osl_getCommandArg()
223 rtl_uString_assign (strCommandArg, g_command_args.m_ppArgs[nArg + 1]); in osl_getCommandArg()
226 pthread_mutex_unlock (&(g_command_args.m_mutex)); in osl_getCommandArg()
237 pthread_mutex_lock (&(g_command_args.m_mutex)); in osl_setCommandArgs()
238 OSL_ENSURE (g_command_args.m_nCount == 0, "osl_setCommandArgs(): CommandArgs already set."); in osl_setCommandArgs()
239 if (g_command_args.m_nCount == 0) in osl_setCommandArgs()
281 g_command_args.m_nCount = argc; in osl_setCommandArgs()
282 g_command_args.m_ppArgs = ppArgs; in osl_setCommandArgs()
285 pthread_mutex_unlock (&(g_command_args.m_mutex)); in osl_setCommandArgs()