rtos/tinyara.git
7 years agoRemove unncessary header include in libc/math
jc_.kim [Tue, 20 Jun 2017 06:45:41 +0000 (15:45 +0900)]
Remove unncessary header include in libc/math

Signed-off-by: jc_.kim <jc_.kim@samsung.com>
7 years agolibc/math: Add testcases for missing math APIs[2]
Lokesh B V [Fri, 9 Jun 2017 11:00:35 +0000 (16:30 +0530)]
libc/math: Add testcases for missing math APIs[2]

This patch adds testcases for math APIs namely
'exp2', 'j0', 'j1', 'jn', 'y0', 'y1', 'yn' and 'scalbn'.

Change-Id: Ia2209b429b046566005ac5bfcc1ecff63d6628ed
Signed-off-by: jc_.kim <jc_.kim@samsung.com>
7 years agolibc/math: Add missing math APIs[2]
Lokesh B V [Fri, 9 Jun 2017 10:52:43 +0000 (16:22 +0530)]
libc/math: Add missing math APIs[2]

This patch adds missing math APIs namely
'exp2', 'j0', 'j1', 'jn', 'y0', 'y1', 'yn' and 'scalbn'.
These APIs are ported by referring latest 'musl-libc'.

Change-Id: Ie2fb625a79e5100d74a0abb62f073a78d951990f
Signed-off-by: jc_.kim <jc_.kim@samsung.com>
7 years agolibc/math: Add testcases for missing math APIs
Lokesh B V [Wed, 24 May 2017 11:17:16 +0000 (16:47 +0530)]
libc/math: Add testcases for missing math APIs

This patch adds testcases for math APIs namely 'cbrt', 'fdim', 'famx', 'fmin' and 'hypot'.
Change-Id: I4741578f9549b0b071fe4237de55072076e0a50f
Signed-off-by: jc_.kim <jc_.kim@samsung.com>
7 years agolibc/math: Add missing math APIs
Lokesh B V [Wed, 24 May 2017 11:15:38 +0000 (16:45 +0530)]
libc/math: Add missing math APIs

This patch adds missing math APIs namely 'cbrt', 'fdim', 'fmax', 'fmin' and 'hypot' to Tinyara.
These APIs are ported by referring latest 'musl-libc'.

Change-Id: I81597aa6258daacdc0cce492f2cc1a41cc2f486f
Signed-off-by: JeongchanKim <jc_.kim@samsung.com>
7 years agoMerge pull request #183 from jeongchanKim/kernel_gitignore
sunghan-chang [Tue, 13 Jun 2017 10:55:43 +0000 (19:55 +0900)]
Merge pull request #183 from jeongchanKim/kernel_gitignore

Add the file lists in .gitignore  which should be ignored for about b…

7 years agoAdd the file lists in .gitignore which should be ignored for about built-in apps
jc_.kim [Tue, 13 Jun 2017 10:30:47 +0000 (19:30 +0900)]
Add the file lists in .gitignore  which should be ignored for about built-in apps

7 years agoMerge pull request #180 from heejin-kim/nw_iotivity
lssgood [Tue, 13 Jun 2017 10:11:32 +0000 (19:11 +0900)]
Merge pull request #180 from heejin-kim/nw_iotivity

Modify a Makefile in the external folder to remove mbedtls folders.

7 years agoMerge pull request #178 from lssgood/master
sunghan-chang [Tue, 13 Jun 2017 09:04:17 +0000 (18:04 +0900)]
Merge pull request #178 from lssgood/master

Fix the file permission from 755 to 644 in iotivity apps due to the s…

7 years agoMerge pull request #179 from jeongchanKim/kernel_builtin
sunghan-chang [Tue, 13 Jun 2017 09:02:11 +0000 (18:02 +0900)]
Merge pull request #179 from jeongchanKim/kernel_builtin

Fix the compile error for built-in app

7 years agoModify a Makefile in the external folder to remove mbedtls folders.
Heejin Kim [Tue, 13 Jun 2017 08:32:31 +0000 (17:32 +0900)]
Modify a Makefile in the external folder to remove mbedtls folders.

7 years agoFix the compile error for built-in app
jc_.kim [Tue, 13 Jun 2017 08:26:59 +0000 (17:26 +0900)]
Fix the compile error for built-in app

7 years agoFix the file permission from 755 to 644 in iotivity apps due to the security issue.
Sangsoon Lim [Tue, 13 Jun 2017 08:20:18 +0000 (17:20 +0900)]
Fix the file permission from 755 to 644 in iotivity apps due to the security issue.

7 years agoMerge pull request #173 from heejin-kim/0613_nw
lssgood [Tue, 13 Jun 2017 08:06:03 +0000 (17:06 +0900)]
Merge pull request #173 from heejin-kim/0613_nw

Delete old version of IoTivity and update tinycbor for IoTivity lib

7 years agoMerge pull request #177 from jeongchanKim/kernel_builtin
sunghan-chang [Tue, 13 Jun 2017 07:58:24 +0000 (16:58 +0900)]
Merge pull request #177 from jeongchanKim/kernel_builtin

Add setting priority and stacksize for builtin app

7 years agoUpdate the README.md in apps/builtin
jc_.kim [Tue, 13 Jun 2017 07:52:00 +0000 (16:52 +0900)]
Update the README.md in apps/builtin

Developer can set the priority and stacksize for builtin-app

7 years agoAdd the setting for builtin-app detail
jc_.kim [Tue, 13 Jun 2017 07:36:28 +0000 (16:36 +0900)]
Add the setting for builtin-app detail

in builtin-app, developer can set the priority and stacksize for ASYNC Tash Task

7 years agoModify a typo : NSH -> TASH
jc_.kim [Tue, 13 Jun 2017 06:13:59 +0000 (15:13 +0900)]
Modify a typo : NSH -> TASH

7 years agoRemove unnecessary priority and stacksize setting from env for built-in task
jc_.kim [Tue, 13 Jun 2017 06:11:53 +0000 (15:11 +0900)]
Remove unnecessary priority and stacksize setting from env for built-in task

7 years agoMerge pull request #175 from jeongchanKim/kernel_tc_task
sunghan-chang [Tue, 13 Jun 2017 05:52:50 +0000 (14:52 +0900)]
Merge pull request #175 from jeongchanKim/kernel_tc_task

Modify the tc_task for vfork

7 years agoMerge pull request #170 from sunghan-chang/README
Juitem JoonWoo Kim [Tue, 13 Jun 2017 05:46:14 +0000 (14:46 +0900)]
Merge pull request #170 from sunghan-chang/README

Readme

7 years agoModify the tc_task for vfork
jc_.kim [Tue, 13 Jun 2017 05:44:13 +0000 (14:44 +0900)]
Modify the tc_task for vfork

1. modify that checking the creation more than the CONFIG_MAX_TASKS
2. Fix the immortal tc_vfork task

7 years agomodify README of apps
sunghan [Tue, 13 Jun 2017 04:36:21 +0000 (13:36 +0900)]
modify README of apps

7 years agoadd README for builtin
sunghan [Tue, 13 Jun 2017 04:02:51 +0000 (13:02 +0900)]
add README for builtin

7 years agoadd README for shell
sunghan [Fri, 9 Jun 2017 08:04:56 +0000 (17:04 +0900)]
add README for shell

7 years agoUpdate tinycbor for IoTivity libs
Heejin Kim [Tue, 13 Jun 2017 02:12:48 +0000 (11:12 +0900)]
Update tinycbor for IoTivity libs

7 years agoDelete old version of IoTivity
Heejin Kim [Tue, 13 Jun 2017 02:10:18 +0000 (11:10 +0900)]
Delete old version of IoTivity

7 years agoMerge pull request #155 from heejin-kim/nw_iotivity
sunghan-chang [Mon, 12 Jun 2017 08:22:18 +0000 (17:22 +0900)]
Merge pull request #155 from heejin-kim/nw_iotivity

Add iotivity_1.2-rel

7 years agoAdd iotivity sample app - simple server
Heejin Kim [Fri, 2 Jun 2017 09:23:20 +0000 (18:23 +0900)]
Add iotivity sample app - simple server

Signed-off-by: Heejin Kim <hj_elena.kim@samsung.com>
7 years agoMerge pull request #169 from sunghan-chang/shell
Taejun-Kwon [Fri, 9 Jun 2017 10:11:53 +0000 (19:11 +0900)]
Merge pull request #169 from sunghan-chang/shell

Shell

7 years agofix typo in shell
sunghan [Fri, 9 Jun 2017 08:24:20 +0000 (17:24 +0900)]
fix typo in shell

7 years agomodify menu name for shell
sunghan [Fri, 9 Jun 2017 08:21:12 +0000 (17:21 +0900)]
modify menu name for shell

"Enable Shell" is not appropriate title on menuconfig.
modify it to Shell

7 years agoMerge pull request #164 from sunghan-chang/master
Juitem JoonWoo Kim [Fri, 9 Jun 2017 04:31:15 +0000 (13:31 +0900)]
Merge pull request #164 from sunghan-chang/master

s5jt200: remove wrong string in error output

7 years agoMerge pull request #168 from junmin-kim/libc_spawn
sunghan-chang [Fri, 9 Jun 2017 04:11:25 +0000 (13:11 +0900)]
Merge pull request #168 from junmin-kim/libc_spawn

posix_spawnattr_init:Return EIVNAL when attr is NULL

7 years agoMerge pull request #165 from pradeepns85/modify_incorrect_description
sunghan-chang [Fri, 9 Jun 2017 03:55:09 +0000 (12:55 +0900)]
Merge pull request #165 from pradeepns85/modify_incorrect_description

sem_holder : Modify the incorrect description

7 years agoposix_spawnattr_init:Return EIVNAL when attr is NULL
junmin kim [Fri, 9 Jun 2017 02:20:18 +0000 (19:20 -0700)]
posix_spawnattr_init:Return EIVNAL when attr is NULL

If attr is invalid, posix_spawnattr_init return EINVAL

7 years agosem_holder : Modify the incorrect description
pradeep.ns [Thu, 8 Jun 2017 16:12:32 +0000 (21:42 +0530)]
sem_holder : Modify the incorrect description

Return values are NULL, however it's mentioned as OK and ERROR, Correct the same

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agos5jt200: remove wrong string in error output
Jihoon Park [Thu, 8 Jun 2017 12:15:21 +0000 (21:15 +0900)]
s5jt200: remove wrong string in error output

fix not appropriate string to s5jt200

Change-Id: Ic11084af6a1e6ca73d0d45a20b443f5dae6ba66c
Signed-off-by: Jihoon Park <jh6186.park@samsung.com>
7 years agoMerge pull request #163 from junmin-kim/kernel_tc
sunghan-chang [Thu, 8 Jun 2017 11:54:59 +0000 (20:54 +0900)]
Merge pull request #163 from junmin-kim/kernel_tc

Kernel tc

7 years agoRefactor tc_libc_mqueue
junmin kim [Thu, 8 Jun 2017 11:40:25 +0000 (04:40 -0700)]
Refactor tc_libc_mqueue

Split tc_libc_mqueue from tc_mqueue
Refactor tc to check all cases(condition and decision)

7 years agoRefactor tc_libc_signal
junmin kim [Thu, 8 Jun 2017 11:36:06 +0000 (04:36 -0700)]
Refactor tc_libc_signal

Refactor tc to check all cases(condition and decision)

7 years agoRefactor tc_libc_semaphore
junmin kim [Thu, 8 Jun 2017 11:35:44 +0000 (04:35 -0700)]
Refactor tc_libc_semaphore

Refactor tc to check all cases(condition and decision)

7 years agoRefactor tc_libc_sched
junmin kim [Thu, 8 Jun 2017 11:34:33 +0000 (04:34 -0700)]
Refactor tc_libc_sched

Refactor tc to check all cases(condition and decision)

7 years agoRefactor tc_libc_pthread
junmin kim [Thu, 8 Jun 2017 11:33:46 +0000 (04:33 -0700)]
Refactor tc_libc_pthread

Refactor tc to check all cases(condition and decision)

7 years agoRefactor tc_libc_libgen
junmin kim [Thu, 8 Jun 2017 11:33:05 +0000 (04:33 -0700)]
Refactor tc_libc_libgen

Refactor tc to check all cases(condition and decision)

7 years agoMerge pull request #161 from sunghan-chang/typo
btheosam [Thu, 8 Jun 2017 07:31:52 +0000 (16:31 +0900)]
Merge pull request #161 from sunghan-chang/typo

modify in-correct informations

7 years agoMerge pull request #156 from pradeepns85/fix_overwriting_errorno
btheosam [Thu, 8 Jun 2017 07:31:16 +0000 (16:31 +0900)]
Merge pull request #156 from pradeepns85/fix_overwriting_errorno

Fix: Avoid overwriting the first error set by sem_wait()

7 years agomodify argument name of gettimeofday
sunghan [Thu, 8 Jun 2017 04:49:06 +0000 (13:49 +0900)]
modify argument name of gettimeofday

In POSIX, tv and tz are used.

7 years agoupdate README
sunghan [Wed, 7 Jun 2017 12:12:01 +0000 (21:12 +0900)]
update README

7 years agofix typo
sunghan [Wed, 7 Jun 2017 11:41:35 +0000 (20:41 +0900)]
fix typo

7 years agoMerge pull request #157 from Samsung/fs_example
sunghan-chang [Wed, 7 Jun 2017 05:09:15 +0000 (14:09 +0900)]
Merge pull request #157 from Samsung/fs_example

Apply latest tc of fs

7 years agoApply latest tc of fs
TaeJun Kwon [Mon, 5 Jun 2017 01:59:33 +0000 (10:59 +0900)]
Apply latest tc of fs
Remove aio feature, add description of Tizen Style

7 years agoFix: Avoid overwriting the first error set by sem_wait()
pradeep.ns [Fri, 2 Jun 2017 11:43:07 +0000 (17:13 +0530)]
Fix: Avoid overwriting the first error set by sem_wait()

Some functions (sem_trywait()) inside wd_delete() may fail and set the
errorno. this would override the any errors set by previous logic.
In recursice  error scenario, catch the first error and set it as errorno

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agoMerge pull request #154 from sunghan-chang/master
btheosam [Fri, 2 Jun 2017 11:03:35 +0000 (20:03 +0900)]
Merge pull request #154 from sunghan-chang/master

fix non-compliant POSIX

7 years agoAdd iotivity_1.2-rel
Heejin Kim [Fri, 2 Jun 2017 09:20:58 +0000 (18:20 +0900)]
Add iotivity_1.2-rel

7 years agoNon-compliant gettimeofday prototype fixed.
sunghan [Fri, 2 Jun 2017 09:17:53 +0000 (18:17 +0900)]
Non-compliant gettimeofday prototype fixed.

Signed-off-by: Tomasz Wozniak <t.wozniak@samsung.com>
7 years agoProvided POSIX-mandated RAND_MAX definition.
Tomasz Wozniak [Mon, 10 Apr 2017 08:52:12 +0000 (10:52 +0200)]
Provided POSIX-mandated RAND_MAX definition.

Change-Id: I77b0250cd4277154635232cdfd0fd1ab3458ec68
Signed-off-by: Tomasz Wozniak <t.wozniak@samsung.com>
7 years agoMerge pull request #153 from pradeepns85/set_stkmon_flag
sunghan-chang [Fri, 2 Jun 2017 07:53:11 +0000 (16:53 +0900)]
Merge pull request #153 from pradeepns85/set_stkmon_flag

Set stkmon_started=FALSE in error case

7 years agoSet stkmon_started=FALSE in error case
pradeep.ns [Fri, 2 Jun 2017 07:47:11 +0000 (13:17 +0530)]
Set stkmon_started=FALSE in error case

pthread_cancel kills the thread and stkmon logging will be stopped immediately.
hence set the variable stkmon_started to FALSE so that user can re-attempt
command "stkmon" from tash

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agoMerge pull request #150 from jeongarmy/apps_sysinfo
sunghan-chang [Fri, 2 Jun 2017 07:31:17 +0000 (16:31 +0900)]
Merge pull request #150 from jeongarmy/apps_sysinfo

Add '\t' to system info message for readability

7 years agoMerge pull request #149 from jeongarmy/fs_procfs
sunghan-chang [Fri, 2 Jun 2017 07:31:00 +0000 (16:31 +0900)]
Merge pull request #149 from jeongarmy/fs_procfs

Modify values read from procfs to match output formats

7 years agoAdd \t' to system info message for readability
Ahreum Jeong [Mon, 29 May 2017 06:51:40 +0000 (15:51 +0900)]
Add \t' to system info message for readability

7 years agoModify values read from procfs to match output formats
Ahreum Jeong [Mon, 29 May 2017 06:39:52 +0000 (15:39 +0900)]
Modify values read from procfs to match output formats
Add or delete '\n' to values read from procfs

7 years agoMerge pull request #148 from junmin-kim/artik053_tc
sunghan-chang [Fri, 2 Jun 2017 06:45:27 +0000 (15:45 +0900)]
Merge pull request #148 from junmin-kim/artik053_tc

Add artik053/tc build config

7 years agoMerge pull request #147 from lssgood/master
sunghan-chang [Fri, 2 Jun 2017 06:41:38 +0000 (15:41 +0900)]
Merge pull request #147 from lssgood/master

add network cancelation point and fix timeout handle logic in sys_arch.c

7 years agoMerge branch 'master' into master
sunghan-chang [Fri, 2 Jun 2017 06:40:15 +0000 (15:40 +0900)]
Merge branch 'master' into master

7 years agoAdd artik053/tc build config
junmin kim [Fri, 2 Jun 2017 06:37:26 +0000 (23:37 -0700)]
Add artik053/tc build config

It contains kernel, network, arastorage_utc, sysio_utc, fs_sample

7 years agochange sys_arch.c file permission to 644
Sangsoon Lim [Tue, 30 May 2017 07:11:25 +0000 (16:11 +0900)]
change sys_arch.c file permission to 644

Change-Id: I296e39aa90d85843184aaa45059aa0adf64a3038

7 years agoMerge pull request #144 from dr-venkman/master
Taejun-Kwon [Fri, 2 Jun 2017 03:39:52 +0000 (12:39 +0900)]
Merge pull request #144 from dr-venkman/master

Fixed build error in DM testcase, incorrect variable naming

7 years agoMerge pull request #146 from pradeepns85/modify_comment_description
btheosam [Thu, 1 Jun 2017 06:14:31 +0000 (15:14 +0900)]
Merge pull request #146 from pradeepns85/modify_comment_description

Correct the comment description for better understanding

7 years agoMerge pull request #136 from sunghan-chang/mdnsd_error
lssgood [Thu, 1 Jun 2017 00:48:08 +0000 (09:48 +0900)]
Merge pull request #136 from sunghan-chang/mdnsd_error

fixup! netutils/mdns: add support for exposing services

7 years agoCorrect the comment description for better understanding
pradeep.ns [Wed, 31 May 2017 18:23:55 +0000 (23:53 +0530)]
Correct the comment description for better understanding

sem_recover() => sem_post has been changed to sem_wait
sem_tickwait() => sem_timeout() return value is also considered
sem_timedwait() => hidden call to sem_trywait() is mentioned

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agoFixed build error in DM testcase, incorrect variable naming
dr-venkman [Wed, 31 May 2017 06:36:27 +0000 (15:36 +0900)]
Fixed build error in DM testcase, incorrect variable naming

7 years agoMerge pull request #135 from sunghan-chang/artik053_download
btheosam [Wed, 31 May 2017 04:34:08 +0000 (13:34 +0900)]
Merge pull request #135 from sunghan-chang/artik053_download

support "make download ALL" for artik053 configuration sets

7 years agoMerge pull request #140 from sunghan-chang/coding_rule
btheosam [Wed, 31 May 2017 04:33:05 +0000 (13:33 +0900)]
Merge pull request #140 from sunghan-chang/coding_rule

fix violations of coding rule

7 years agoMerge pull request #132 from sunghan-chang/defconfig
btheosam [Wed, 31 May 2017 04:25:59 +0000 (13:25 +0900)]
Merge pull request #132 from sunghan-chang/defconfig

update defconfig using latest Kconfig

7 years agoMerge pull request #139 from pradeepns85/ps_command_output_alignment
sunghan-chang [Wed, 31 May 2017 03:34:54 +0000 (12:34 +0900)]
Merge pull request #139 from pradeepns85/ps_command_output_alignment

Cosmetic changes for "ps" command output

7 years agoMerge pull request #141 from jeongchanKim/kernel_pthread
sunghan-chang [Wed, 31 May 2017 03:17:11 +0000 (12:17 +0900)]
Merge pull request #141 from jeongchanKim/kernel_pthread

Fix a problem in pthread_trylock()

7 years agoModify the tc name because of the API name change(pthread_sem_take, pthread_sem_give)
jc_.kim [Wed, 31 May 2017 02:44:05 +0000 (11:44 +0900)]
Modify the tc name because of the API name change(pthread_sem_take, pthread_sem_give)

7 years agoRename pthread_takesemaphore, pthread_givesemaphore to pthread_sem_take, pthread_sem_give
jc_.kim [Wed, 31 May 2017 02:40:48 +0000 (11:40 +0900)]
Rename pthread_takesemaphore, pthread_givesemaphore to pthread_sem_take, pthread_sem_give

7 years agoFix a problem in pthread_trylock()
jc_.kim [Wed, 31 May 2017 00:34:52 +0000 (09:34 +0900)]
Fix a problem in pthread_trylock()

When CONFIG_PTHREAD_MUTEX_UNSAFE=y, the special return value
EAGAIN was not being detected due to differences in reporting of returned values.

7 years agoCosmetic changes for "ps, heapinfo and stkmon" command output
pradeep.ns [Mon, 29 May 2017 16:41:33 +0000 (22:11 +0530)]
Cosmetic changes for "ps, heapinfo and stkmon" command output

New changes can be verified using TASH
1) with CONFIG_TASK_NAME_SIZE=0
TASH>>ps

  PID | PRIO | FLAG |  TYPE   | NP |  STATUS
------|------|------|---------|----|--------
    0 |    0 | FIFO | KTHREAD |    | READY
    1 |  224 | RR   | KTHREAD |    | WAITSIG
    3 |  125 | RR   | TASK    |    | RUNNING

2) with CONFIG_TASK_NAME_SIZE=31

TASH>>ps
PID | PRIO | FLAG |  TYPE   | NP |  STATUS  | NAME
----|------|------|---------|----|----------|----------
  0 |    0 | FIFO | KTHREAD |    | READY    | Idle Task
  1 |  224 | RR   | KTHREAD |    | WAITSIG  | hpwork
  3 |  125 | RR   | TASK    |    | RUNNING  | tash

heap output can be verified as follows

TASH>>heapinfo -a
TASH>>heapinfo -f
TASH>>heapinfo -p

stack monitor output can be verified as follows
TASH>>stkmon
TASH>>Stack Monitor: Running
=============================================================================
  PID |   STATUS |     SIZE | PEAK_STACK |  PEAK_HEAP |    TIME | THREAD NAME
------|----------|----------|------------|------------|---------|------------
   44 | INACTIVE |     2028 |        556 |          0 |    4390 | waiter
   46 | INACTIVE |     2044 |        500 |          0 |    6639 | <pthread>
   45 | INACTIVE |     2044 |        500 |          0 |    6639 | <pthread>
   58 | INACTIVE |     2044 |        452 |          0 |    6795 | <pthread>
   47 | INACTIVE |     2044 |        452 |          0 |    6795 | <pthread>
------|----------|----------|------------|------------|---------|------------
    0 |   ACTIVE |     1024 |       1024 |      59504 |   20740 | Idle Task
    1 |   ACTIVE |     2028 |        156 |          0 |   20742 | hpwork
    3 |   ACTIVE |     4076 |        876 |       3584 |   20742 | tash
   71 |   ACTIVE |     1020 |        524 |          0 |   20743 | StackMonitor

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years ago[Title] Merge Posix cancellation point
chaehee.hong [Fri, 3 Feb 2017 07:28:27 +0000 (23:28 -0800)]
[Title] Merge Posix cancellation point

[Description] for network
[Module] network
[Board] ARTIK051
[Verification] na
[Reference] na
[Author] Chaehee Hong

Change-Id: Ic440908ff05fa02684ace61ee15164b508856e1b

Conflicts:
os/net/lwip/sys/arch/sys_arch.c

7 years agohave unified consistency about error code setting
Jaesik [Thu, 25 May 2017 08:26:23 +0000 (17:26 +0900)]
have unified consistency about error code setting

Tinyara uses get_errno and set_errno.
So I modified the logic consistently for the error code

Change-Id: If2864da0e5253e53ceb2d0fa7308d0168be2fce6
Signed-off-by: Jaesik <jaesick.shin@samsung.com>
7 years agoLwIP: fix timeout handle logic in sys_arch_sem_wait()
Sangsoon Lim [Fri, 26 May 2017 07:12:04 +0000 (16:12 +0900)]
LwIP: fix timeout handle logic in sys_arch_sem_wait()

Currently, sem_tickwait() sets errno to ETIMEOUT when the timeout occurs.
After the timeout of sem_tickwait(), we can get the errno by using get_errno().
This patch just adopts the previous timeout handle logic.

Change-Id: I4e9e8069a1d0f90aad6658dec59077be92977501

Conflicts:
os/net/lwip/sys/arch/sys_arch.c

7 years agoMerge pull request #133 from jeongchanKim/kernel_semaphore
sunghan-chang [Tue, 30 May 2017 04:23:02 +0000 (13:23 +0900)]
Merge pull request #133 from jeongchanKim/kernel_semaphore

Remove unnecessary code in sem_wait and sem_post

7 years agoMerge pull request #138 from pradeepns85/fix_kill_kernelthreads
sunghan-chang [Tue, 30 May 2017 04:18:25 +0000 (13:18 +0900)]
Merge pull request #138 from pradeepns85/fix_kill_kernelthreads

Fix: use task_delete() to kill kernel threads and tasks

7 years agoRemove unnecessary code in sem_wait and sem_post
jc_.kim [Mon, 29 May 2017 10:48:09 +0000 (19:48 +0900)]
Remove unnecessary code in sem_wait and sem_post

sem_wait_for_isr and sem_post_from_isr are not needed
because of using sem protocol

7 years agoMerge pull request #137 from pradeepns85/follow_codingstyle
sunghan-chang [Tue, 30 May 2017 04:10:21 +0000 (13:10 +0900)]
Merge pull request #137 from pradeepns85/follow_codingstyle

Follow coding style in task_delete.c

7 years agoMerge pull request #130 from pradeepns85/bugfix_pthread_schedsetup
sunghan-chang [Tue, 30 May 2017 04:07:07 +0000 (13:07 +0900)]
Merge pull request #130 from pradeepns85/bugfix_pthread_schedsetup

Set correct errno in task_schedsetup and pthread_schedsetup

7 years agofix violations of coding rule
sunghan [Mon, 29 May 2017 13:53:32 +0000 (22:53 +0900)]
fix violations of coding rule

no space after type casting

7 years agoFix: use task_delete() to kill kernel threads and tasks
pradeep.ns [Mon, 29 May 2017 16:18:06 +0000 (21:48 +0530)]
Fix: use task_delete() to kill kernel threads and tasks

pthread_cancel() shouldn't be used to kill kernel threads, it raises
assert if tcb type is other than TCB_FLAG_TTYPE_PTHREAD. refer line no
125 in pthread_cancel.c
task_delete() API takes care of deleting tasks and kernel threads.
refer lineno 151 in task_delete.c
we can verify it using following commands from TASH
killall -9 <kernel thread name> or
kill -9 <pid of kernel thread>

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agoFollow coding style in task_delete.c
pradeep.ns [Mon, 29 May 2017 14:48:55 +0000 (20:18 +0530)]
Follow coding style in task_delete.c

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agoupdate defconfig using latest Kconfig for artik053
sunghan [Mon, 29 May 2017 13:31:00 +0000 (22:31 +0900)]
update defconfig using latest Kconfig for artik053

7 years agofixup! netutils/mdns: add support for exposing services
sunghan [Mon, 29 May 2017 13:11:54 +0000 (22:11 +0900)]
fixup! netutils/mdns: add support for exposing services

services, member of struct mdnsd was added in CONFIG_NETUTILS_MDNS_RESPONDER_SUPPORT.
But codes calling this were added without CONFIG.
It makes compilation error like below when extra defconfig is used.
mdnsd.c:1357:30: error: 'struct mdnsd' has no member named 'services'
  struct rr_list *svc_le = svr->services;
                              ^
make[2]: *** [mdnsd.o] Error 1

7 years agosupport "make download ALL" for artik053 configuration sets
sunghan [Mon, 29 May 2017 13:05:46 +0000 (22:05 +0900)]
support "make download ALL" for artik053 configuration sets

7 years agoupdate defconfig using latest Kconfig for sidk_s5jt200
sunghan [Mon, 29 May 2017 06:25:02 +0000 (15:25 +0900)]
update defconfig using latest Kconfig for sidk_s5jt200

7 years agoMerge pull request #131 from sunghan-chang/sidk_tash_wlan_download
Taejun-Kwon [Mon, 29 May 2017 06:19:12 +0000 (15:19 +0900)]
Merge pull request #131 from sunghan-chang/sidk_tash_wlan_download

support "make download ALL" for sidk_tash_wlan configuration sets

7 years agosupport "make download ALL" for sidk_tash_wlan configuration sets
sunghan [Mon, 29 May 2017 05:58:18 +0000 (14:58 +0900)]
support "make download ALL" for sidk_tash_wlan configuration sets

7 years agoSet correct errno in task_schedsetup and pthread_schedsetup
pradeep.ns [Fri, 26 May 2017 12:48:14 +0000 (18:18 +0530)]
Set correct errno in task_schedsetup and pthread_schedsetup

Both task_schedsetup() and pthread_schedsetup() sets wrong
error number incase of failure. error no set during invalid
priority check is not considered. And proper error no was not
set if system fails to assign unique new pid to task/thread.

This patch fixes the wrong error no set and sets the correct
error no.

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>