Search

Items tagged with: define


stackoverflow.com/questions/33…

> I have to pass 256Kb of text as an argument to the "aws sqs"

what, uhhh, what

> MAX_ARG_STRLEN is defined as 32 times the page size in linux/include/uapi/linux/binfmts.h:
> The default page size is 4 KB so you cannot pass arguments longer than 128 KB.
> I modified linux/include/uapi/linux/binfmts.h to #define MAX_ARG_STRLEN (PAGE_SIZE * 64), recompiled my kernel and now your code produces

casually patching the kernel to send a quarter megabyte as a *single* argument oh my god i'm laughing hard


ah, that fixes the space prefix bug i saw, but the #[url=https://tech.lgbt/tags/define]define[/url] strncasecmp causes some windows builds to fail, which i was going to put in a pull request for


The number of times I’ve needed to #define an alias to deal with naming collisions makes me vaguely glad of the objective-c habit of domain-abbreviated prefixes, but wishes there was a better way to accomplish it in plain old C.