diff options
author | David Yuste <david.yuste@inria.fr> | 2011-06-07 08:46:45 +0000 |
---|---|---|
committer | David Yuste <david.yuste@inria.fr> | 2011-06-07 08:46:45 +0000 |
commit | 4dff9ec392dfbe9a6db0ee0d11139515cb85f948 (patch) | |
tree | 0c07f0882430ac87ca9e3651ead4a6018c3d0c20 | |
parent | cb9809d42185fb7326ffbe39a0295b8760c7db04 (diff) |
Added src/getpid.cst/cli-be
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/st/cli-be@174736 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstd/src/getpid.c | 35 |
1 files changed, 35 insertions, 0 deletions
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 <sys/types.h> + +LIBSTD_LPROTO_IMPL(pid_t, getpid, void) +{ + return (LIBSTD_HNAME(getpid) ()); +} + |