Christoffer Lerno

Results 1219 comments of Christoffer Lerno

I don't understand @unereal. That can't be true unless S_IFMT doesn't contain S_IFREG then?

Well, note that `if (stat.st_mode & libc::S_IFBLK)` will return true even if `(stat.st_mode & libc::S_IFBLK) == libc::S_IFBLK)` is false as S_IFBLK is not a mask with a single bit.

Shouldn't it properly be `(stat.st_mode & libc::S_IFBLK) == libc::S_IFBLK)`?

Why would you need the parenthesis?

> I was testing various combinations of S_IFXYZ bits with and without the S_IFMT mask, with and without parenthesis around a & b == c in C code. Oh, this...

After checking this in detail I think it's correct. I pulled it into master.

How do you invoke the compiler?

Hmm.. let's add some logs and see try adding --print-linking and --debug-log. Because what you're seeing is that it fails to link. One possibility is that the compiler does something...

Can you provide me with the output you get?