summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/syslog/syslog.c
diff options
context:
space:
mode:
authorABR290B <abhimanyuraghuvanshi29@gmail.com>2018-12-08 11:42:24 -0600
committerJoel Sherrill <joel@rtems.org>2018-12-08 11:42:24 -0600
commit15d806b0f9304782d49217d00fcdcee667b36686 (patch)
treed1ad26755ce82765e63973039c5351691af952a5 /testsuites/psxtests/psxhdrs/syslog/syslog.c
parentpsxhdrs: added POSIX API Signature Compliance Tests for libgen.h (GCI 2018) (diff)
downloadrtems-15d806b0f9304782d49217d00fcdcee667b36686.tar.bz2
psxhdrs: POSIX Signature Test for syslog.h (GCI2018)
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxhdrs/syslog/syslog.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/syslog/syslog.c b/testsuites/psxtests/psxhdrs/syslog/syslog.c
new file mode 100644
index 0000000000..8e54d2ff92
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/syslog/syslog.c
@@ -0,0 +1,34 @@
+/**
+ * @file
+ * @brief syslog() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Abhimanyu Raghuvanshi
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <syslog.h>
+
+int test(void);
+
+int test(void)
+{
+ syslog( LOG_USER, "A sample message" );
+ return 0;
+}