Change sbrk() to take an int rather than an intptr_t (following the OpenBSD way
rather than the Linux way; various non-C bits of the ACK assume it takes an int, so it's cleaner).
This commit is contained in:
parent
0aac9aafd3
commit
36ab90385f
|
@ -37,7 +37,7 @@ extern char** environ;
|
|||
|
||||
extern void _exit(int);
|
||||
extern pid_t getpid(void);
|
||||
extern void* sbrk(intptr_t increment);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
extern off_t lseek(int fildes, off_t offset, int whence);
|
||||
extern int close(int d);
|
||||
|
|
|
@ -28,7 +28,7 @@ int brk(void* newend)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void* sbrk(intptr_t increment)
|
||||
void* sbrk(int increment)
|
||||
{
|
||||
char* old;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ int brk(void* end)
|
|||
return e;
|
||||
}
|
||||
|
||||
void* sbrk(intptr_t increment)
|
||||
void* sbrk(int increment)
|
||||
{
|
||||
char* old;
|
||||
char* new;
|
||||
|
|
|
@ -67,7 +67,7 @@ extern char** environ;
|
|||
extern void _exit(int);
|
||||
extern pid_t getpid(void);
|
||||
extern int brk(void* ptr);
|
||||
extern void* sbrk(intptr_t increment);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
|
||||
/* Signal handling */
|
||||
|
|
|
@ -65,7 +65,7 @@ extern char** environ;
|
|||
extern void _exit(int);
|
||||
extern pid_t getpid(void);
|
||||
extern int brk(void* ptr);
|
||||
extern void* sbrk(intptr_t increment);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
|
||||
/* Signal handling */
|
||||
|
|
|
@ -65,7 +65,7 @@ extern char** environ;
|
|||
extern void _exit(int);
|
||||
extern pid_t getpid(void);
|
||||
extern int brk(void* ptr);
|
||||
extern void* sbrk(intptr_t increment);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
|
||||
/* Signal handling */
|
||||
|
|
|
@ -37,7 +37,7 @@ extern char** environ;
|
|||
|
||||
extern void _exit(int);
|
||||
extern pid_t getpid(void);
|
||||
extern void* sbrk(intptr_t increment);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
extern off_t lseek(int fildes, off_t offset, int whence);
|
||||
extern int close(int d);
|
||||
|
|
|
@ -28,7 +28,7 @@ int brk(void* newend)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void* sbrk(intptr_t increment)
|
||||
void* sbrk(int increment)
|
||||
{
|
||||
char* old;
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ extern char** environ;
|
|||
extern void _exit(int);
|
||||
extern pid_t getpid(void);
|
||||
extern int brk(void* ptr);
|
||||
extern void* sbrk(intptr_t increment);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
|
||||
/* Signal handling */
|
||||
|
|
|
@ -28,7 +28,7 @@ int brk(void* newend)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void* sbrk(intptr_t increment)
|
||||
void* sbrk(int increment)
|
||||
{
|
||||
char* old;
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ extern char** environ;
|
|||
|
||||
extern void _exit(int);
|
||||
extern pid_t getpid(void);
|
||||
extern void* sbrk(intptr_t increment);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
extern off_t lseek(int fildes, off_t offset, int whence);
|
||||
extern int close(int d);
|
||||
|
|
|
@ -30,7 +30,7 @@ int brk(void* newend)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void* sbrk(intptr_t increment)
|
||||
void* sbrk(int increment)
|
||||
{
|
||||
char* old;
|
||||
|
||||
|
|
Loading…
Reference in a new issue