OLD | NEW |
1 /* Machine-independent support for SVR4 /proc (process file system) | 1 /* Machine-independent support for SVR4 /proc (process file system) |
2 | 2 |
3 Copyright (C) 1999-2000, 2004, 2007-2012 Free Software Foundation, | 3 Copyright (C) 1999-2000, 2004, 2007-2012 Free Software Foundation, |
4 Inc. | 4 Inc. |
5 | 5 |
6 Written by Michael Snyder at Cygnus Solutions. | 6 Written by Michael Snyder at Cygnus Solutions. |
7 Based on work by Fred Fish, Stu Grossman, Geoff Noer, and others. | 7 Based on work by Fred Fish, Stu Grossman, Geoff Noer, and others. |
8 | 8 |
9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include <stdio.h> | 38 #include <stdio.h> |
39 #include <sys/types.h> | 39 #include <sys/types.h> |
40 #include <sys/procfs.h> | 40 #include <sys/procfs.h> |
41 #ifdef HAVE_SYS_SYSCALL_H | 41 #ifdef HAVE_SYS_SYSCALL_H |
42 #include <sys/syscall.h> | 42 #include <sys/syscall.h> |
43 #endif | 43 #endif |
44 #ifdef HAVE_SYS_FAULT_H | 44 #ifdef HAVE_SYS_FAULT_H |
45 #include <sys/fault.h> | 45 #include <sys/fault.h> |
46 #endif | 46 #endif |
47 | 47 |
| 48 #include "proc-utils.h" |
| 49 |
48 /* Much of the information used in the /proc interface, particularly | 50 /* Much of the information used in the /proc interface, particularly |
49 for printing status information, is kept as tables of structures of | 51 for printing status information, is kept as tables of structures of |
50 the following form. These tables can be used to map numeric values | 52 the following form. These tables can be used to map numeric values |
51 to their symbolic names and to a string that describes their | 53 to their symbolic names and to a string that describes their |
52 specific use. */ | 54 specific use. */ |
53 | 55 |
54 struct trans | 56 struct trans |
55 { | 57 { |
56 int value; /* The numeric value. */ | 58 int value; /* The numeric value. */ |
57 char *name; /* The equivalent symbolic value. */ | 59 char *name; /* The equivalent symbolic value. */ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 #ifdef SYS_lwpsuspend | 97 #ifdef SYS_lwpsuspend |
96 #define SYS_lwp_suspend SYS_lwpsuspend | 98 #define SYS_lwp_suspend SYS_lwpsuspend |
97 #endif | 99 #endif |
98 | 100 |
99 #ifdef SYS_lwpcontinue | 101 #ifdef SYS_lwpcontinue |
100 #define SYS_lwp_continue SYS_lwpcontinue | 102 #define SYS_lwp_continue SYS_lwpcontinue |
101 #endif | 103 #endif |
102 | 104 |
103 | 105 |
104 /* Syscall translation table. */ | 106 /* Syscall translation table. */ |
error: old chunk mismatch |
None
OLD | NEW |