From 8f982996138641028f445dfdf1998a27018b1ba2 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 15 Jun 2009 21:44:27 +0000 Subject: Add conditional compilation to eliminate or limit cloning of descriptors when a new task is created git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1886 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/configs/ez80f910200zco/dhcpd/defconfig | 38 ++++++++++++++++++-------- nuttx/configs/ez80f910200zco/httpd/defconfig | 38 ++++++++++++++++++-------- nuttx/configs/ez80f910200zco/nettest/defconfig | 38 ++++++++++++++++++-------- nuttx/configs/ez80f910200zco/nsh/defconfig | 38 ++++++++++++++++++-------- nuttx/configs/ez80f910200zco/ostest/defconfig | 38 ++++++++++++++++++-------- nuttx/configs/ez80f910200zco/poll/defconfig | 38 ++++++++++++++++++-------- 6 files changed, 162 insertions(+), 66 deletions(-) (limited to 'nuttx/configs/ez80f910200zco') diff --git a/nuttx/configs/ez80f910200zco/dhcpd/defconfig b/nuttx/configs/ez80f910200zco/dhcpd/defconfig index 499d5f9d41..7cb65f7f62 100644 --- a/nuttx/configs/ez80f910200zco/dhcpd/defconfig +++ b/nuttx/configs/ez80f910200zco/dhcpd/defconfig @@ -212,17 +212,30 @@ CONFIG_HAVE_LIBM=n # CONFIG_PRIORITY_INHERITANCE : Set to enable support for priority # inheritance on mutexes and semaphores. # CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority -# inheritance is enabled. It defines the maximum number of different -# threads (minus one) that can take counts on a semaphore with priority -# inheritance support. This may be set to zero if priority inheritance -# is disabled OR if you are only using semaphores as mutexes (only -# one holder) OR if no more than two threads participate using a -# counting semaphore. -# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, then this -# setting is the maximum number of higher priority threads (minus 1) -# than can be waiting for another thread to release a count on a -# semaphore. This value may be set to zero if no more than one -# thread is expected to wait for a semaphore. +# inheritance is enabled. It defines the maximum number of +# different threads (minus one) that can take counts on a +# semaphore with priority inheritance support. This may be +# set to zero if priority inheritance is disabled OR if you +# are only using semaphores as mutexes (only one holder) OR +# if no more than two threads participate using a counting +# semaphore. +# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, +# then this setting is the maximum number of higher priority +# threads (minus 1) than can be waiting for another thread +# to release a count on a semaphore. This value may be set +# to zero if no more than one thread is expected to wait for +# a semaphore. +# CONFIG_FDCLONE_DISABLE. Disable cloning of all file descriptors +# by task_create() when a new task is started. If set, all +# files/drivers will appear to be closed in the new task. +# CONFIG_FDCLONE_STDIO. Disable cloning of all but the first +# three file descriptors (stdin, stdout, stderr) by task_create() +# when a new task is started. If set, all files/drivers will +# appear to be closed in the new task except for stdin, stdout, +# and stderr. +# CONFIG_SDCLONE_DISABLE. Disable cloning of all socket +# desciptors by task_create() when a new task is started. If +# set, all sockets will appear to be closed in the new task. # CONFIG_EXAMPLE=dhcpd CONFIG_DEBUG=y @@ -244,6 +257,9 @@ CONFIG_MUTEX_TYPES=n CONFIG_PRIORITY_INHERITANCE=n CONFIG_SEM_PREALLOCHOLDERS=0 CONFIG_SEM_NNESTPRIO=0 +CONFIG_FDCLONE_DISABLE=n +CONFIG_FDCLONE_STDIO=n +CONFIG_SDCLONE_DISABLE=y # # The following can be used to disable categories of diff --git a/nuttx/configs/ez80f910200zco/httpd/defconfig b/nuttx/configs/ez80f910200zco/httpd/defconfig index 413d907317..ad594c4251 100644 --- a/nuttx/configs/ez80f910200zco/httpd/defconfig +++ b/nuttx/configs/ez80f910200zco/httpd/defconfig @@ -212,17 +212,30 @@ CONFIG_HAVE_LIBM=n # CONFIG_PRIORITY_INHERITANCE : Set to enable support for priority # inheritance on mutexes and semaphores. # CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority -# inheritance is enabled. It defines the maximum number of different -# threads (minus one) that can take counts on a semaphore with priority -# inheritance support. This may be set to zero if priority inheritance -# is disabled OR if you are only using semaphores as mutexes (only -# one holder) OR if no more than two threads participate using a -# counting semaphore. -# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, then this -# setting is the maximum number of higher priority threads (minus 1) -# than can be waiting for another thread to release a count on a -# semaphore. This value may be set to zero if no more than one -# thread is expected to wait for a semaphore. +# inheritance is enabled. It defines the maximum number of +# different threads (minus one) that can take counts on a +# semaphore with priority inheritance support. This may be +# set to zero if priority inheritance is disabled OR if you +# are only using semaphores as mutexes (only one holder) OR +# if no more than two threads participate using a counting +# semaphore. +# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, +# then this setting is the maximum number of higher priority +# threads (minus 1) than can be waiting for another thread +# to release a count on a semaphore. This value may be set +# to zero if no more than one thread is expected to wait for +# a semaphore. +# CONFIG_FDCLONE_DISABLE. Disable cloning of all file descriptors +# by task_create() when a new task is started. If set, all +# files/drivers will appear to be closed in the new task. +# CONFIG_FDCLONE_STDIO. Disable cloning of all but the first +# three file descriptors (stdin, stdout, stderr) by task_create() +# when a new task is started. If set, all files/drivers will +# appear to be closed in the new task except for stdin, stdout, +# and stderr. +# CONFIG_SDCLONE_DISABLE. Disable cloning of all socket +# desciptors by task_create() when a new task is started. If +# set, all sockets will appear to be closed in the new task. # CONFIG_EXAMPLE=uip CONFIG_DEBUG=y @@ -244,6 +257,9 @@ CONFIG_MUTEX_TYPES=n CONFIG_PRIORITY_INHERITANCE=n CONFIG_SEM_PREALLOCHOLDERS=0 CONFIG_SEM_NNESTPRIO=0 +CONFIG_FDCLONE_DISABLE=n +CONFIG_FDCLONE_STDIO=n +CONFIG_SDCLONE_DISABLE=y # # The following can be used to disable categories of diff --git a/nuttx/configs/ez80f910200zco/nettest/defconfig b/nuttx/configs/ez80f910200zco/nettest/defconfig index d0d5af04b0..46dea41172 100644 --- a/nuttx/configs/ez80f910200zco/nettest/defconfig +++ b/nuttx/configs/ez80f910200zco/nettest/defconfig @@ -212,17 +212,30 @@ CONFIG_HAVE_LIBM=n # CONFIG_PRIORITY_INHERITANCE : Set to enable support for priority # inheritance on mutexes and semaphores. # CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority -# inheritance is enabled. It defines the maximum number of different -# threads (minus one) that can take counts on a semaphore with priority -# inheritance support. This may be set to zero if priority inheritance -# is disabled OR if you are only using semaphores as mutexes (only -# one holder) OR if no more than two threads participate using a -# counting semaphore. -# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, then this -# setting is the maximum number of higher priority threads (minus 1) -# than can be waiting for another thread to release a count on a -# semaphore. This value may be set to zero if no more than one -# thread is expected to wait for a semaphore. +# inheritance is enabled. It defines the maximum number of +# different threads (minus one) that can take counts on a +# semaphore with priority inheritance support. This may be +# set to zero if priority inheritance is disabled OR if you +# are only using semaphores as mutexes (only one holder) OR +# if no more than two threads participate using a counting +# semaphore. +# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, +# then this setting is the maximum number of higher priority +# threads (minus 1) than can be waiting for another thread +# to release a count on a semaphore. This value may be set +# to zero if no more than one thread is expected to wait for +# a semaphore. +# CONFIG_FDCLONE_DISABLE. Disable cloning of all file descriptors +# by task_create() when a new task is started. If set, all +# files/drivers will appear to be closed in the new task. +# CONFIG_FDCLONE_STDIO. Disable cloning of all but the first +# three file descriptors (stdin, stdout, stderr) by task_create() +# when a new task is started. If set, all files/drivers will +# appear to be closed in the new task except for stdin, stdout, +# and stderr. +# CONFIG_SDCLONE_DISABLE. Disable cloning of all socket +# desciptors by task_create() when a new task is started. If +# set, all sockets will appear to be closed in the new task. # CONFIG_EXAMPLE=nettest CONFIG_DEBUG=y @@ -244,6 +257,9 @@ CONFIG_MUTEX_TYPES=n CONFIG_PRIORITY_INHERITANCE=n CONFIG_SEM_PREALLOCHOLDERS=0 CONFIG_SEM_NNESTPRIO=0 +CONFIG_FDCLONE_DISABLE=n +CONFIG_FDCLONE_STDIO=n +CONFIG_SDCLONE_DISABLE=y # # The following can be used to disable categories of diff --git a/nuttx/configs/ez80f910200zco/nsh/defconfig b/nuttx/configs/ez80f910200zco/nsh/defconfig index 754d3bb8c5..7b3c564c6c 100644 --- a/nuttx/configs/ez80f910200zco/nsh/defconfig +++ b/nuttx/configs/ez80f910200zco/nsh/defconfig @@ -212,17 +212,30 @@ CONFIG_HAVE_LIBM=n # CONFIG_PRIORITY_INHERITANCE : Set to enable support for priority # inheritance on mutexes and semaphores. # CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority -# inheritance is enabled. It defines the maximum number of different -# threads (minus one) that can take counts on a semaphore with priority -# inheritance support. This may be set to zero if priority inheritance -# is disabled OR if you are only using semaphores as mutexes (only -# one holder) OR if no more than two threads participate using a -# counting semaphore. -# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, then this -# setting is the maximum number of higher priority threads (minus 1) -# than can be waiting for another thread to release a count on a -# semaphore. This value may be set to zero if no more than one -# thread is expected to wait for a semaphore. +# inheritance is enabled. It defines the maximum number of +# different threads (minus one) that can take counts on a +# semaphore with priority inheritance support. This may be +# set to zero if priority inheritance is disabled OR if you +# are only using semaphores as mutexes (only one holder) OR +# if no more than two threads participate using a counting +# semaphore. +# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, +# then this setting is the maximum number of higher priority +# threads (minus 1) than can be waiting for another thread +# to release a count on a semaphore. This value may be set +# to zero if no more than one thread is expected to wait for +# a semaphore. +# CONFIG_FDCLONE_DISABLE. Disable cloning of all file descriptors +# by task_create() when a new task is started. If set, all +# files/drivers will appear to be closed in the new task. +# CONFIG_FDCLONE_STDIO. Disable cloning of all but the first +# three file descriptors (stdin, stdout, stderr) by task_create() +# when a new task is started. If set, all files/drivers will +# appear to be closed in the new task except for stdin, stdout, +# and stderr. +# CONFIG_SDCLONE_DISABLE. Disable cloning of all socket +# desciptors by task_create() when a new task is started. If +# set, all sockets will appear to be closed in the new task. # CONFIG_EXAMPLE=nsh CONFIG_DEBUG=y @@ -244,6 +257,9 @@ CONFIG_MUTEX_TYPES=n CONFIG_PRIORITY_INHERITANCE=n CONFIG_SEM_PREALLOCHOLDERS=0 CONFIG_SEM_NNESTPRIO=0 +CONFIG_FDCLONE_DISABLE=n +CONFIG_FDCLONE_STDIO=n +CONFIG_SDCLONE_DISABLE=y # # The following can be used to disable categories of diff --git a/nuttx/configs/ez80f910200zco/ostest/defconfig b/nuttx/configs/ez80f910200zco/ostest/defconfig index 7d2d2455cf..93819afbc7 100644 --- a/nuttx/configs/ez80f910200zco/ostest/defconfig +++ b/nuttx/configs/ez80f910200zco/ostest/defconfig @@ -210,17 +210,30 @@ CONFIG_HAVE_LIBM=n # CONFIG_PRIORITY_INHERITANCE : Set to enable support for priority # inheritance on mutexes and semaphores. # CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority -# inheritance is enabled. It defines the maximum number of different -# threads (minus one) that can take counts on a semaphore with priority -# inheritance support. This may be set to zero if priority inheritance -# is disabled OR if you are only using semaphores as mutexes (only -# one holder) OR if no more than two threads participate using a -# counting semaphore. -# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, then this -# setting is the maximum number of higher priority threads (minus 1) -# than can be waiting for another thread to release a count on a -# semaphore. This value may be set to zero if no more than one -# thread is expected to wait for a semaphore. +# inheritance is enabled. It defines the maximum number of +# different threads (minus one) that can take counts on a +# semaphore with priority inheritance support. This may be +# set to zero if priority inheritance is disabled OR if you +# are only using semaphores as mutexes (only one holder) OR +# if no more than two threads participate using a counting +# semaphore. +# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, +# then this setting is the maximum number of higher priority +# threads (minus 1) than can be waiting for another thread +# to release a count on a semaphore. This value may be set +# to zero if no more than one thread is expected to wait for +# a semaphore. +# CONFIG_FDCLONE_DISABLE. Disable cloning of all file descriptors +# by task_create() when a new task is started. If set, all +# files/drivers will appear to be closed in the new task. +# CONFIG_FDCLONE_STDIO. Disable cloning of all but the first +# three file descriptors (stdin, stdout, stderr) by task_create() +# when a new task is started. If set, all files/drivers will +# appear to be closed in the new task except for stdin, stdout, +# and stderr. +# CONFIG_SDCLONE_DISABLE. Disable cloning of all socket +# desciptors by task_create() when a new task is started. If +# set, all sockets will appear to be closed in the new task. # CONFIG_EXAMPLE=ostest CONFIG_DEBUG=y @@ -241,6 +254,9 @@ CONFIG_MUTEX_TYPES=n CONFIG_PRIORITY_INHERITANCE=n CONFIG_SEM_PREALLOCHOLDERS=0 CONFIG_SEM_NNESTPRIO=0 +CONFIG_FDCLONE_DISABLE=n +CONFIG_FDCLONE_STDIO=n +CONFIG_SDCLONE_DISABLE=y # # The following can be used to disable categories of diff --git a/nuttx/configs/ez80f910200zco/poll/defconfig b/nuttx/configs/ez80f910200zco/poll/defconfig index 0997f71c35..90c5d6e780 100644 --- a/nuttx/configs/ez80f910200zco/poll/defconfig +++ b/nuttx/configs/ez80f910200zco/poll/defconfig @@ -212,17 +212,30 @@ CONFIG_HAVE_LIBM=n # CONFIG_PRIORITY_INHERITANCE : Set to enable support for priority # inheritance on mutexes and semaphores. # CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority -# inheritance is enabled. It defines the maximum number of different -# threads (minus one) that can take counts on a semaphore with priority -# inheritance support. This may be set to zero if priority inheritance -# is disabled OR if you are only using semaphores as mutexes (only -# one holder) OR if no more than two threads participate using a -# counting semaphore. -# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, then this -# setting is the maximum number of higher priority threads (minus 1) -# than can be waiting for another thread to release a count on a -# semaphore. This value may be set to zero if no more than one -# thread is expected to wait for a semaphore. +# inheritance is enabled. It defines the maximum number of +# different threads (minus one) that can take counts on a +# semaphore with priority inheritance support. This may be +# set to zero if priority inheritance is disabled OR if you +# are only using semaphores as mutexes (only one holder) OR +# if no more than two threads participate using a counting +# semaphore. +# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, +# then this setting is the maximum number of higher priority +# threads (minus 1) than can be waiting for another thread +# to release a count on a semaphore. This value may be set +# to zero if no more than one thread is expected to wait for +# a semaphore. +# CONFIG_FDCLONE_DISABLE. Disable cloning of all file descriptors +# by task_create() when a new task is started. If set, all +# files/drivers will appear to be closed in the new task. +# CONFIG_FDCLONE_STDIO. Disable cloning of all but the first +# three file descriptors (stdin, stdout, stderr) by task_create() +# when a new task is started. If set, all files/drivers will +# appear to be closed in the new task except for stdin, stdout, +# and stderr. +# CONFIG_SDCLONE_DISABLE. Disable cloning of all socket +# desciptors by task_create() when a new task is started. If +# set, all sockets will appear to be closed in the new task. # CONFIG_EXAMPLE=poll CONFIG_DEBUG=y @@ -244,6 +257,9 @@ CONFIG_MUTEX_TYPES=n CONFIG_PRIORITY_INHERITANCE=n CONFIG_SEM_PREALLOCHOLDERS=0 CONFIG_SEM_NNESTPRIO=0 +CONFIG_FDCLONE_DISABLE=n +CONFIG_FDCLONE_STDIO=n +CONFIG_SDCLONE_DISABLE=y # # The following can be used to disable categories of -- cgit v1.2.3