rtos/tinyara.git
6 years agoModify Kernel TC Kconfig to add LIBM dependency to Libc FixedMath
Lokesh B V [Wed, 2 Aug 2017 07:47:07 +0000 (13:17 +0530)]
Modify Kernel TC Kconfig to add LIBM dependency to Libc FixedMath

Adds LIBM dependency Libc FixedMath config "TC_KERNEL_LIBC_FIXEDMATH".

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoAdd New Kconfig TC_KERNEL_LIBC_FIXEDMATH in Kernel TC
Lokesh B V [Wed, 26 Jul 2017 09:32:12 +0000 (15:02 +0530)]
Add New Kconfig TC_KERNEL_LIBC_FIXEDMATH in Kernel TC

Adds new Kconfig TC_KERNEL_LIBC_FIXEDMATH in Kernel TC to enable TC for libc/fixedmath.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoUpdate defconfigs to enable TC for "FixedMath"
Lokesh B V [Wed, 26 Jul 2017 12:41:14 +0000 (18:11 +0530)]
Update defconfigs to enable TC for "FixedMath"

Updates TC "defconfig" of sidk_s5jt200 and artik053 boards with new Kconfig TC_KERNEL_LIBC_FIXEDMATH.
This new config is to enable tc for Libc FixedMath.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoAdd test cases for libc/fixedmath module
Lokesh B V [Wed, 26 Jul 2017 09:36:13 +0000 (15:06 +0530)]
Add test cases for libc/fixedmath module

Adds test cases for libc/fixedmath API's namely,
b16atan2, b16cos, b16divb16, b16mulb16, b16sin, b16sqr, ub16divub16, ub16mulub16 and ub16sqr

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoMerge pull request #336 from thapav/fixAPIerrors
sunghan-chang [Wed, 2 Aug 2017 05:59:59 +0000 (14:59 +0900)]
Merge pull request #336 from thapav/fixAPIerrors

Fix wrong API implementations

6 years agolibc/math: Fix implementation of tanh(),tanhf(),tanhl() API
Vidisha Thapa [Wed, 2 Aug 2017 05:46:25 +0000 (11:16 +0530)]
libc/math: Fix implementation of tanh(),tanhf(),tanhl() API

tanh(),tanhf(),tanhl() implementations were wrong.

Example: For tanh(M_PI_4) value should be 0.65579524937 but we were getting 1.5248687267303
This is fixed in this patch.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
6 years agoMerge pull request #313 from lokeshbv/code_coverage
sunghan-chang [Wed, 2 Aug 2017 02:10:31 +0000 (11:10 +0900)]
Merge pull request #313 from lokeshbv/code_coverage

Add Test Cases for fs, net_inet, kernel, libc modules

6 years agoMerge pull request #330 from JeonginKim/master
sangwon03 [Wed, 2 Aug 2017 00:16:26 +0000 (09:16 +0900)]
Merge pull request #330 from JeonginKim/master

Added FTP server sample application

6 years agoMerge pull request #321 from lokeshbv/libc_math
sunghan-chang [Tue, 1 Aug 2017 11:28:44 +0000 (20:28 +0900)]
Merge pull request #321 from lokeshbv/libc_math

TC: Add test cases for Libc Math

6 years agoAdded XMLRPC(embedded http server) sample application
JeonginKim [Tue, 1 Aug 2017 10:20:19 +0000 (19:20 +0900)]
Added XMLRPC(embedded http server) sample application

6 years agoAdded FTP server sample application
JeonginKim [Tue, 1 Aug 2017 04:42:07 +0000 (13:42 +0900)]
Added FTP server sample application

6 years agoTC: Expand tc for libc/semaphore modules
Lokesh B V [Fri, 21 Jul 2017 06:45:19 +0000 (12:15 +0530)]
TC: Expand tc for libc/semaphore modules

1) Adds tc for sem_getprotocol() API.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for libc/stdlib module.
Lokesh B V [Wed, 19 Jul 2017 07:16:13 +0000 (12:46 +0530)]
TC: Expand tc for libc/stdlib module.

1) Adds tc for abort() API.
2) Adds tc for itoa() - for negative input value.
3) exapnds tc for qsort(), strtod(), strtol(), strtoll(), strtoul() API's.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for libc/unistd module
Lokesh B V [Wed, 19 Jul 2017 07:08:01 +0000 (12:38 +0530)]
TC: Expand tc for libc/unistd module

1) Expands tc for getcwd().
   - failure case for invalid buffer size.
   - failure case when "PWD" is not defined.
2) Adds tc for chdir(), where input directory is not a directory.
3) Adds tc for access() API.
4) Adds tc fot getopt(), getoptargp(), getoptindp() and getoptoptp() API's

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for libc/string module API's
Lokesh B V [Wed, 19 Jul 2017 07:02:46 +0000 (12:32 +0530)]
TC: Expand tc for libc/string module API's

1) Adds tc for memmove(), where memory areas may overlap.
2) Adds tc for strstr() and strcasestr().
 - substring is not found in substring.
 - for empty input main string.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for libc/timer module API's
Lokesh B V [Wed, 19 Jul 2017 07:01:00 +0000 (12:31 +0530)]
TC: Expand tc for libc/timer module API's

Expands tc for strftime() API.
 - includes tc with format options %e, %h, %b, %h, %j, &l, %k and %p to strftime().

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for libc/libgen module API's
Lokesh B V [Wed, 19 Jul 2017 06:57:57 +0000 (12:27 +0530)]
TC: Expand tc for libc/libgen module API's

Exapnds tc for dirname().

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for kernel/environ module API's
Lokesh B V [Wed, 19 Jul 2017 06:51:18 +0000 (12:21 +0530)]
TC: Expand tc for kernel/environ module API's

1) Adds tc for setenv().
  - includes invalid input tc.
2) invalid input tc for putenv().

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for kernel/clock module API's
Lokesh B V [Wed, 19 Jul 2017 06:44:44 +0000 (12:14 +0530)]
TC: Expand tc for kernel/clock module API's

1) Adds failure tc: invalid 'clk_id' as input to clock_getres() API.
2) Adds failure tc: invalid input to gettimeofday() API.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for termios API's
Lokesh B V [Tue, 18 Jul 2017 14:46:07 +0000 (20:16 +0530)]
TC: Expand tc for termios API's

1) Adds missing test cases for isatty() and cfgetspeed() API's.
2) Adds failure test case: invlaid 'option' input to tcsetattr() API.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand test case for pthread_sigmask() API.
Lokesh B V [Tue, 18 Jul 2017 14:34:05 +0000 (20:04 +0530)]
TC: Expand test case for pthread_sigmask() API.

Adds test case: invalid signal as input to pthread_sigmask().

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for net_inet(network) module API's
Lokesh B V [Tue, 18 Jul 2017 14:30:46 +0000 (20:00 +0530)]
TC: Expand tc for net_inet(network) module API's

1) Remove unnecessary newlines.
2) Add missing tc for ntop() and pton() API's.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC: Expand tc for fs module API's
Lokesh B V [Tue, 18 Jul 2017 14:23:35 +0000 (19:53 +0530)]
TC: Expand tc for fs module API's

Expands test cases of opendir() and closedir() API's.
1) opendir() - tc for input is not a directory.
2) closedir() - tc for Invalid directory stream descriptor input.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoTC-Libc_Math: Remove fixed size at array definition.
Lokesh B V [Tue, 1 Aug 2017 09:03:44 +0000 (14:33 +0530)]
TC-Libc_Math: Remove fixed size at array definition.

1) Removes fixed size at array definition.
2) Uses sizeof to get loop value instead of fixed value.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoMerge pull request #327 from arpit-ag/master
pillip8282 [Tue, 1 Aug 2017 08:47:38 +0000 (17:47 +0900)]
Merge pull request #327 from arpit-ag/master

Update sys_arch.c

6 years agoMerge pull request #331 from sunghan-chang/master
btheosam [Tue, 1 Aug 2017 06:46:17 +0000 (15:46 +0900)]
Merge pull request #331 from sunghan-chang/master

remove the CONFIG_CANCELLATION_POINTS conditional at task_setcancelty…

6 years agoAdd test cases for Libc Math
Lokesh B V [Mon, 31 Jul 2017 13:44:36 +0000 (19:14 +0530)]
Add test cases for Libc Math

Adds test cases for following libc/math API's,
cbrtf, cbrtl, exp2, expl, exp2f, exp2l, fabsf, fabsl, fdimf, fdimfl,
floorf, floorl, fmaxf, fmaxl, fminf, fminl, hypotf, hypotl, j0f, j1f,
jnf, nextafterf, nextafterl, nexttowardf, nexttowardl, remainderf,
remainderl, remquof, remquol, rint, rintf, rintl, round, roundf,
roundl, scalbnf, scalbnl, sqrt, sqrtf, sqrl, y0f, y1f, ynf.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
6 years agoremove the CONFIG_CANCELLATION_POINTS conditional at task_setcanceltype and task_cancelpt
sunghan [Tue, 1 Aug 2017 06:12:19 +0000 (15:12 +0900)]
remove the CONFIG_CANCELLATION_POINTS conditional at task_setcanceltype and task_cancelpt

Those two files are already under CONFIG_CANCELLATION_POINTS at make.defs.
Checking it in file is redundant.

ifeq ($(CONFIG_CANCELLATION_POINTS),y)
CSRCS += task_setcanceltype.c task_testcancel.c task_cancelpt.c
endif

6 years agoMerge pull request #328 from lokeshbv/kernel_signal
sunghan-chang [Tue, 1 Aug 2017 03:43:10 +0000 (12:43 +0900)]
Merge pull request #328 from lokeshbv/kernel_signal

Fix: sigtimedwait: Pending signal structure used after it has been released

6 years agoFix: Pending signal structure used after it has been released
Lokesh B V [Mon, 31 Jul 2017 14:53:02 +0000 (20:23 +0530)]
Fix: Pending signal structure used after it has been released

Pending signal structure 'sigpend' is used after it has been released by sig_releasependingsignal().

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agoMerge pull request #304 from thapav/libc_math
sunghan-chang [Mon, 31 Jul 2017 03:42:53 +0000 (12:42 +0900)]
Merge pull request #304 from thapav/libc_math

Code Coverage: libc/math: Add test cases for various math API's

7 years agoMerge pull request #324 from jeongchanKim/kernel_readme
Taejun-Kwon [Fri, 28 Jul 2017 06:31:28 +0000 (15:31 +0900)]
Merge pull request #324 from jeongchanKim/kernel_readme

Fix the Readme about Kconfig-frontend Installation explanation

7 years agoMerge pull request #325 from junmin-kim/kernel_appconfig
Taejun-Kwon [Fri, 28 Jul 2017 06:31:05 +0000 (15:31 +0900)]
Merge pull request #325 from junmin-kim/kernel_appconfig

Use #!bin/bash in update_config.sh

7 years agoMerge pull request #326 from junmin-kim/kernel_tiva
Taejun-Kwon [Fri, 28 Jul 2017 06:30:37 +0000 (15:30 +0900)]
Merge pull request #326 from junmin-kim/kernel_tiva

Replace #if with #ifdef in tiva

7 years agoReplace #if with #ifdef in tiva
junmin kim [Fri, 28 Jul 2017 06:13:58 +0000 (23:13 -0700)]
Replace #if with #ifdef in tiva

Macro can be undefined

7 years agoUse #!bin/bash in update_config.sh
junmin kim [Fri, 28 Jul 2017 05:16:09 +0000 (22:16 -0700)]
Use #!bin/bash in update_config.sh

update_config.sh uses bash syntax

7 years agoFix the Readme about Kconfig-frontend Installation explanation
jc_.kim [Fri, 28 Jul 2017 00:34:46 +0000 (09:34 +0900)]
Fix the Readme about Kconfig-frontend Installation explanation

7 years agoUpdate sys_arch.c
Arpit Agarwal [Thu, 27 Jul 2017 19:31:15 +0000 (01:01 +0530)]
Update sys_arch.c

Fix Message Queue implementation (which is based on Circular Q).
Problem with earlier implementation is that in a particular case when front points to  start of queue and rear points to end of queue, now if new data comes it gets stored at rear (now Queue is full) and rear gets updated as (rear+1%max) which is front. Now if fetch API is called it results in false empty scenario as front == rear evaluates to true while the Queue is full.

7 years agoMerge pull request #308 from sunghan-chang/master
Taejun-Kwon [Wed, 26 Jul 2017 09:59:43 +0000 (18:59 +0900)]
Merge pull request #308 from sunghan-chang/master

add/modify README

7 years agoMerge pull request #315 from junmin-kim/apps_typo
Taejun-Kwon [Wed, 26 Jul 2017 09:57:52 +0000 (18:57 +0900)]
Merge pull request #315 from junmin-kim/apps_typo

Fix typo in apps/shell/README.md

7 years agoFix typo in apps/shell/README.md
junmin kim [Tue, 25 Jul 2017 07:48:26 +0000 (00:48 -0700)]
Fix typo in apps/shell/README.md

7 years agolibc/math: Add test cases for various math API's
Vidisha Thapa [Wed, 19 Jul 2017 14:00:43 +0000 (19:30 +0530)]
libc/math: Add test cases for various math API's

This patch covers test cases for left out API's in libc/math
The API's are namely: acos,acosf,acosl,acosh,acoshf,acoshl,
asin,asinf,asinl,asinh,asinhf,asinhl,
atan,atanf,atanl,atanh,atanhf,atanhl,
atan2,atan2f,atan2l,ceil,ceilf,ceill,
copysign,copysignf,copysignl,cos,cosf,
cosl,cosh,coshf,coshl,erf,erff,erfl,
frexp,frexpf,frexpl,ldexp,ldexpf,ldexpl,
log2,log2f,log2l,sin,sinf,sinl,sinh,
sinhf,sinhl,trunc,truncf.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoMerge pull request #314 from jeongarmy/fs_tc
Taejun-Kwon [Mon, 24 Jul 2017 01:42:22 +0000 (10:42 +0900)]
Merge pull request #314 from jeongarmy/fs_tc

Fix bugs in fs dup2 tc

7 years agoAdd ommitted assignment for fd in dup2 tc
Ahreum Jeong [Thu, 29 Jun 2017 05:53:26 +0000 (14:53 +0900)]
Add ommitted assignment for fd in dup2 tc
Although negative tc is failed below, fd1 can be positive value because of tc success before
So fd should be assigned as negative value

7 years agoMerge pull request #307 from lokeshbv/libc_math
Juitem JoonWoo Kim [Mon, 24 Jul 2017 00:58:55 +0000 (09:58 +0900)]
Merge pull request #307 from lokeshbv/libc_math

libc/math: Fix for wrong ouput in ceil() API

7 years agoMerge pull request #306 from kyungse/kernel_appconfig
sunghan-chang [Fri, 21 Jul 2017 06:33:54 +0000 (15:33 +0900)]
Merge pull request #306 from kyungse/kernel_appconfig

Add appconfig command for making app config metafile

7 years agoAdd omitted APPNAME and FUNCNAME in apps/examples/*/Makefile
root [Fri, 21 Jul 2017 01:32:03 +0000 (10:32 +0900)]
Add omitted APPNAME and FUNCNAME in apps/examples/*/Makefile

7 years agoAdd appconfig command for making app config metafile
root [Thu, 20 Jul 2017 08:28:59 +0000 (17:28 +0900)]
Add appconfig command for making app config metafile

7 years agoMerge pull request #302 from pradeepns85/use_secure_snprintf
sunghan-chang [Fri, 21 Jul 2017 00:31:52 +0000 (09:31 +0900)]
Merge pull request #302 from pradeepns85/use_secure_snprintf

Replace sprintf with secure API snprintf for security reasons

7 years agoAdd/modify README to show how to make and download ROMFS image
sunghan [Thu, 20 Jul 2017 11:17:27 +0000 (20:17 +0900)]
Add/modify README to show how to make and download ROMFS image

7 years agolibc/math: Fix for wrong ouput in ceil() API
Lokesh B V [Thu, 20 Jul 2017 10:50:24 +0000 (16:20 +0530)]
libc/math: Fix for wrong ouput in ceil() API

Ex:for input x = 1.0, the ouput should be 1.0, but the ouput was 2.0.
This wrong ouput is fixed.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agoMerge pull request #305 from manoharahk/sidk_s5jt200_romfs_dev
sunghan-chang [Thu, 20 Jul 2017 08:20:54 +0000 (17:20 +0900)]
Merge pull request #305 from manoharahk/sidk_s5jt200_romfs_dev

Sidk s5jt200 romfs dev

7 years agoadd contents for README
sunghan [Thu, 20 Jul 2017 07:56:04 +0000 (16:56 +0900)]
add contents for README

7 years agoReplace sprintf with secure API snprintf for security reasons
pradeep.ns [Wed, 19 Jul 2017 18:00:16 +0000 (23:30 +0530)]
Replace sprintf with secure API snprintf for security reasons

Usage of sprintf can help hackers to cause buffer overflows and even
developers may unnotice the size of the destination buffer before
passing the formatted string and thus cause buffer overflow scenarios.
It's wise to use snprintf to avoid any such scenarios.

This patch takes care of sprintf usage inside OS folder only.

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agosidk_s5jt200 : support romfs image download
Manohara HK [Wed, 28 Jun 2017 05:52:23 +0000 (11:22 +0530)]
sidk_s5jt200 : support romfs image download

1. This patch adds support for creating romfs.img and
   creates partition_map.cfg.

2. partition_gen.sh script creates partition_map.cfg by reading partition
   information from .config

3. partition_map.cfg is included in flash_all.cfg for flashing romfs.img
   at the romfs partition start address.

Signed-off-by: Manohara HK <manohara.hk@samsung.com>
7 years agosidk_s5jt200 : add romfs device automount support
Manohara HK [Wed, 28 Jun 2017 05:43:00 +0000 (11:13 +0530)]
sidk_s5jt200 : add romfs device automount support

This patch adds configuration and mount code for supporting
romfs device auto mount
If the romfs partition size and type and name are added in the
FLASH_PART_* configurtion and CONFIG_FS_ROMFS enabled,
a smart device(/dev/smart0pX) will be created and
romfs filesystem will be automounted on it.

To test it,
1. configure for sidk_s5jt200/hello_with_tash
2. make menuconfig
- Enable CONFIG_FS_ROMFS
- Split last partition size to (256,256) in CONFIG_SIDK_S5JT200_FLASH_PART_LIST
- Append "smartfs" at the end to CONFIG_SIDK_S5JT200_FLASH_PART_TYPE
- Append "romfs" at the end to CONFIG_SIDK_S5JT200_FLASH_PART_NAME
  (Above 3 steps created romfs partition with size 256K at the end,
where romfs device is a smart device and romfs filesystem will be
mounted on smartdevice "/dev/smart0p15" )

- Enable CONFIG_SIDK_S5JT200_AUTOMOUNT_ROMFS
3. make
4. Put "contents" into "external/contents" directory
4. make download ALL

Signed-off-by: Manohara HK <manohara.hk@samsung.com>
7 years agoMerge pull request #297 from heejin-kim/hj_rt
sunghan-chang [Thu, 20 Jul 2017 06:00:57 +0000 (15:00 +0900)]
Merge pull request #297 from heejin-kim/hj_rt

Revert the some changes #284

7 years agoMerge pull request #303 from jeongarmy/logm
sunghan-chang [Thu, 20 Jul 2017 05:52:09 +0000 (14:52 +0900)]
Merge pull request #303 from jeongarmy/logm

Update Logm

7 years agoRevert the some changes #284
Heejin Kim [Wed, 19 Jul 2017 05:26:39 +0000 (14:26 +0900)]
Revert the some changes #284

To clarify the function's meaning, some changes is reverted from #284.

7 years agoSet flag and priority parameters properly in macros in debug.h
Ahreum Jeong [Fri, 14 Jul 2017 08:22:01 +0000 (17:22 +0900)]
Set flag and priority parameters properly in macros in debug.h

7 years agoSupport flag parameter in logm
Ahreum Jeong [Thu, 13 Jul 2017 04:47:56 +0000 (13:47 +0900)]
Support flag parameter in logm

Gernerally, logm puts entered messages to buffer and flushes them in logm task
But sometimes it is needed to print messages directly.
So logm supports this functionallity using flags
If flag is LOGM_LOWPUT, logm prints messages to low output directly after flushing buffer

7 years agoClean codes of logm
Ahreum Jeong [Thu, 13 Jul 2017 04:27:18 +0000 (13:27 +0900)]
Clean codes of logm

7 years agoMerge pull request #274 from pradeepns85/stkmonitor_tash_dependency
sunghan-chang [Thu, 20 Jul 2017 04:57:17 +0000 (13:57 +0900)]
Merge pull request #274 from pradeepns85/stkmonitor_tash_dependency

Add !BUILD_PROTECTED && !BUILD_KERNEL dependency for ENABLE_STACKMONITOR flag

7 years agoMerge pull request #295 from lokeshbv/libc
sunghan-chang [Thu, 20 Jul 2017 04:46:18 +0000 (13:46 +0900)]
Merge pull request #295 from lokeshbv/libc

libc/stdlib: Error Fixes

7 years agoMerge pull request #296 from lokeshbv/libc_math
sunghan-chang [Thu, 20 Jul 2017 04:45:59 +0000 (13:45 +0900)]
Merge pull request #296 from lokeshbv/libc_math

Libc math: Refactoring

7 years agolibc/math: Fix for wrong ouput in modf() API
Lokesh B V [Wed, 19 Jul 2017 14:52:14 +0000 (20:22 +0530)]
libc/math: Fix for wrong ouput in modf() API

The sign of integral part given by the modf() should be same as sign of input.
But for inputs between 0 and 1, the sign of integral part was not same as sign of input.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agolibc/math: Update lib_sqrtf.c lib_sqrt.c lib_sqrtl.c
Lokesh B V [Wed, 19 Jul 2017 06:54:31 +0000 (12:24 +0530)]
libc/math: Update lib_sqrtf.c lib_sqrt.c lib_sqrtl.c

Declared each variable in new line.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agoMerge pull request #300 from thapav/missingStdioAPIs
sunghan-chang [Wed, 19 Jul 2017 08:07:11 +0000 (17:07 +0900)]
Merge pull request #300 from thapav/missingStdioAPIs

Added Missing stdio API's: freopen,setbuf,setvbuf,remove

7 years agoAdded missing stdio API's: freopen,setbuf,setvbuf,remove
Vidisha Thapa [Wed, 19 Jul 2017 07:09:02 +0000 (12:39 +0530)]
Added missing stdio API's: freopen,setbuf,setvbuf,remove

This patch adds missing stdio API's namely:
'freopen', 'setbuf', 'setvbuf', 'remove' to TizenRT.
These API's are ported by referring to the latest Nuttx.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoRefactoring on stream
Vidisha Thapa [Wed, 19 Jul 2017 06:46:28 +0000 (12:16 +0530)]
Refactoring on stream

This patch implements refactoring on I/O buffer stream.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoModify return value on fcntl
Vidisha Thapa [Wed, 19 Jul 2017 06:26:17 +0000 (11:56 +0530)]
Modify return value on fcntl

This patch sets errno flag EBADF and modifies return value.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoModify description on Kconfig
Vidisha Thapa [Wed, 19 Jul 2017 06:22:41 +0000 (11:52 +0530)]
Modify description on Kconfig

This patch modifies description of STDIO_BUFFER_SIZE config.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
7 years agoUpdate lib_sqrtf.c
Lokesh B V [Wed, 19 Jul 2017 06:54:31 +0000 (12:24 +0530)]
Update lib_sqrtf.c

7 years agoAdd !BUILD_PROTECTED && !BUILD_KERNEL dependency for ENABLE_STACKMONITOR flag
pradeep.ns [Thu, 13 Jul 2017 19:51:37 +0000 (01:21 +0530)]
Add !BUILD_PROTECTED && !BUILD_KERNEL dependency for ENABLE_STACKMONITOR flag

This feature internally uses kernel data structures and thus should not be
enabled during kernel build(BUILD_KERNEL) and protected build (BUILD_PROTECTED)

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
7 years agoMerge pull request #294 from kiwoongko/master
sunghan-chang [Wed, 19 Jul 2017 03:09:06 +0000 (12:09 +0900)]
Merge pull request #294 from kiwoongko/master

correction of errata (protocal --> protocol)

7 years agolib/math: Fix sqrtf
Lokesh B V [Tue, 18 Jul 2017 14:13:19 +0000 (19:43 +0530)]
lib/math: Fix sqrtf
          wrong ouput for large input
          Also typo changes.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agolibc/math: Typo Fix
Lokesh B V [Tue, 18 Jul 2017 14:12:45 +0000 (19:42 +0530)]
libc/math: Typo Fix

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agolibc/stdlib: Error Fixes
Lokesh B V [Tue, 18 Jul 2017 11:41:20 +0000 (17:11 +0530)]
libc/stdlib: Error Fixes
       1.Fix an error in mkstemp() the could result in an infinite loop.
       2.Fix for wrong output in some cases.
         For Example:
         input: "FILEXX"
         output: "FILE00" and repeating same output for further invocations of mkstemp().
         But, the ouput has to be FILE01, FILE02, ...., FILEZZ.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
7 years agocorrection of errata (protocal --> protocol)
Kiwoong Ko [Tue, 18 Jul 2017 10:42:29 +0000 (19:42 +0900)]
correction of errata (protocal --> protocol)

7 years agoMerge pull request #285 from dr-venkman/master
pillip8282 [Mon, 17 Jul 2017 09:41:04 +0000 (18:41 +0900)]
Merge pull request #285 from dr-venkman/master

Removed doc folder in tinydtls subfolder in wakaama

7 years agoMerge pull request #288 from junmin-kim/common_qemu
sunghan-chang [Mon, 17 Jul 2017 08:58:14 +0000 (17:58 +0900)]
Merge pull request #288 from junmin-kim/common_qemu

Add qemu feature

7 years agoMerge pull request #281 from jeongchanKim/kernel_idlestack
sunghan-chang [Mon, 17 Jul 2017 08:56:39 +0000 (17:56 +0900)]
Merge pull request #281 from jeongchanKim/kernel_idlestack

modify the peak stack size of idle task

7 years agoMerge pull request #286 from JeongJunSik/master
sunghan-chang [Mon, 17 Jul 2017 08:25:28 +0000 (17:25 +0900)]
Merge pull request #286 from JeongJunSik/master

Remove the unavailable iotbus_spi api funtion

7 years agoRemove the unavailable iotbus_spi api funtion
JunSik Jeong [Mon, 17 Jul 2017 07:50:23 +0000 (16:50 +0900)]
Remove the unavailable iotbus_spi api funtion

7 years agoCreate qemu config README.md
junmin kim [Fri, 14 Jul 2017 08:12:20 +0000 (01:12 -0700)]
Create qemu config README.md

7 years agoCall qemu command when user type "make download"
junmin kim [Mon, 10 Jul 2017 07:34:20 +0000 (00:34 -0700)]
Call qemu command when user type "make download"

7 years agoCreate qemu build config
junmin kim [Thu, 13 Jul 2017 08:19:14 +0000 (01:19 -0700)]
Create qemu build config

7 years agoport lm3s6965-ek board from NuttX
Manohara HK [Tue, 21 Mar 2017 13:45:54 +0000 (19:15 +0530)]
port lm3s6965-ek board from NuttX

This is required for running tinyara on QEMU.
lm3s6965-ek board is supported in qemu and as well as in NuttX.
This patch ports lm3s6965-ek board and associated SoC(tiva) from latest nuttx.
lm3s6965-ek and tiva chip source are not exactly from laster master, but
build compatible version is choosen while porting.

Signed-off-by: Manohara HK <manohara.hk@samsung.com>
7 years agoRemoved doc folder in tinydtls subfilder within wakaama/examples/shared. This should...
dr-venkman [Mon, 17 Jul 2017 07:31:11 +0000 (16:31 +0900)]
Removed doc folder in tinydtls subfilder within wakaama/examples/shared. This should fix GPLv2 license issue

7 years agoMerge pull request #284 from heejin-kim/hj_rt
lssgood [Mon, 17 Jul 2017 06:47:46 +0000 (15:47 +0900)]
Merge pull request #284 from heejin-kim/hj_rt

Fix defects for webserver

7 years agoMerge branch 'master' into hj_rt
heejin-kim [Mon, 17 Jul 2017 06:46:03 +0000 (15:46 +0900)]
Merge branch 'master' into hj_rt

7 years agoFix defects for webserver
Heejin Kim [Mon, 17 Jul 2017 06:30:33 +0000 (15:30 +0900)]
Fix defects for webserver

7 years agoMerge pull request #277 from sunghan-chang/master
btheosam [Mon, 17 Jul 2017 06:09:08 +0000 (15:09 +0900)]
Merge pull request #277 from sunghan-chang/master

refactoring

7 years agomodify the peak stack size of idle task
jc_.kim [Mon, 17 Jul 2017 01:43:48 +0000 (10:43 +0900)]
modify the peak stack size of idle task

update the stack info in idle task tcb and add coloration for idle stack before os_start

7 years agoMerge pull request #280 from HONGCHAEHEE/modify-cjson
pillip8282 [Mon, 17 Jul 2017 04:40:09 +0000 (13:40 +0900)]
Merge pull request #280 from HONGCHAEHEE/modify-cjson

Add cJSON functions

7 years agoMerge pull request #282 from jeongchanKim/kernel_readme
sunghan-chang [Mon, 17 Jul 2017 02:05:10 +0000 (11:05 +0900)]
Merge pull request #282 from jeongchanKim/kernel_readme

Modify the Readme.md about setting the Kconfig-frontends Installation

7 years agoModify the Readme.md about setting the Kconfig-frontends Installation
jc_.kim [Mon, 17 Jul 2017 01:47:27 +0000 (10:47 +0900)]
Modify the Readme.md about setting the Kconfig-frontends Installation

7 years agoAdd cJSON functions
chaehee.hong [Mon, 17 Jul 2017 01:28:32 +0000 (18:28 -0700)]
Add cJSON functions

7 years agofixup! examples/tls: fix certificates retrieval from SSS
sunghan [Fri, 14 Jul 2017 12:45:07 +0000 (21:45 +0900)]
fixup! examples/tls: fix certificates retrieval from SSS

MQTT configurations are added manually.
It makes duplicated and added wrong location.

7 years agomodify incorrect comment on socket.h
sunghan [Fri, 14 Jul 2017 12:00:07 +0000 (21:00 +0900)]
modify incorrect comment on socket.h

CONFIG_CUSTOM_SOCKETS -> CONFIG_NET_SOCKET