anchao commented on code in PR #11177: URL: https://github.com/apache/nuttx/pull/11177#discussion_r1393016153
########## sched/task/task_spawnparms.c: ########## @@ -289,3 +291,70 @@ int spawn_file_actions(FAR struct tcb_s *tcb, return ret; } + +/**************************************************************************** + * Name: spawn_file_is_duplicateable + * + * Description: + * Check the input file descriptor is duplicateable from spawn actions + * + * Input Parameters: + * + * actions - The spawn file actions + * fd - file descriptor + * + * Returned Value: + * Return 1 if file descriptor is duplicate able + * Return 0 if file descriptor in action list but unable to duplicate + * Return -1 if file descriptor without in actions list + * + ****************************************************************************/ + +int Review Comment: The return value here has three meanings: * Returned Value: * Return 1 if file descriptor is duplicate able * Return 0 if file descriptor in action list but unable to duplicate * Return -1 if file descriptor without in actions list -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org