mbuf(9), mbuf_tags(9): fix function prototypes.

- Add m_getclr(9) symlink to ObsoleteFiles.inc (removed in r295481).
- Add const qualifiers in m_dup(), m_dup_pkthdr() and m_tag_copy_chain()
(r286450).
- Fix m_dup_pkthdr() definition (it's not the same as m_move_pkthdr()).

MFC after:	5 days
This commit is contained in:
Andriy Voskoboinyk 2016-10-10 17:16:02 +00:00
parent f45a6fb935
commit 1af4a58503
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307000
4 changed files with 7 additions and 12 deletions

View File

@ -38,6 +38,8 @@
# xargs -n1 | sort | uniq -d; # xargs -n1 | sort | uniq -d;
# done # done
# 20161010: remove link to removed m_getclr(9) macro
OLD_FILES+=usr/share/man/man9/m_getclr.9
# 20161003: MK_ELFCOPY_AS_OBJCOPY option retired # 20161003: MK_ELFCOPY_AS_OBJCOPY option retired
OLD_FILES+=usr/bin/elfcopy OLD_FILES+=usr/bin/elfcopy
OLD_FILES+=usr/share/man/man1/elfcopy.1.gz OLD_FILES+=usr/share/man/man1/elfcopy.1.gz

View File

@ -1138,7 +1138,6 @@ MLINKS+=\
mbuf.9 m_get2.9 \ mbuf.9 m_get2.9 \
mbuf.9 m_getjcl.9 \ mbuf.9 m_getjcl.9 \
mbuf.9 m_getcl.9 \ mbuf.9 m_getcl.9 \
mbuf.9 m_getclr.9 \
mbuf.9 MGETHDR.9 \ mbuf.9 MGETHDR.9 \
mbuf.9 m_gethdr.9 \ mbuf.9 m_gethdr.9 \
mbuf.9 m_getm.9 \ mbuf.9 m_getm.9 \

View File

@ -24,7 +24,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd August 30, 2016 .Dd October 10, 2016
.Dt MBUF 9 .Dt MBUF 9
.Os .Os
.\" .\"
@ -79,8 +79,6 @@
.Ft struct mbuf * .Ft struct mbuf *
.Fn m_getcl "int how" "short type" "int flags" .Fn m_getcl "int how" "short type" "int flags"
.Ft struct mbuf * .Ft struct mbuf *
.Fn m_getclr "int how" "short type"
.Ft struct mbuf *
.Fn m_gethdr "int how" "short type" .Fn m_gethdr "int how" "short type"
.Ft struct mbuf * .Ft struct mbuf *
.Fn m_free "struct mbuf *mbuf" .Fn m_free "struct mbuf *mbuf"
@ -107,7 +105,7 @@
.Ft struct mbuf * .Ft struct mbuf *
.Fn m_copypacket "struct mbuf *mbuf" "int how" .Fn m_copypacket "struct mbuf *mbuf" "int how"
.Ft struct mbuf * .Ft struct mbuf *
.Fn m_dup "struct mbuf *mbuf" "int how" .Fn m_dup "const struct mbuf *mbuf" "int how"
.Ft void .Ft void
.Fn m_copydata "const struct mbuf *mbuf" "int offset" "int len" "caddr_t buf" .Fn m_copydata "const struct mbuf *mbuf" "int offset" "int len" "caddr_t buf"
.Ft void .Ft void
@ -126,8 +124,8 @@
.Fn m_catpkt "struct mbuf *m" "struct mbuf *n" .Fn m_catpkt "struct mbuf *m" "struct mbuf *n"
.Ft u_int .Ft u_int
.Fn m_fixhdr "struct mbuf *mbuf" .Fn m_fixhdr "struct mbuf *mbuf"
.Ft void .Ft int
.Fn m_dup_pkthdr "struct mbuf *to" "struct mbuf *from" .Fn m_dup_pkthdr "struct mbuf *to" "const struct mbuf *from" "int how"
.Ft void .Ft void
.Fn m_move_pkthdr "struct mbuf *to" "struct mbuf *from" .Fn m_move_pkthdr "struct mbuf *to" "struct mbuf *from"
.Ft u_int .Ft u_int
@ -602,10 +600,6 @@ This is like
but it the size of the cluster allocated will be large enough for but it the size of the cluster allocated will be large enough for
.Fa size .Fa size
bytes. bytes.
.It Fn m_getclr how type
Allocate an
.Vt mbuf
and zero out the data region.
.It Fn m_free mbuf .It Fn m_free mbuf
Frees Frees
.Vt mbuf . .Vt mbuf .

View File

@ -33,7 +33,7 @@
.Ft "struct m_tag *" .Ft "struct m_tag *"
.Fn m_tag_copy "struct m_tag *t" "int how" .Fn m_tag_copy "struct m_tag *t" "int how"
.Ft int .Ft int
.Fn m_tag_copy_chain "struct mbuf *to" "struct mbuf *from" "int how" .Fn m_tag_copy_chain "struct mbuf *to" "const struct mbuf *from" "int how"
.Ft void .Ft void
.Fn m_tag_delete "struct mbuf *m" "struct m_tag *t" .Fn m_tag_delete "struct mbuf *m" "struct m_tag *t"
.Ft void .Ft void