summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getpid.c
blob: 6a6a9e12954a5a5c34a80975d33011e71822b6af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* vi: set sw=4 ts=4: */
/*
 * getpid() for uClibc
 *
 * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
 *
 * GNU Library General Public License (LGPL) version 2 or later.
 */

#include "syscalls.h"
#include <unistd.h>

#if defined (__alpha__)
#define __NR___getpid __NR_getxpid
#endif
#define __NR___getpid __NR_getpid
attribute_hidden _syscall0(pid_t, __getpid);
strong_alias(__getpid, getpid)
/* not used in libpthread */
/* weak_alias(__getpid, __libc_getpid) */