mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Apply some touchups
This commit is contained in:
parent
9f149e1de3
commit
2f3bd90216
139 changed files with 1188 additions and 1154 deletions
|
@ -29,9 +29,11 @@
|
|||
* @return new position relative to beginning, or -1 on error
|
||||
* @asyncsignalsafe
|
||||
*/
|
||||
int64_t lseek(int fd, int64_t offset, int whence) {
|
||||
if (!IsWindows()) {
|
||||
return sys_lseek(fd, offset, whence);
|
||||
int64_t lseek(int fd, int64_t offset, unsigned whence) {
|
||||
if (!IsWindows() && !IsOpenbsd() && !IsNetbsd()) {
|
||||
return sys_lseek(fd, offset, whence, 0);
|
||||
} else if (IsOpenbsd() || IsNetbsd()) {
|
||||
return sys_lseek(fd, offset, offset, whence);
|
||||
} else {
|
||||
return sys_lseek_nt(fd, offset, whence);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue