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:
David Given 2016-11-23 22:06:24 +01:00
parent 0aac9aafd3
commit 36ab90385f
12 changed files with 12 additions and 12 deletions

View file

@ -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);

View file

@ -28,7 +28,7 @@ int brk(void* newend)
return 0;
}
void* sbrk(intptr_t increment)
void* sbrk(int increment)
{
char* old;

View file

@ -22,7 +22,7 @@ int brk(void* end)
return e;
}
void* sbrk(intptr_t increment)
void* sbrk(int increment)
{
char* old;
char* new;

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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);

View file

@ -28,7 +28,7 @@ int brk(void* newend)
return 0;
}
void* sbrk(intptr_t increment)
void* sbrk(int increment)
{
char* old;

View file

@ -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 */

View file

@ -28,7 +28,7 @@ int brk(void* newend)
return 0;
}
void* sbrk(intptr_t increment)
void* sbrk(int increment)
{
char* old;

View file

@ -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);

View file

@ -30,7 +30,7 @@ int brk(void* newend)
return 0;
}
void* sbrk(intptr_t increment)
void* sbrk(int increment)
{
char* old;