fn max_os_cmd_line_len() -> usize {
    // SAFETY: No memory safety issue as this function takes and return a scalar.
    let max = unsafe { libc::sysconf(libc::_SC_ARG_MAX) };
    if max == -1 {
        panic!("Cannot get maximum command-line length");
    }
    // TODO: _SC_ARG_MAX is the maximum size of the all argv passed to exec(2) and environment.
    // We do not compute the environment size so reserve some hopefully big enough space for it.
    (max / 2) as usize
}
/// Returns maximum length in bytes of command-line (command + all arguments) supported by OS.
///
/// TODO: xargs man page states it uses ARG_MAX - 4096
Returns maximum length in bytes of command-line (command + all arguments) supported by OS.
TODO: xargs man page states it uses ARG_MAX - 4096
Returns maximum length in bytes of command - line ( command + all arguments ) supported by OS . TODO : xargs man page states it uses ARG_MAX - 4096
fn max_os_cmd_line_len() -> usize {
    // SAFETY: No memory safety issue as this function takes and return a scalar.
    let max = unsafe { libc::sysconf(libc::_SC_ARG_MAX) };
    if max == -1 {
        panic!("Cannot get maximum command-line length");
    }
    // TODO: _SC_ARG_MAX is the maximum size of the all argv passed to exec(2) and environment.
    // We do not compute the environment size so reserve some hopefully big enough space for it.
    (max / 2) as usize
}
fn max_os_cmd_line_len ( ) -> usize { // SAFETY: No memory safety issue as this function takes and return a scalar. let max = unsafe { libc :: sysconf ( libc :: _SC_ARG_MAX ) } ; if max == - 1 { panic ! ( " " ) ; } // TODO: _SC_ARG_MAX is the maximum size of the all argv passed to exec(2) and environment. // We do not compute the environment size so reserve some hopefully big enough space for it. ( max / 2 ) as usize }
Returns maximum length in bytes of command-line (command + all arguments) supported by OS.
Returns maximum length in bytes of command - line ( command + all arguments ) supported by OS .