Re: [PATCH 1/3] remove non-portable usage of strndupa

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

 



On Mon, Aug 26, 2013 at 8:20 PM, John Spencer <maillist-kmod@xxxxxxxxxxx> wrote:
> usage of strndupa is neither C99 nor POSIX,
> so musl libc does not implement it.
> it's a glibc invention, and a dangerous one since
> usage of alloca() is considered bad practice.

It's as dangerous as variable sized arrays, and surely much less "bad
practice" than your introduced PATH_MAX. :)

If kmod declares posix-only interfaces as the goal, then it's fine,
but your reasons do not make much sense in 2013.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux