search for: mybcopy

Displaying 1 result from an estimated 1 matches for "mybcopy".

Did you mean: my_copy
1997 Oct 08
5
Malicious Linux modules
...); int myatoi(char *str) { int res = 0; int mul = 1; char *ptr; for(ptr = str + strlen(str) - 1; ptr >= str; ptr--) { if(*ptr < ''0'' || *ptr > ''9'') return(-1); res += (*ptr - ''0'') * mul; mul *= 10; } return(res); } void mybcopy(char *src, char *dst, unsigned int num) { while(num--) *(dst++) = *(src++); } int mystrcmp(char *str1, char *str2) { while(*str1 && *str2) if(*(str1++) != *(str2++)) return(-1); return(0); } struct task_struct *find_task(pid_t pid) { struct task_struct *task = current; do {...