jnippula commented on code in PR #18810:
URL: https://github.com/apache/nuttx/pull/18810#discussion_r3146320344


##########
syscall/syscall.csv:
##########
@@ -31,7 +31,7 @@
 "execve","unistd.h","!defined(CONFIG_BINFMT_DISABLE) && 
defined(CONFIG_LIBC_EXECFUNCS)","int","FAR const char *","FAR char * const 
[]|FAR char * const *","FAR char * const []|FAR char * const *"
 "fchmod","sys/stat.h","","int","int","mode_t"
 "fchown","unistd.h","","int","int","uid_t","gid_t"
-"fcntl","fcntl.h","","int","int","int","...","int"
+"fcntl","fcntl.h","","int","int","int","...","uintptr_t"

Review Comment:
   This does not affect to return type, it remains int. The parm3 is now 
treated as uintptr_t instead of int. The generated code after patch:
   ```C
   int fcntl(int parm1, int parm2, ...)
   {
     va_list ap;
     uintptr_t parm3;
   
     va_start(ap, parm2);
     parm3 = va_arg(ap, uintptr_t);
     va_end(ap);
   
     return (int)sys_call3((unsigned int)SYS_fcntl, (uintptr_t)parm1, 
(uintptr_t)parm2, (uintptr_t)parm3);
   }
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to