[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Commandline handling in the kernel

Right, but what I'm saying is if you do a sysconf(_SC_ARG_MAX) you get
128 (or 127 can't remember off hand) which is wrong - isn't it ?
Why do you think ARGV and ARG_MAX have to be related to each other? I'd say ARG_MAX says something about the length for "normal" arguments while ARGV is something completely different. Look into mintlib's startup code, from what I remember it certainly doesn't append stuff from ARGV env variable into regular command line buffer -- it's handled differently, what is right thing in my opinion. So normal ARG buffer (command line) = 128 max, ARGV buffer = unlimited and handled differently.

MiKRO / Mystic Bytes