153
« on: December 15, 2010, 05:19:17 pm »
Here are standard declarations for os.h that are missing but in the idc files.
Some of these functions are completely untested, but here are the declarations anyway.
Some of these are already in os.h .
read_unaligned_longword _SYSCALL1(size_t, read_unaligned_longword, void *)
read_unaligned_word _SYSCALL1(int, read_unaligned_word, void *)
isalnum _SYSCALL1(int, isalnum, int)
isalpha _SYSCALL1(int, isalpha, int)
isascii _SYSCALL1(int, isascii, int)
isdigit _SYSCALL1(int, isdigit, int)
islower _SYSCALL1(int, islower, int)
isprint _SYSCALL1(int, isprint, int)
isspace _SYSCALL1(int, isspace, int)
isupper _SYSCALL1(int, isupper, int)
isxdigit _SYSCALL1(int, isxdigit, int)
toupper _SYSCALL1(int, toupper, int)
calloc _SYSCALL2(void*, calloc, size_t, size_t)
free _SYSCALL1(void, free, void *)
malloc _SYSCALL1(void*, malloc, size_t)
realloc _SYSCALL2(void*, realloc, void *, size_t)
fprintf ?
printf _SYSCALLVAR(int, __attribute__((__format__(__printf__,1,2))), printf, __attribute__((unused)) const char *format, ...)
sprintf _SYSCALLVAR(int, __attribute__((__format__(__printf__,2,3))), sprintf, __attribute__((unused)) char *s, __attribute__((unused)) const char *format, ...)
vfprintf_limit256 ?
vsprintf _SYSCALL3(int, vsprintf, char *, const char *, va_list);
vsprintf_limit256 ?
fclose _SYSCALL1(int, fclose, FILE *)
fgetc _SYSCALL1(int, fgetc, FILE *)
fgets _SYSCALL3(char *, fgets, char * , int , FILE * )
fopen _SYSCALL2(FILE*, fopen, const char *, const char *)
fread _SYSCALL4(size_t, fread, void *, size_t, size_t, FILE *)
fseek _SYSCALL3(int, fseek, FILE *, long int, int)
fwrite _SYSCALL4(size_t, fwrite, const void *, size_t, size_t, FILE *)
putc _SYSCALL1(int, putc, int)
puts _SYSCALL1(int, puts, const char *)
atoi _SYSCALL1(int, atoi, const char *)
memcmp _SYSCALL3(int, memcmp, const void *, const void *, size_t)
memcpy _SYSCALL3(void*, memcpy, void *, const void *, size_t)
memmove _SYSCALL3(void*, memmove, void *, const void *, size_t)
memset _SYSCALL3(void*, memset, void *, int, size_t)
strchr _SYSCALL2(char *, strchr, const char *, int)
strcmp _SYSCALL2(int, strcmp, const char *, const char *)
strcpy _SYSCALL2(char *, strcpy, char *, const char *)
strlen _SYSCALL1(int, strlen, const char *)
strncat _SYSCALL3(char *, strncat, char *, char *, size_t)
strncmp _SYSCALL3(char *, strncmp,const char *,const char *, size_t)
strncpy _SYSCALL3(char *, strncpy, char *,const char *, size_t)
strpbrk _SYSCALL2(char *, strpbrk, const char *, const char *)
strrchr _SYSCALL2(const char*, strrchr, const char *, int);
memrev ?
atof _SYSCALL1(double, atof, char *)
_fputc _SYSCALL2(int, fputc, int, FILE *);
chdir _SYSCALL1(int, chdir, char*)
close _SYSCALL1(int, close, int)
mkdir _SYSCALL2(int, mkdir, const char*, int)
open _SYSCALL3(int, open, const char*, int,int)
read _SYSCALL4(size_t, read, int, void *,size_t,off_t)
rename _SYSCALL2(int, rename, const char*, const char*)
rmdir _SYSCALL1(int, rmdir, const char *)
stat _SYSCALL2(int, stat, const char *, struct stat *)
unlink _SYSCALL1(int, unlink, const char *)
write _SYSCALL4(size_t, write, int, void *,size_t,off_t)
NU_Make_Dir _SYSCALL1(int, NU_Make_Dir, char *)
NU_Remove_Dir _SYSCALL1(int, NU_Remove_Dir, char *)
NU_Get_First _SYSCALL2(int, NU_Get_First, struct dstat *, const char * /* pattern */)
NU_Get_Next _SYSCALL1(int, NU_Get_Next, struct dstat *)
NU_Done _SYSCALL1(void, NU_Done, struct dstat *)
NU_Set_Current_Dir _SYSCALL1(void, NU_Set_Current_Dir, const char *)
NU_Current_Dir _SYSCALL3(int, NU_Current_Dir, char *, const char *)
NU_Open _SYSCALL3(int, NU_Read, char *, int, int)
NU_Close _SYSCALL1(int, NU_Close, int)
NU_Read _SYSCALL3(int, NU_Read, int, char *, int)
NU_Write _SYSCALL3(int, NU_Write, int, char *, int)
NU_Seek _SYSCALL3(int, NU_Seek, int,int,int)
NU_Delete _SYSCALL1(int, NU_Delete, char *)
NU_Rename _SYSCALL2(int, NU_Rename, char *,char *)
NU_Flush _SYSCALL1(int, NU_Flush, int)