Changeset 2730
- Timestamp:
- Jul 18, 2006, 2:22:04 AM (19 years ago)
- Location:
- trunk/libc/src
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/src/kNIX.os2/Makefile.kmk
r2717 r2730 121 121 $(PATH_LIBC_SRC)/kNIX.os2/fs.c \ 122 122 $(PATH_LIBC_SRC)/kNIX.os2/fsync.c \ 123 $(PATH_LIBC_SRC)/kNIX.os2/getpid.c \124 123 $(PATH_LIBC_SRC)/kNIX.os2/getppid.c \ 125 124 $(PATH_LIBC_SRC)/kNIX.os2/heap.c \ -
trunk/libc/src/libc/process/Makefile.kmk
r2728 r2730 46 46 $(PATH_LIBC_SRC)/libc/process/fork.c \ 47 47 $(PATH_LIBC_SRC)/libc/process/getitimer.c \ 48 $(PATH_LIBC_SRC)/libc/process/getpid.c \ 48 49 $(PATH_LIBC_SRC)/libc/process/getpriority.c \ 49 50 $(PATH_LIBC_SRC)/libc/process/kill.c \ -
trunk/libc/src/libc/process/getpid.c
r2722 r2730 1 /* sys/getpid.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 1 /* $Id: $ */ 2 /** @file 3 * 4 * LIBC - getpid(). 5 * 6 * Copyright (c) 2006 knut st. osmundsen <bird@innotek.de> 7 * 8 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 2 of the License, or 14 * (at your option) any later version. 15 * 16 * kLIBC is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with kLIBC; if not, write to the Free Software 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 * 25 */ 2 26 27 28 /******************************************************************************* 29 * Header Files * 30 *******************************************************************************/ 3 31 #include "libc-alias.h" 4 32 #include <unistd.h> 5 #include < os2emx.h>6 #include "syscalls.h"33 #include <process.h> 34 #include <klibc/fib.h> 7 35 8 int _STD(getpid) (void) 36 37 /** 38 * Gets the process id of the current process. 39 * 40 * @returns process id. 41 */ 42 int _STD(getpid)(void) 9 43 { 10 return _sys_pid;44 return fibGetPid(); 11 45 } 46
Note:
See TracChangeset
for help on using the changeset viewer.