<g-w1>
Is there a standard library function to tell you if you are at the root of the filesystem ("/" or "C:\") If not ill write it to fix a bug in the new `zig build` command where it continually loops because std.fs.path.dirname("/") just returns "/"
<wilsonk>
marler8997__: is github.com/GoNZooo/zig-win32 something like what you are looking for?
<wilsonk>
oh, or were you looking for the SDK?
<marler8997__>
wilsonk yes....however, it looks to be pretty bare bones
msingle has quit [Ping timeout: 240 seconds]
<marler8997__>
I'm wanting a complete win32 api available in zig modules
a_chou has quit [Ping timeout: 256 seconds]
<wilsonk>
ah, ok. Maybe gonz_ (who I think is the same user) has a script to generate more zig modules?
<ifreund>
g-w1: I just looked and didn't find one
<g-w1>
ok. i think ill add it
<marler8997__>
I don't see any script or docs on how gonzo generated what he has
<wilsonk>
marler8997__: yeah, I sort of pinged them hoping they would let you know how they did it ;)
<marler8997__>
let me know what he says
<wilsonk>
will do
a_chou has joined #zig
a_chou has quit [Client Quit]
ur5us has joined #zig
g-w1 has quit [Quit: WeeChat 2.3]
g-w1 has joined #zig
tundrax has quit [Ping timeout: 245 seconds]
aw- has quit [Quit: Leaving.]
msingle has joined #zig
gazler_ has joined #zig
gazler has quit [Ping timeout: 265 seconds]
squeek502 has joined #zig
msingle has quit [Ping timeout: 240 seconds]
squeek502 has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
gazler_ has quit [Ping timeout: 256 seconds]
gazler has joined #zig
qeeg has quit [Remote host closed the connection]
ur5us has joined #zig
msingle has joined #zig
Kingsquee has quit []
earnestly has quit [Ping timeout: 256 seconds]
cole-h has joined #zig
kristoff_it has quit [Ping timeout: 260 seconds]
<redj>
hey, is this a know issue in bootsrap where all the symbols are duplicated or something?
<redj>
/usr/bin/ld: /a/sd/d/zig/bootstrap/out/zig-x86_64-linux-musl-native/bin/zig: in function `_fini':
<redj>
(.fini+0x0): multiple definition of `_fini'; /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/crti.o:(.fini+0x0): first defined here
<redj>
this happens when running zig cc
<redj>
zig cc --version for example will give a ton of these errors for all these symbols
ur5us has quit [Ping timeout: 240 seconds]
dch has quit [Ping timeout: 240 seconds]
dch has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
ifreund_ has quit [Ping timeout: 240 seconds]
ifreund_ has joined #zig
marnix has joined #zig
_whitelogger has joined #zig
Kingsquee has joined #zig
frett27 has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
msingle has quit [Ping timeout: 256 seconds]
radgeRayden has quit [Ping timeout: 240 seconds]
radgeRayden has joined #zig
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #zig
marnix has quit [Ping timeout: 260 seconds]
pruner has joined #zig
ur5us has joined #zig
frett27 has quit [Ping timeout: 240 seconds]
cole-h has quit [Ping timeout: 256 seconds]
Stephie has quit [Ping timeout: 246 seconds]
Stephie has joined #zig
frett27 has joined #zig
knebulae has quit [Read error: Connection reset by peer]
ofelas has quit [Remote host closed the connection]
Stephie has quit [Excess Flood]
Stephie has joined #zig
ofelas has joined #zig
omglasers2 has joined #zig
pruner has quit [Ping timeout: 256 seconds]
pruner has joined #zig
Kingsquee has quit []
tdc has joined #zig
wootehfoot has joined #zig
osa1 has joined #zig
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 240 seconds]
marnix has joined #zig
marnix has quit [Remote host closed the connection]
marnix has joined #zig
pruner has quit [Ping timeout: 264 seconds]
pruner has joined #zig
msingle has joined #zig
masoudd has joined #zig
xackus_ has joined #zig
frett27 has quit [Ping timeout: 272 seconds]
kristoff_it has joined #zig
jjsullivan1 has quit [Remote host closed the connection]
msingle has quit [Ping timeout: 265 seconds]
GrooveStomp has quit [Remote host closed the connection]
frett27 has joined #zig
GrooveStomp has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
pingiun has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
xackus_ has quit [Ping timeout: 240 seconds]
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
omglasers2 has quit [Read error: Connection reset by peer]
pruner has quit [Ping timeout: 240 seconds]
pruner has joined #zig
knebulae has joined #zig
msingle has joined #zig
msingle has quit [Ping timeout: 260 seconds]
pruner has quit [Ping timeout: 240 seconds]
BaroqueLarouche has quit [*.net *.split]
fengb has quit [*.net *.split]
BaroqueLarouche has joined #zig
fengb has joined #zig
Nypsie[m] has quit [*.net *.split]
mokafolio has quit [*.net *.split]
jmiven has quit [*.net *.split]
larme has quit [*.net *.split]
Miaourt has quit [*.net *.split]
jmiven has joined #zig
Miaourt has joined #zig
Nypsie[m] has joined #zig
mokafolio has joined #zig
larme has joined #zig
waleee-cl has joined #zig
Nypsie[m] has quit [Ping timeout: 244 seconds]
alva has quit [Ping timeout: 246 seconds]
ifreund_ has quit [Ping timeout: 240 seconds]
Marrikulus has quit [Remote host closed the connection]
Nypsie[m] has joined #zig
ifreund_ has joined #zig
alva has joined #zig
pruner has joined #zig
<ifreund>
tdeo: I'm seriously considering just linking against the private code generated by libwayland's scanner, I don't think I'm going to have success with stage 1
<ifreund>
I feel like thats marinally better than an initGlobalState() function
tdc has quit [Quit: Leaving]
<g-w1>
What is the best way to turn a []const u8 to [*:0]const u8? I am trying to execve but I have path as a []const u8. And is [*:0]const u8 just a null terminated c string?
<ifreund>
you need to allocate memory one byte larger than your slice and copy, then set the last element to null
<ifreund>
std.cstr.addNullByte does this for you
<g-w1>
ok
<ifreund>
if you have an upper bound on the size you could of course use a buffer instead
<ifreund>
the execve from the std should take a []const u8 though, execveZ takes the [*:0]
<ifreund>
or, nvm it was zig build forking that was annoying me while trying to use gdb
<ifreund>
that's a separate issue though
<g-w1>
Should I write an std.os.execve wrapper?
<g-w1>
It seems like the execveZ references it as if it existed. `/// Like `execve` except the parameters are null-terminated,
<g-w1>
for now ill just use std.os.execvpe instead of std.os.execve
<BaroqueLarouche>
am I the only on Windows that linking and zig0 is dog slow since the new zig cc branch was merged ?
<Nypsie[m]>
Nah, it's known :)
<BaroqueLarouche>
good :)
<ifreund>
g-w1: I'd say go for it, I thought we already had one
msingle has joined #zig
<g-w1>
ok. i just implimented it with execvpe but ill switch it. :)
<ifreund>
just go with whichever is cleaner :P
<g-w1>
I think execvpe is pretty clean. The only bad thing that I think is that it needs memory allocation for env_map to be a std.BufMap.
tane has joined #zig
omglasers2 has joined #zig
wootehfoot has joined #zig
Akuli has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
msingle has quit [Ping timeout: 272 seconds]
layneson has joined #zig
cole-h has joined #zig
pruner has joined #zig
cole-h has quit [Client Quit]
xackus_ has joined #zig
<g-w1>
if a function just returns an error (ExecveError || error{OutOfMemory}) but not (ExecveError || error{OutOfMemory})!type how would you check if an error was returned? I cant seem to find an example of this in the docs.
<ifreund>
g-w1: execve only returns if an error occured
<g-w1>
oh. that makes sense. is it like exec keyword in bash?
<ifreund>
sure
<g-w1>
Ok.
<ifreund>
see the execve(2) man page for more details
cole-h has joined #zig
<frett27>
ifreund! is it yours ? git.s-ol.nu
<ifreund>
no? i'd assume that belongs to s-ol
<frett27>
ohhh, i see i've not seen the name
<frett27>
in the irc, because i was trying to use imgui with zig, and he has an effort about
<frett27>
on this git repo
msingle has joined #zig
xackus_ has quit [Read error: Connection reset by peer]