mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
poll() and select() should not be built if poll() is disabled
This commit is contained in:
+1
-1
Submodule arch updated: 63bee79ab5...5c2e57602f
@@ -11,6 +11,9 @@ config DISABLE_POLL
|
|||||||
supported. If you do not use poll() or select(), then you can
|
supported. If you do not use poll() or select(), then you can
|
||||||
select DISABLE_POLL to reduce the code footprint by a small amount.
|
select DISABLE_POLL to reduce the code footprint by a small amount.
|
||||||
|
|
||||||
|
This selection disables the poll() interface as well as interfaces
|
||||||
|
the derive from poll() such as select().
|
||||||
|
|
||||||
config DEV_NULL
|
config DEV_NULL
|
||||||
bool "Enable /dev/null"
|
bool "Enable /dev/null"
|
||||||
default y
|
default y
|
||||||
|
|||||||
+7
-1
@@ -41,7 +41,7 @@ ifneq ($(CONFIG_NSOCKET_DESCRIPTORS),0)
|
|||||||
|
|
||||||
# Socket descriptor support
|
# Socket descriptor support
|
||||||
|
|
||||||
CSRCS += fs_close.c fs_read.c fs_write.c fs_ioctl.c fs_poll.c fs_select.c
|
CSRCS += fs_close.c fs_read.c fs_write.c fs_ioctl.c
|
||||||
|
|
||||||
# Support for network access using streams
|
# Support for network access using streams
|
||||||
|
|
||||||
@@ -49,6 +49,12 @@ ifneq ($(CONFIG_NFILE_STREAMS),0)
|
|||||||
CSRCS += fs_fdopen.c
|
CSRCS += fs_fdopen.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Support for poll() and select() (which derives from poll()
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_DISABLE_POLL),y)
|
||||||
|
CSRCS += fs_poll.c fs_select.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Support for sendfile()
|
# Support for sendfile()
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET_SENDFILE),y)
|
ifeq ($(CONFIG_NET_SENDFILE),y)
|
||||||
|
|||||||
Reference in New Issue
Block a user