mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard.
This commit is contained in:
parent
ab7c5a7d4e
commit
e806097c70
550 changed files with 664 additions and 2928 deletions
|
|
@ -6,7 +6,7 @@
|
|||
menuconfig SYSTEM_STACKMONITOR
|
||||
tristate "Stack Monitor"
|
||||
default n
|
||||
depends on FS_PROCFS && !_FS_PROCFS_EXCLUDE_PROCESS && STACK_COLORATION
|
||||
depends on FS_PROCFS && !FS_PROCFS_EXCLUDE_PROCESS && STACK_COLORATION
|
||||
---help---
|
||||
If the stack coloration feature is enabled (STACK_COLORATION) this
|
||||
option will select the Stack Monitor. The stack monitor is a daemon
|
||||
|
|
|
|||
|
|
@ -37,16 +37,11 @@ include $(TOPDIR)/Make.defs
|
|||
|
||||
# Stack Monitor Application
|
||||
|
||||
PROGNAME = stackmonitor_start stackmonitor_stop
|
||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
||||
STACKSIZE = 2048
|
||||
MODULE = $(CONFIG_SYSTEM_STACKMONITOR)
|
||||
|
||||
MAINSRC = stackmonitor.c
|
||||
|
||||
CONFIG_XYZ_PROGNAME ?= stackmon$(EXEEXT)
|
||||
PROGNAME = $(CONFIG_XYZ_PROGNAME)
|
||||
|
||||
APPNAME = stackmonitor_start stackmonitor_stop
|
||||
|
||||
MODULE = CONFIG_SYSTEM_STACKMONITOR
|
||||
|
||||
include $(APPDIR)/Application.mk
|
||||
|
|
|
|||
|
|
@ -418,7 +418,7 @@ static int stackmonitor_daemon(int argc, char **argv)
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
int stackmonitor_start_main(int argc, char **argv)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
/* Has the monitor already started? */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue