getprogname: rename to px4_get_taskname

This commit is contained in:
Beat Küng
2016-06-09 15:22:29 +02:00
parent 9f5adb2356
commit fcab80bfee
5 changed files with 7 additions and 6 deletions
@@ -108,7 +108,7 @@ int px4_task_delete(int pid)
return task_delete(pid);
}
const char *getprogname(void)
const char *px4_get_taskname(void)
{
#if CONFIG_TASK_NAME_SIZE > 0
FAR struct tcb_s *thisproc = sched_self();
@@ -388,7 +388,7 @@ unsigned long px4_getpid()
return (unsigned long)pthread_self();
}
const char *getprogname()
const char *px4_get_taskname()
{
pthread_t pid = pthread_self();
const char *prog_name = "UnknownApp";
+2 -1
View File
@@ -134,7 +134,8 @@ __EXPORT bool px4_task_is_running(const char *taskname);
__EXPORT int px4_prctl(int option, const char *arg2, unsigned pid);
#endif
__EXPORT const char *getprogname(void);
/** return the name of the current task */
__EXPORT const char *px4_get_taskname(void);
__END_DECLS
@@ -348,7 +348,7 @@ unsigned long px4_getpid()
}
const char *getprogname()
const char *px4_get_taskname()
{
pthread_t pid = pthread_self();