diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2010-10-09 02:31:22 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2010-10-09 02:31:22 +0000 |
commit | 4606798ea008ab8d3dcec4757198ac0294b46a6a (patch) | |
tree | 56d29e479378a315f9eeacff338571174681ca44 /libgloss/tic6x/getpid.c | |
parent | cab874029f570d61eefbc8cbeb4fb74cc57a9457 (diff) | |
download | cygnal-4606798ea008ab8d3dcec4757198ac0294b46a6a.tar.gz cygnal-4606798ea008ab8d3dcec4757198ac0294b46a6a.tar.bz2 cygnal-4606798ea008ab8d3dcec4757198ac0294b46a6a.zip |
2010-10-08 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* configure.in: Handle tic6x targets.
* configure: Regenerate.
* tic6x/Makefile.in, tic6x/configure.in, tic6x/crt0.S,
tic6x/getpid.c, tic6x/kill.c, tic6x/sbrk.c, tic6x/syscalls.c: New.
* tic6x/configure: New (generated).
Diffstat (limited to 'libgloss/tic6x/getpid.c')
-rw-r--r-- | libgloss/tic6x/getpid.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libgloss/tic6x/getpid.c b/libgloss/tic6x/getpid.c new file mode 100644 index 000000000..3c1a7b8b8 --- /dev/null +++ b/libgloss/tic6x/getpid.c @@ -0,0 +1,26 @@ +/* getpid.c -- get the current process id. + * + * Copyright (c) 1995 Cygnus Support + * + * The authors hereby grant permission to use, copy, modify, distribute, + * and license this software and its documentation for any purpose, provided + * that existing copyright notices are retained in all copies and that this + * notice is included verbatim in any distributions. No written agreement, + * license, or royalty fee is required for any of the authorized uses. + * Modifications to this software may be copyrighted by their authors + * and need not follow the licensing terms described here, provided that + * the new terms are clearly indicated on the first page of each file where + * they apply. + */ +#include <_ansi.h> +#define __MYPID 1 + +/* + * getpid -- only one process, so just return 1. + */ +int +_DEFUN (getpid, (), + ) +{ + return __MYPID; +} |