Post AvTNkF5yR4XjAhUseu by [email protected] | |
More posts by [email protected] | |
Post #AvTIC8JmcxhoXGs9dw by [email protected] | |
0 likes, 1 repeats | |
ok, so, you know how the standards (C/POSIX) allow malloc(0) to return NULL?i w… | |
Post #AvTIWpZ3Y3G6SAsy4e by [email protected] | |
0 likes, 0 repeats | |
@whitequark This sounds like orderly mayhem. My recent learning of insanity is … | |
Post #AvTIZHljehiUVVzEwK by [email protected] | |
0 likes, 0 repeats | |
@whitequark … I hate this so much | |
Post #AvTIgZKOlmQ6zcfn5E by [email protected] | |
0 likes, 0 repeats | |
@whitequark as i recall at one point in time musl did return NULL, but looking … | |
Post #AvTIgZQQPNEzIJUbTc by [email protected] | |
0 likes, 0 repeats | |
@pikhq oh, this explains a few things | |
Post #AvTJdVSum4NK6AlBey by [email protected] | |
0 likes, 0 repeats | |
@whitequark Out of curiosity I checked the Whitesmiths C compiler (the only his… | |
Post #AvTJznbC2E9oi3GJQu by [email protected] | |
0 likes, 0 repeats | |
@whitequark so, Sortix is this minimalistic POSIX implementation https://sortix… | |
Post #AvTK2TqVvr2yJdhtMO by [email protected] | |
0 likes, 0 repeats | |
@cks yeah, hence "commonly used". there are some examples of libcs wh… | |
Post #AvTKD1OS3hC9FzbiPw by [email protected] | |
0 likes, 0 repeats | |
@overunderlay follows non-NULL behavior: https://gitlab.com/sortix/sortix/-/blo… | |
Post #AvTKY1jNzxZANxPooK by [email protected] | |
0 likes, 0 repeats | |
@whitequark you found that impressively quickly :-) /me wonders if his malloc i… | |
Post #AvTKgHBOQub2cnRtuS by [email protected] | |
0 likes, 0 repeats | |
@whitequark Agreed. I was curious to see if I could find even a single historic… | |
Post #AvTLZQtE2oAUepFgPI by [email protected] | |
0 likes, 1 repeats | |
@overunderlay actually it's more complicated than that, there are two mallo… | |
Post #AvTLk2OpRGpFt65hNg by [email protected] | |
0 likes, 0 repeats | |
a few people have pointed out that AIX has this behavior, which means it's … | |
Post #AvTM1n0nO8nRNOJYHI by [email protected] | |
0 likes, 0 repeats | |
@whitequark on rare occasions, I miss the fun little puzzles and high-level thi… | |
Post #AvTMeLrwErOyUJYjvU by [email protected] | |
0 likes, 0 repeats | |
@glyph yeah, i relate! i get my daily load of those puzzles working on glasgow | |
Post #AvTMtoZfnLc1rNOC6C by [email protected] | |
0 likes, 0 repeats | |
@whitequark why am I not surprised at all that AIX does it differently from all… | |
Post #AvTNkF5yR4XjAhUseu by [email protected] | |
0 likes, 0 repeats | |
@glyph @whitequark it's fun when it's a hobby, but not when it's yo… | |
Post #AvTNkFCM3LeBUUTybY by [email protected] | |
0 likes, 0 repeats | |
@tedmielczarek @glyph glasgow has an interesting quality of "i do most of … | |
Post #AvTOr1IUEe98MI959c by [email protected] | |
0 likes, 0 repeats | |
@whitequark @tedmielczarek @glyph at first glance it sounds like exploitation. … | |
Post #AvTOr1PDpbXAhBISeW by [email protected] | |
0 likes, 0 repeats | |
@mei @glyph @tedmielczarek i went for this option because i didn't want to … | |
Post #AvTOzT30wZ7ak2w7mq by [email protected] | |
0 likes, 1 repeats | |
@whitequark Best practice is for malloc(0) to return a pointer to PROT_NONE pag… | |
Post #AvTRM2PYLLUEhOMw0e by [email protected] | |
0 likes, 0 repeats | |
@whitequark MacOS returns a pointer, but this is only implied in the documentat… | |
Post #AvTRlWte8WMoUGbHH6 by [email protected] | |
0 likes, 0 repeats | |
@whitequark I vaguely think pre-ANSI K&R C implementations on CPM returned … |