ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
Caius_ has quit [Quit: Page closed]
scientes has quit [Ping timeout: 248 seconds]
arBmind has quit [Quit: Leaving.]
scientes has joined #zig
scientes has quit [Changing host]
scientes has joined #zig
cenomla has quit [Quit: cenomla]
scientes has quit [Ping timeout: 248 seconds]
jjido has joined #zig
jjido has quit [Ping timeout: 275 seconds]
jjido has joined #zig
jjido has quit [Ping timeout: 248 seconds]
jjido has joined #zig
jjido has quit [Client Quit]
arBmind has joined #zig
cenomla has joined #zig
cenomla has quit [Ping timeout: 240 seconds]
arBmind has quit [Quit: Leaving.]
jjido has joined #zig
scientes has joined #zig
scientes has quit [Changing host]
scientes has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
cenomla has joined #zig
<scientes> How am I suppose to use open, create() et cetera when they return usize, instead of i32?
<scientes> wait that looks like libc stuff, these syscalls that sometimes return -1 returning usize is really confusing
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<andrewrk> scientes, I think you want to use the std.io functions, not the std.os.linux functions
<andrewrk> syscalls don't actually return -1, that's libc
<scientes> oh
<andrewrk> syscalls return an isize with the range (-4096,0) representing an error; if there's no error you're supposed to @bitCast to usize
<andrewrk> so you can use linux.getErrNo(the_usize) to get the error from a syscall result
<andrewrk> depending on what you're trying to do there might already be a higher level cross-platform API for that in the std lib
cenomla has quit [Quit: cenomla]
arBmind has joined #zig
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Read error: Connection reset by peer]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Read error: Connection reset by peer]
cenomla has joined #zig
cenomla has quit [Read error: Connection reset by peer]
cenomla has joined #zig
cenomla has quit [Read error: Connection reset by peer]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
cenomla has quit [Ping timeout: 240 seconds]