diff --git a/builtin/exec_builtin.c b/builtin/exec_builtin.c index e15587cf1..3f4c9b38b 100644 --- a/builtin/exec_builtin.c +++ b/builtin/exec_builtin.c @@ -110,7 +110,7 @@ int exec_builtin(FAR const char *appname, FAR char * const *argv, goto errout_with_actions; } - ret = task_spawnattr_setstacksize(&attr, builtin->stacksize); + ret = posix_spawnattr_setstacksize(&attr, builtin->stacksize); if (ret != 0) { goto errout_with_actions; diff --git a/nshlib/nsh_fileapps.c b/nshlib/nsh_fileapps.c index d64b37b11..e017f6c6c 100644 --- a/nshlib/nsh_fileapps.c +++ b/nshlib/nsh_fileapps.c @@ -151,7 +151,7 @@ int nsh_fileapp(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, goto errout_with_actions; } - ret = task_spawnattr_setstacksize(&attr, builtin->stacksize); + ret = posix_spawnattr_setstacksize(&attr, builtin->stacksize); if (ret != 0) { goto errout_with_actions; diff --git a/system/popen/popen.c b/system/popen/popen.c index a5ebd91bd..805667da1 100644 --- a/system/popen/popen.c +++ b/system/popen/popen.c @@ -198,8 +198,8 @@ FILE *popen(FAR const char *command, FAR const char *mode) } #ifndef CONFIG_SYSTEM_POPEN_SHPATH - errcode = task_spawnattr_setstacksize(&attr, - CONFIG_SYSTEM_POPEN_STACKSIZE); + errcode = posix_spawnattr_setstacksize(&attr, + CONFIG_SYSTEM_POPEN_STACKSIZE); if (errcode != 0) { goto errout_with_actions; diff --git a/system/system/system.c b/system/system/system.c index 17a1ba7d3..5ecc3ae8b 100644 --- a/system/system/system.c +++ b/system/system/system.c @@ -91,8 +91,8 @@ int system(FAR const char *cmd) goto errout_with_attrs; } - errcode = task_spawnattr_setstacksize(&attr, - CONFIG_SYSTEM_SYSTEM_STACKSIZE); + errcode = posix_spawnattr_setstacksize(&attr, + CONFIG_SYSTEM_SYSTEM_STACKSIZE); if (errcode != 0) { goto errout_with_attrs;