Changeset 2904


Ignore:
Timestamp:
Dec 25, 2006, 2:27:07 PM (19 years ago)
Author:
bird
Message:

made filehandles.c compile.

Location:
trunk/libc/src/kNIX
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/src/kNIX/filehandles.c

    r2805 r2904  
    12451245int __libc_FHImportFile(uintptr_t hNative, int fh, __LIBC_PFH *ppFH)
    12461246{
    1247     LIBCLOG_ENTER("hNative=%p fh=%d ppFH=%p\n", hNative, fh, ppFH);
     1247    LIBCLOG_ENTER("hNative=%tx fh=%d ppFH=%p\n", hNative, fh, ppFH);
    12481248    int rc = _fmutex_request(&gmtx, 0);
    12491249    if (rc)
     
    13521352int __libc_FHSetFlags(__LIBC_PFH pFH, unsigned fFlags)
    13531353{
    1354     LIBCLOG_ENTER("pFH=%p fFlags=%#x\n", (void *)pFH, fh, fFlags);
     1354    LIBCLOG_ENTER("pFH=%p fFlags=%#x\n", (void *)pFH, fFlags);
    13551355
    13561356    LIBC_ASSERT(((fFlags & O_NOINHERIT) != 0) == ((fFlags & (FD_CLOEXEC << __LIBC_FH_FDFLAGS_SHIFT)) != 0));
     
    14651465                            if (pFH->pOps && pFH->pOps->pfnForkParent)
    14661466                            {
    1467                                 rc = pFH->pOps->pfnForkParent(pFH, iFH, pForkHandle, __LIBC_FORK_OP_EXEC_PARENT);
     1467                                rc = pFH->pOps->pfnForkParent(pFH, pForkHandle, __LIBC_FORK_OP_EXEC_PARENT);
    14681468                                if (rc)
    14691469                                {
     
    15241524                    if (pFH->pOps && pFH->pOps->pfnForkParent)
    15251525                    {
    1526                         rc = pFH->pOps->pfnForkParent(pFH, iFH, pForkHandle, __LIBC_FORK_OP_FORK_PARENT);
     1526                        rc = pFH->pOps->pfnForkParent(pFH, pForkHandle, __LIBC_FORK_OP_FORK_PARENT);
    15271527                        if (rc)
    15281528                        {
     
    15881588                    if (pFH->pOps && pFH->pOps->pfnForkChild)
    15891589                    {
    1590                         rc = pFH->pOps->pfnForkChild(pFH, iFH, pForkHandle, __LIBC_FORK_OP_FORK_CHILD);
     1590                        rc = pFH->pOps->pfnForkChild(pFH, pForkHandle, __LIBC_FORK_OP_FORK_CHILD);
    15911591                        if (rc)
    15921592                        {
  • trunk/libc/src/kNIX/kNIX.h

    r2903 r2904  
    5050#include <sys/time.h>
    5151#include <sys/types.h>
     52#include <sys/syslimits.h>
    5253#include <klibc/io.h>
    5354#include <klibc/umalloc.h>
Note: See TracChangeset for help on using the changeset viewer.