From 4dff9ec392dfbe9a6db0ee0d11139515cb85f948 Mon Sep 17 00:00:00 2001 From: David Yuste Date: Tue, 7 Jun 2011 08:46:45 +0000 Subject: Added src/getpid.c git-svn-id: https://gcc.gnu.org/svn/gcc/branches/st/cli-be@174736 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstd/src/getpid.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 libstd/src/getpid.c diff --git a/libstd/src/getpid.c b/libstd/src/getpid.c new file mode 100644 index 00000000000..1466030df67 --- /dev/null +++ b/libstd/src/getpid.c @@ -0,0 +1,35 @@ +/* + + Copyright (C) 2007-2008 Free Software Foundation, Inc. + Contributed by STMicroelectronics + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING. If not, write to the Free +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. */ + +/* If we are compiling this, we are sure this is to build C-runtime*/ +#define __LIBSTD_CRT_BUILD + +#include <__cdefs.h> + +#include <__host.h> +#include + +LIBSTD_LPROTO_IMPL(pid_t, getpid, void) +{ + return (LIBSTD_HNAME(getpid) ()); +} + -- cgit v1.2.3