maht commented on code in PR #6152:
URL: https://github.com/apache/incubator-nuttx/pull/6152#discussion_r861651975


##########
include/nuttx/lib/lib.h:
##########
@@ -113,12 +113,11 @@ void lib_stream_release(FAR struct task_group_s *group);
 
 #ifdef CONFIG_STDIO_DISABLE_BUFFERING
 #  define lib_sem_initialize(s)
-#  define lib_take_semaphore(s)
-#  define lib_give_semaphore(s)
+#  define lib_take_semaphore(s, f)
 #else
 void lib_sem_initialize(FAR struct file_struct *stream);
-void lib_take_semaphore(FAR struct file_struct *stream);
-void lib_give_semaphore(FAR struct file_struct *stream);
+int lib_take_semaphore(FAR struct file_struct *stream,

Review Comment:
   Thanks, I will add it in a fixup commit.



##########
include/stdio.h:
##########
@@ -173,6 +173,12 @@ int    setvbuf(FAR FILE *stream, FAR char *buffer, int 
mode, size_t size);
 
 int    ungetc(int c, FAR FILE *stream);
 
+#ifndef CONFIG_STDIO_DISABLE_BUFFERING
+void flockfile(FAR FILE *stream);
+int ftrylockfile(FAR FILE *stream);
+void funlockfile(FAR FILE *stream);

Review Comment:
   Thanks, I will add it in a fixup commit.



-- 
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