mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Add mkfifo2() and pipe2() which are just like mkfifo() and pipe(), but allow control of the size of the underlying, in-memory circular buffer
This commit is contained in:
@@ -130,6 +130,7 @@ extern "C"
|
||||
#endif
|
||||
|
||||
int mkdir(FAR const char *pathname, mode_t mode);
|
||||
int mkfifo2(FAR const char *pathname, mode_t mode, size_t bufsize); /* NuttX only */
|
||||
int mkfifo(FAR const char *pathname, mode_t mode);
|
||||
int stat(const char *path, FAR struct stat *buf);
|
||||
#if 0 /* Not yet supported */
|
||||
|
||||
+2
-1
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* include/unistd.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2013-2014 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2013-2014, 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -174,6 +174,7 @@ FAR void *sbrk(intptr_t incr);
|
||||
|
||||
/* Special devices */
|
||||
|
||||
int pipe2(int fd[2], size_t bufsize); /* NuttX only */
|
||||
int pipe(int fd[2]);
|
||||
|
||||
/* Working directory operations */
|
||||
|
||||
Reference in New Issue
Block a user