DragonFly BSD
DragonFly commits List (threaded) for 2004-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/kern vfs_cache.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 5 Jun 2004 09:36:32 -0700 (PDT)

    I fixed a couple more bugs in your code.  You were copying 'buflen' bytes
    start at 'bp', which means your copy was exceeding the size of the source
    buffer.  And you needed to do the uap->buflen checks *before* calling
    malloc().

    I also rearranged the code a bit so kern_getcwd() does not have to do
    the bcopy() at all.  Instead it simply returning the 'bp' pointer.  This
    will improve __getcwd()'s performance over the last set of commits so it
    is roughly on-par with what it was before the syscall separation.

						-Matt



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