- Timestamp:
- Jun 23, 2005, 8:00:41 AM (20 years ago)
- Location:
- trunk/src/emx/include/sys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/sys/_types.h
-
Property cvs2svn:cvs-rev
changed from
1.9
to1.10
r2059 r2060 24 24 * SUCH DAMAGE. 25 25 * 26 * $FreeBSD: src/sys/sys/_types.h,v 1.1 4 2003/03/28 15:27:30 mikeExp $26 * $FreeBSD: src/sys/sys/_types.h,v 1.19 2004/06/19 17:58:32 marcel Exp $ 27 27 */ 28 28 29 29 /** @file 30 * FreeBSD 5. 130 * FreeBSD 5.3 31 31 * 32 32 * @changed off_t to 32bit and mode to 32bit. … … 57 57 #endif 58 58 typedef long __key_t; /* IPC key (for Sys V IPC) */ 59 typedef __int32_t __lwpid_t; /* Thread ID (a.k.a. LWP) */ 59 60 #if 1 /* bird: emx */ 60 61 typedef __int32_t __mode_t; /* permissions */ … … 64 65 typedef int __nl_item; 65 66 typedef __uint16_t __nlink_t; /* link count */ 66 #if 0 /* bird: emx */67 typedef __int32_t __off_t; /* file offset */68 #else69 67 typedef __int64_t __off_t; /* file offset */ 70 #endif71 68 typedef __int32_t __pid_t; /* process [group] */ 72 69 typedef __int64_t __rlim_t; /* resource limit (XXX not unsigned) */ … … 75 72 typedef long __suseconds_t; /* microseconds (signed) */ 76 73 typedef __int32_t __timer_t; /* timer_gettime()... */ 77 typedef __uint32_t __udev_t; /* device number */78 74 typedef __uint32_t __uid_t; 79 75 typedef unsigned int __useconds_t; /* microseconds (unsigned) */ … … 97 93 * character set plus one extra value (WEOF), and must be at least 16 bits. 98 94 */ 99 typedef int __ct_rune_t; 100 typedef __ct_rune_t __rune_t; 95 typedef int __ct_rune_t; /* arg type for ctype funcs */ 96 typedef __ct_rune_t __rune_t; /* rune_t (see above) */ 101 97 #if 0 /* bird: wchar_t is usually 2 bytes on OS/2. (might change this later!) */ 102 typedef __ct_rune_t __wchar_t; 98 typedef __ct_rune_t __wchar_t; /* wchar_t (see above) */ 103 99 #else /* bird */ 104 100 typedef unsigned short __wchar_t; 105 101 #endif /* bird */ 106 typedef __ct_rune_t __wint_t; 102 typedef __ct_rune_t __wint_t; /* wint_t (see above) */ 107 103 108 /* 109 * dev_t has differing meanings in userland and the kernel. 110 */ 111 #ifdef _KERNEL 112 struct cdev; 113 typedef struct cdev *__dev_t; 114 #else 115 typedef __udev_t __dev_t; /* device number */ 116 #endif 104 typedef __uint32_t __dev_t; /* device number */ 105 106 typedef __uint32_t __fixpt_t; /* fixed point number */ 117 107 118 108 /* … … 122 112 typedef union { 123 113 char __mbstate8[128]; 124 __int64_t _mbstateL; 114 __int64_t _mbstateL; /* for alignment */ 125 115 } __mbstate_t; 126 116 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/resource.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r2059 r2060 11 11 * notice, this list of conditions and the following disclaimer in the 12 12 * documentation and/or other materials provided with the distribution. 13 * 3. All advertising materials mentioning features or use of this software14 * must display the following acknowledgement:15 * This product includes software developed by the University of16 * California, Berkeley and its contributors.17 13 * 4. Neither the name of the University nor the names of its contributors 18 14 * may be used to endorse or promote products derived from this software … … 32 28 * 33 29 * @(#)resource.h 8.4 (Berkeley) 1/9/95 34 * $FreeBSD: src/sys/sys/resource.h,v 1. 19 2003/02/16 13:30:29 phkExp $30 * $FreeBSD: src/sys/sys/resource.h,v 1.23 2004/06/13 22:07:58 das Exp $ 35 31 */ 36 32 37 33 /** @file 38 * FreeBSD 5. 134 * FreeBSD 5.3 39 35 * @changed bird: get/setpriority takes id_t not int according to SuS. 40 36 */ … … 43 39 #define _SYS_RESOURCE_H_ 44 40 41 #include <sys/cdefs.h> 42 #include <sys/_timeval.h> 43 #include <sys/_types.h> 44 45 45 /* 46 46 * Process priority specifications to get/setpriority. … … 48 48 #define PRIO_MIN -20 49 49 #define PRIO_MAX 20 50 #ifdef _KERNEL51 #define PRIO_TOTAL (PRIO_MAX - PRIO_MIN)52 #endif /* _KERNEL */53 50 54 51 #define PRIO_PROCESS 0 … … 98 95 #define RLIMIT_SBSIZE 9 /* maximum size of all socket buffers */ 99 96 #define RLIMIT_VMEM 10 /* virtual process size (inclusive of mmap) */ 97 #define RLIMIT_AS RLIMIT_VMEM /* standard name for RLIMIT_VMEM */ 100 98 101 99 #define RLIM_NLIMITS 11 /* number of resource limits */ 102 100 103 101 #define RLIM_INFINITY ((rlim_t)(((u_quad_t)1 << 63) - 1)) 102 /* XXX Missing: RLIM_SAVED_MAX, RLIM_SAVED_CUR */ 104 103 105 104 … … 124 123 #endif 125 124 126 struct orlimit { 127 int32_t rlim_cur; /* current (soft) limit */ 128 int32_t rlim_max; /* maximum value for rlim_cur */ 129 }; 125 #ifndef _RLIM_T_DECLARED 126 typedef __rlim_t rlim_t; 127 #define _RLIM_T_DECLARED 128 #endif 130 129 131 130 struct rlimit { … … 134 133 }; 135 134 136 /* Load average structure. */ 135 #if __BSD_VISIBLE 136 137 struct orlimit { 138 __int32_t rlim_cur; /* current (soft) limit */ 139 __int32_t rlim_max; /* maximum value for rlim_cur */ 140 }; 141 137 142 struct loadavg { 138 fixpt_t ldavg[3];139 long fscale;143 __fixpt_t ldavg[3]; 144 long fscale; 140 145 }; 141 146 … … 147 152 #define CPUSTATES 5 148 153 154 #endif /* __BSD_VISIBLE */ 155 149 156 #ifdef _KERNEL 150 157 extern struct loadavg averunnable; 151 158 extern long cp_time[CPUSTATES]; 152 159 153 int dosetrlimit(struct thread *, u_int, struct rlimit *);160 int kern_setrlimit(struct thread *, u_int, struct rlimit *); 154 161 155 162 #else 156 #include <sys/cdefs.h>157 163 158 164 __BEGIN_DECLS 165 /* XXX 2nd arg to [gs]etpriority() should be an id_t */ 159 166 int getpriority(int, /*int*/ id_t); /* bird: SuS uses id_t */ 160 167 int getrlimit(int, struct rlimit *); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/stat.h
-
Property cvs2svn:cvs-rev
changed from
1.10
to1.11
r2059 r2060 16 16 * notice, this list of conditions and the following disclaimer in the 17 17 * documentation and/or other materials provided with the distribution. 18 * 3. All advertising materials mentioning features or use of this software19 * must display the following acknowledgement:20 * This product includes software developed by the University of21 * California, Berkeley and its contributors.22 18 * 4. Neither the name of the University nor the names of its contributors 23 19 * may be used to endorse or promote products derived from this software … … 37 33 * 38 34 * @(#)stat.h 8.12 (Berkeley) 6/16/95 39 * $FreeBSD: src/sys/sys/stat.h,v 1. 37 2003/05/22 17:07:57 mikeExp $35 * $FreeBSD: src/sys/sys/stat.h,v 1.40 2004/06/17 17:16:52 phk Exp $ 40 36 */ 41 37 42 38 /** @file 43 * FreeBSD 5. 139 * FreeBSD 5.3 44 40 * @changed bird: EMX isms and hid the BSD specific structs and related stuff. 45 41 * @changed bird: No UF_ and SF_ because we ain't got any st_flags. … … 140 136 141 137 struct stat { 142 __ udev_tst_dev; /* inode's device */138 __dev_t st_dev; /* inode's device */ 143 139 ino_t st_ino; /* inode's number */ 144 140 mode_t st_mode; /* inode protection mode */ … … 146 142 uid_t st_uid; /* user ID of the file's owner */ 147 143 gid_t st_gid; /* group ID of the file's group */ 148 __ udev_tst_rdev; /* device type */144 __dev_t st_rdev; /* device type */ 149 145 #if 1 /* bird: emx */ 150 146 time_t st_atime; … … 199 195 #if __BSD_VISIBLE 200 196 struct nstat { 201 __ udev_tst_dev; /* inode's device */197 __dev_t st_dev; /* inode's device */ 202 198 ino_t st_ino; /* inode's number */ 203 199 __uint32_t st_mode; /* inode protection mode */ … … 205 201 uid_t st_uid; /* user ID of the file's owner */ 206 202 gid_t st_gid; /* group ID of the file's group */ 207 __ udev_tst_rdev; /* device type */203 __dev_t st_rdev; /* device type */ 208 204 struct timespec st_atimespec; /* time of last access */ 209 205 struct timespec st_mtimespec; /* time of last data modification */ … … 370 366 371 367 #endif /* !_SYS_STAT_H_ */ 372 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/types.h
-
Property cvs2svn:cvs-rev
changed from
1.10
to1.11
r2059 r2060 16 16 * notice, this list of conditions and the following disclaimer in the 17 17 * documentation and/or other materials provided with the distribution. 18 * 3. All advertising materials mentioning features or use of this software19 * must display the following acknowledgement:20 * This product includes software developed by the University of21 * California, Berkeley and its contributors.22 18 * 4. Neither the name of the University nor the names of its contributors 23 19 * may be used to endorse or promote products derived from this software … … 37 33 * 38 34 * @(#)types.h 8.6 (Berkeley) 2/19/95 39 * $FreeBSD: src/sys/sys/types.h,v 1. 83 2003/03/28 15:27:30 mikeExp $35 * $FreeBSD: src/sys/sys/types.h,v 1.90 2004/06/19 17:58:32 marcel Exp $ 40 36 */ 41 37 42 38 /** @file 43 * FreeBSD 5. 139 * FreeBSD 5.3 44 40 * 45 41 * @changed bird: Some EMX defines and a bit of toolkit pollution. … … 64 60 typedef unsigned int u_int; 65 61 typedef unsigned long u_long; 62 #ifndef _KERNEL 66 63 typedef unsigned short ushort; /* Sys V compatibility */ 67 64 typedef unsigned int uint; /* Sys V compatibility */ 65 #endif 68 66 #endif 69 67 … … 154 152 #endif 155 153 156 typedef __ uint32_t fixpt_t; /* fixed point number */154 typedef __fixpt_t fixpt_t; /* fixed point number */ 157 155 158 156 #ifndef _FSBLKCNT_T_DECLARED /* for statvfs() */ … … 194 192 #endif 195 193 194 #ifndef _LWPID_T_DECLARED 195 typedef __lwpid_t lwpid_t; /* Thread ID (a.k.a. LWP) */ 196 #define _LWPID_T_DECLARED 197 #endif 198 196 199 #ifndef _MODE_T_DECLARED 197 200 typedef __mode_t mode_t; /* permissions */ … … 254 257 255 258 typedef __u_register_t u_register_t; 256 typedef __udev_t udev_t; /* device number */257 259 258 260 #if !defined(_UID_T_DECLARED) && !defined(_UID_T) /* bird: emx */ … … 275 277 #ifdef _KERNEL 276 278 typedef int boolean_t; 279 typedef __cpumask_t cpumask_t; 277 280 typedef __intfptr_t intfptr_t; 278 281 … … 312 315 #define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */ 313 316 #define minor(x) ((int)((x)&0xffff00ff)) /* minor number */ 317 #endif /* !_KERNEL */ 318 314 319 #define makedev(x,y) ((dev_t)(((x) << 8) | (y))) /* create dev_t */ 315 #endif /* !_KERNEL */316 320 317 321 /* -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.