VirtualBox

Changeset 385 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 27, 2007 8:05:44 PM (18 years ago)
Author:
vboxsync
Message:

RTProcSelf, RTR0ProcHandleSelf, RTR0PROCESS.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/process.h

    r204 r385  
    2424#include <iprt/cdefs.h>
    2525#include <iprt/types.h>
    26 
    27 #ifndef IN_RING3
    28 # error "The RTProc APIs are Ring-3 only!"
    29 #endif
    30 
    3126
    3227__BEGIN_DECLS
     
    8580
    8681
     82/**
     83 * Get the current process identifier.
     84 *
     85 * @returns Process identifier.
     86 */
     87RTDECL(RTPROCESS) RTProcSelf(void);
     88
     89
     90#ifdef IN_RING0
     91/**
     92 * Get the current process handle.
     93 *
     94 * @returns Ring-0 process handle.
     95 */
     96RTR0DECL(RTR0PROCESS) RTR0ProcHandleSelf(void);
     97#endif
     98
    8799
    88100#ifdef IN_RING3
     
    102114 */
    103115RTR3DECL(RTPROCPRIORITY) RTProcGetPriority(void);
    104 
    105 /**
    106  * Get the identifier for the current process.
    107  *
    108  * @returns Process identifier.
    109  */
    110 RTR3DECL(RTPROCESS) RTProcSelf(void);
    111116
    112117/**
     
    215220RTR3DECL(char *) RTProcGetExecutableName(char *pszExecName, size_t cchExecName);
    216221
     222#endif /* IN_RING3 */
     223
     224/** @} */
     225
     226__END_DECLS
     227
    217228#endif
    218229
    219 /** @} */
    220 
    221 __END_DECLS
    222 
    223 #endif
    224 
  • trunk/include/iprt/types.h

    r331 r385  
    4040
    4141# if defined(__LINUX__) && defined(__KERNEL__)
    42     /* 
     42    /*
    4343     * Kludge for the linux kernel:
    4444     *   1. sys/types.h doesn't mix with the kernel.
    45      *   2. Starting with 2.6.19 linux/types.h typedefs bool and linux/stddef.h 
     45     *   2. Starting with 2.6.19 linux/types.h typedefs bool and linux/stddef.h
    4646     *      declares false and true as enum values.
    4747     * We work around these issues here and nowhere else.
     
    119119# else
    120120typedef unsigned char bool;
    121 # endif 
     121# endif
    122122# ifndef true
    123123#  define true  (1)
     
    905905#define NIL_RTNATIVETHREAD                          (~(RTNATIVETHREAD)0)
    906906
    907 /** Process handle. */
     907/** Process identifier. */
    908908typedef RTHCUINTPTR                                 RTPROCESS;
    909 /** Pointer to a process handle. */
     909/** Pointer to a process identifier. */
    910910typedef RTPROCESS                                  *PRTPROCESS;
    911 /** Nil process handle. */
     911/** Nil process identifier. */
    912912#define NIL_RTPROCESS                               (~(RTPROCESS)0)
     913
     914/** Process ring-0 handle. */
     915typedef RTR0UINTPTR                                 RTR0PROCESS;
     916/** Pointer to a ring-0 process handle. */
     917typedef RTR0PROCESS                                *PRTR0PROCESS;
     918/** Nil ring-0 process handle. */
     919#define NIL_RTR0PROCESS                             (~(RTR0PROCESS)0)
    913920
    914921/** @typedef RTSEMEVENT
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette