how to get that value?The size of an integer (int nchr)
It would be easier if kernel accept unlimited text as argument than finding a workaround for each programI would really suggest fixing the original problem instead of constantly trying to combat the symptoms.
getconf -ain Linux ?
Sorry, badly phrased. I meant the max value an "int" can hold cf https://en.wikibooks.org/wiki/C_Programming/limits.hhow to get that value?
with getconf INT_MAX ?
Sure, FreeBSD is an open source OS, you can patch it and submit it so the whole community can benefit of it.
It's a FreeBSD board don't assume everybody knows what getconf is supposed to do (personnaly I don't)p.s.: In FreeBSD, how to get the get list of all variables with
getconf -ain Linux ?
PR 58803 and https://reviews.freebsd.org/D6999 as a starting point.
If you want that to happen, pitch in. Test the last revision of that patch. Find problems, and fix them, or hire someone to fix them. Update the bug report. Contact the mailing lists about it, asking about current problems and how to get it included.
Combating symptoms might be easier short-term. Long-term however it will mean you will be constantly trying to work around the issue. If you fix the original problem you will never have to worry about those workarounds any more.
for i in range(1000000000): do_something(i) print('Done with one billion things.')
Please indicate some books to read, about kernel designPlease spend 4 hours studying the current design
No, I'm not demanding that people don't have to sleep to help me, I was only asking if there was a *little* patch to kernel to compile it with large value of arg_max, something like commenting one line or something like that, not writing tons and tons of C code..You are demanding that people spend hours researching the kernel and exec interface, to do your homework for you.
Reaction score: 334
I have spent a lot of hours trying to compile kernel with variuos patch...
I am quite sure nobody before you earnestly thought of doing that (at least practically), and kept so determined....arg_max of 2 billions.
I find it amazing that you apparently didn't attempt to think a different approach to your problem for the last two years...I was only asking if there was a *little* patch to kernel to compile it with large value of arg_max, something like commenting one line or something like that, not writing tons and tons of C code..
Then you should maybe create some file database, or a blob manager (quasi file-in-file) or the like. Or make/use a database....I can write and modify little C programs...
What "job"?... to accomplish a job...