Changeset 385 in vbox for trunk/include/iprt
- Timestamp:
- Jan 27, 2007 8:05:44 PM (18 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/process.h
r204 r385 24 24 #include <iprt/cdefs.h> 25 25 #include <iprt/types.h> 26 27 #ifndef IN_RING328 # error "The RTProc APIs are Ring-3 only!"29 #endif30 31 26 32 27 __BEGIN_DECLS … … 85 80 86 81 82 /** 83 * Get the current process identifier. 84 * 85 * @returns Process identifier. 86 */ 87 RTDECL(RTPROCESS) RTProcSelf(void); 88 89 90 #ifdef IN_RING0 91 /** 92 * Get the current process handle. 93 * 94 * @returns Ring-0 process handle. 95 */ 96 RTR0DECL(RTR0PROCESS) RTR0ProcHandleSelf(void); 97 #endif 98 87 99 88 100 #ifdef IN_RING3 … … 102 114 */ 103 115 RTR3DECL(RTPROCPRIORITY) RTProcGetPriority(void); 104 105 /**106 * Get the identifier for the current process.107 *108 * @returns Process identifier.109 */110 RTR3DECL(RTPROCESS) RTProcSelf(void);111 116 112 117 /** … … 215 220 RTR3DECL(char *) RTProcGetExecutableName(char *pszExecName, size_t cchExecName); 216 221 222 #endif /* IN_RING3 */ 223 224 /** @} */ 225 226 __END_DECLS 227 217 228 #endif 218 229 219 /** @} */220 221 __END_DECLS222 223 #endif224 -
trunk/include/iprt/types.h
r331 r385 40 40 41 41 # if defined(__LINUX__) && defined(__KERNEL__) 42 /* 42 /* 43 43 * Kludge for the linux kernel: 44 44 * 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 46 46 * declares false and true as enum values. 47 47 * We work around these issues here and nowhere else. … … 119 119 # else 120 120 typedef unsigned char bool; 121 # endif 121 # endif 122 122 # ifndef true 123 123 # define true (1) … … 905 905 #define NIL_RTNATIVETHREAD (~(RTNATIVETHREAD)0) 906 906 907 /** Process handle. */907 /** Process identifier. */ 908 908 typedef RTHCUINTPTR RTPROCESS; 909 /** Pointer to a process handle. */909 /** Pointer to a process identifier. */ 910 910 typedef RTPROCESS *PRTPROCESS; 911 /** Nil process handle. */911 /** Nil process identifier. */ 912 912 #define NIL_RTPROCESS (~(RTPROCESS)0) 913 914 /** Process ring-0 handle. */ 915 typedef RTR0UINTPTR RTR0PROCESS; 916 /** Pointer to a ring-0 process handle. */ 917 typedef RTR0PROCESS *PRTR0PROCESS; 918 /** Nil ring-0 process handle. */ 919 #define NIL_RTR0PROCESS (~(RTR0PROCESS)0) 913 920 914 921 /** @typedef RTSEMEVENT
Note:
See TracChangeset
for help on using the changeset viewer.