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:
Xiang Xiao 2019-10-06 06:14:39 -06:00 committed by Gregory Nutt
parent ab7c5a7d4e
commit e806097c70
550 changed files with 664 additions and 2928 deletions

View file

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

View file

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

View file

@ -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? */