lkml.org 
[lkml]   [1998]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH} ngroups, list of groups to /proc/#/status
    On Sun, Nov 22, 1998 at 11:23:08PM +0200, Topi Miettinen wrote:

    > Buffer seems to be one page, with recently suggested 32-bit ids
    > this will fill the entire buffer in a 4k-page system at around 373
    > groups. snprintf() is not available?

    Yes, buffer is a page (well, used to be, I think it still is). No,
    snprintf isn't available, but we don't need it -- we know the output
    will not be greater than 10 character or so, so when we hit
    (pagesize-SAFELENGTH) we stop.

    what get tricky -- is making the data in the second page (for
    continutation of the data) start at the right place.




    -cw

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:45    [W:0.039 / U:0.268 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site