diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2003-02-22 14:46:31 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2003-02-22 14:46:31 +0000 |
commit | c0bff2da93b76aa93a9c4d085301e5179a443f43 (patch) | |
tree | b1f5d75ea9581de6605bd3007d8f5188db9eef63 /lib/libc/stdlib/realpath.c | |
parent | 07faa547b1f7df445539addc4da6918d3ed4568a (diff) | |
download | FreeBSD-src-c0bff2da93b76aa93a9c4d085301e5179a443f43.zip FreeBSD-src-c0bff2da93b76aa93a9c4d085301e5179a443f43.tar.gz |
Make xl use m_getcl() to allocate an mbuf and a cluster in one shot,
as opposed to one after the other. This is faster in both -CURRENT
and -STABLE. Additionally, there is less code duplication for
error-checking.
One thing to note is that this code seems to return(1) when no buffers
are available; perhaps ENOBUFS should be the correct return value?
Partially submitted & tested by: Hiten Pandya <hiten@unixdaemons.com>
MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib/realpath.c')
0 files changed, 0 insertions, 0 deletions