From: Cong Wang on 25 Feb 2010 05:00 Octavian Purdila wrote: >> Hi, >> >> Still a small problem, if I do write(fd, "50000,50100", 12) I will >> get a return value of 11, which should mean 11 bytes are written, >> however, actually only the first 6 bytes are accepted. >> >> The rest looks better now. >> >> Or am I missing something here? :) >> > > Will take a look at this a bit later today, thanks for testing. > > In the meanwhile what are your thougths on the "1 2 3" issue, are you OK with accepting spaces as well as commas as separators? I think one of them is enough, since we already chose commas, why do we need to add spaces? If you have some strong reason to add it, I have no objections. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Octavian Purdila on 25 Feb 2010 06:10 > I think one of them is enough, since we already chose commas, why > do we need to add spaces? If you have some strong reason to add it, > I have no objections. > It is just for simpler implementation. It is actually harder to restrict the separator to only commas insted of allowing both spaces and commas, because I rely on functions used for the integer vector handling. Maybe I should change those functions to be more generic and thus to allow more stricter input, but I am not sure if its worth it. Isn't a more permissive input format desirable? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Cong Wang on 25 Feb 2010 21:30 Octavian Purdila wrote: >> I think one of them is enough, since we already chose commas, why >> do we need to add spaces? If you have some strong reason to add it, >> I have no objections. >> > > It is just for simpler implementation. It is actually harder to restrict the separator to only commas insted of allowing both spaces and commas, because I rely on functions used for the integer vector handling. > > Maybe I should change those functions to be more generic and thus to allow more stricter input, but I am not sure if its worth it. Isn't a more permissive input format desirable? I think you should ask Eric, since he proposed using commas. :) I am fine with either of them. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
First
|
Prev
|
Pages: 1 2 3 Prev: sysctl extern cleanup - mm Next: [PATCH -tip] tracing: fix typo in prof_sysexit_enable() |