Changeset 2730


Ignore:
Timestamp:
Jul 18, 2006, 2:22:04 AM (19 years ago)
Author:
bird
Message:

Moved getpid() down to the frontend using fib.h.

Location:
trunk/libc/src
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/libc/src/kNIX.os2/Makefile.kmk

    r2717 r2730  
    121121    $(PATH_LIBC_SRC)/kNIX.os2/fs.c \
    122122    $(PATH_LIBC_SRC)/kNIX.os2/fsync.c \
    123     $(PATH_LIBC_SRC)/kNIX.os2/getpid.c \
    124123    $(PATH_LIBC_SRC)/kNIX.os2/getppid.c \
    125124    $(PATH_LIBC_SRC)/kNIX.os2/heap.c \
  • trunk/libc/src/libc/process/Makefile.kmk

    r2728 r2730  
    4646    $(PATH_LIBC_SRC)/libc/process/fork.c \
    4747    $(PATH_LIBC_SRC)/libc/process/getitimer.c \
     48    $(PATH_LIBC_SRC)/libc/process/getpid.c \
    4849    $(PATH_LIBC_SRC)/libc/process/getpriority.c \
    4950    $(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 */
    226
     27
     28/*******************************************************************************
     29*   Header Files                                                               *
     30*******************************************************************************/
    331#include "libc-alias.h"
    432#include <unistd.h>
    5 #include <os2emx.h>
    6 #include "syscalls.h"
     33#include <process.h>
     34#include <klibc/fib.h>
    735
    8 int _STD(getpid) (void)
     36
     37/**
     38 * Gets the process id of the current process.
     39 *
     40 * @returns process id.
     41 */
     42int _STD(getpid)(void)
    943{
    10   return _sys_pid;
     44    return fibGetPid();
    1145}
     46
Note: See TracChangeset for help on using the changeset viewer.