| | 4146 | |
| | 4147 | = 11/25 = |
| | 4148 | == additional test for new_debug syscall == |
| | 4149 | * new_debug-err.c |
| | 4150 | {{{#!cc |
| | 4151 | #include <stdio.h> |
| | 4152 | #include <time.h> |
| | 4153 | #include <asm/new_debug.h> |
| | 4154 | |
| | 4155 | int main (int argc, char *argv[]) { |
| | 4156 | int i; |
| | 4157 | const struct timespec *ts = ""; |
| | 4158 | |
| | 4159 | if (new_debug(NULL, NULL)) { |
| | 4160 | perror(""); |
| | 4161 | } |
| | 4162 | if (new_debug("", ts)) { |
| | 4163 | perror(""); |
| | 4164 | } |
| | 4165 | |
| | 4166 | return 0; |
| | 4167 | } |
| | 4168 | }}} |
| | 4169 | |
| | 4170 | * s0711489@ubuntu-lucid64:~$ gcc -I /lib/modules/2.6.35.14/build/arch/x86/include/ new_debug-err.c |
| | 4171 | {{{ |
| | 4172 | new_debug-err.c: In function ‘main’: |
| | 4173 | new_debug-err.c:7: warning: initialization from incompatible pointer type |
| | 4174 | }}} |
| | 4175 | * s0711489@ubuntu-lucid64:~$ ./a.out |
| | 4176 | {{{ |
| | 4177 | Invalid argument |
| | 4178 | Bad address |
| | 4179 | }}} |