Fix typo in soc_ioctl.c
This commit is contained in:
parent
4219a23ebd
commit
b0c29ba658
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// Functions for allocating/deallocating memory from linear heap
|
// Functions for allocating/deallocating memory from linear heap
|
||||||
void* linearAlloc(size_t size); // returns a 16-byte aligned address
|
void* linearAlloc(size_t size); // returns a 16-byte aligned address
|
||||||
void* linearMemAlign(size_t size, size_t alignment); // WARNING: wastes 'alignment' bytes
|
void* linearMemAlign(size_t size, size_t alignment);
|
||||||
void* linearRealloc(void* mem, size_t size); // not implemented yet
|
void* linearRealloc(void* mem, size_t size); // not implemented yet
|
||||||
void linearFree(void* mem);
|
void linearFree(void* mem);
|
||||||
u32 linearSpaceFree(); // get free linear space in bytes
|
u32 linearSpaceFree(); // get free linear space in bytes
|
||||||
|
@ -23,7 +23,7 @@ int ioctl(int fd, int request, ...)
|
|||||||
|
|
||||||
flags = fcntl(fd, F_GETFL, 0);
|
flags = fcntl(fd, F_GETFL, 0);
|
||||||
if(flags == -1) {
|
if(flags == -1) {
|
||||||
errno = SOCU_GetError();
|
errno = SOC_GetErrno();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ int ioctl(int fd, int request, ...)
|
|||||||
else ret = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
|
else ret = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
|
||||||
|
|
||||||
if(ret != 0)
|
if(ret != 0)
|
||||||
errno = SOCU_GetError();
|
errno = SOC_GetErrno();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user