xref: /onnv-gate/usr/src/lib/libsmbfs/smb/lgrep.awk (revision 11364:52b412ffe38f)
111332SGordon.Ross@Sun.COM#
211332SGordon.Ross@Sun.COM# CDDL HEADER START
311332SGordon.Ross@Sun.COM#
411332SGordon.Ross@Sun.COM# The contents of this file are subject to the terms of the
511332SGordon.Ross@Sun.COM# Common Development and Distribution License (the "License").
611332SGordon.Ross@Sun.COM# You may not use this file except in compliance with the License.
711332SGordon.Ross@Sun.COM#
811332SGordon.Ross@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
911332SGordon.Ross@Sun.COM# or http://www.opensolaris.org/os/licensing.
1011332SGordon.Ross@Sun.COM# See the License for the specific language governing permissions
1111332SGordon.Ross@Sun.COM# and limitations under the License.
1211332SGordon.Ross@Sun.COM#
1311332SGordon.Ross@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
1411332SGordon.Ross@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1511332SGordon.Ross@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
1611332SGordon.Ross@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
1711332SGordon.Ross@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
1811332SGordon.Ross@Sun.COM#
1911332SGordon.Ross@Sun.COM# CDDL HEADER END
2011332SGordon.Ross@Sun.COM#
2111332SGordon.Ross@Sun.COM
2211332SGordon.Ross@Sun.COM#
2311332SGordon.Ross@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2411332SGordon.Ross@Sun.COM# Use is subject to license terms.
2511332SGordon.Ross@Sun.COM#
2611332SGordon.Ross@Sun.COM
2711332SGordon.Ross@Sun.COM# This is a "lint tail" that removes all the
2811332SGordon.Ross@Sun.COM# uninteresting lines from our lint output.
2911332SGordon.Ross@Sun.COM# It's nawk because sed doesn't do (a|b).
3011332SGordon.Ross@Sun.COM# Also comments are easier here.
3111332SGordon.Ross@Sun.COM
3211360SGordon.Ross@Sun.COM# There's no lintlib for krb5 yet (CR 6911968)
3311360SGordon.Ross@Sun.COM/: Warning: -lkrb5 not found/			{ next; }
3411360SGordon.Ross@Sun.COM
3511360SGordon.Ross@Sun.COM# Kill noise from xti.h with _XOPEN_SOURCE vs not. (CR 6911717)
3611360SGordon.Ross@Sun.COM/: _xti_.* .E_INCONS_ARG_DECL2./		{ next; }
3711360SGordon.Ross@Sun.COM/: _xti_.* .E_INCONS_ARG_USED2./		{ next; }
3811360SGordon.Ross@Sun.COM/: _xti_.* .E_INCONS_VAL_TYPE_DECL2./		{ next; }
3911360SGordon.Ross@Sun.COM
40*11364SGordon.Ross@Sun.COM# This is third-party code we'd rather not "fix"
41*11364SGordon.Ross@Sun.COM/\/spnego.c.* .E_STMT_NOT_REACHED./		{ next; }
42*11364SGordon.Ross@Sun.COM
4311332SGordon.Ross@Sun.COM# The mb_put/md_get functions are intentionally used both
4411332SGordon.Ross@Sun.COM# with and without return value checks.  Not a concern.
4511332SGordon.Ross@Sun.COM/: mb_put_.* .E_FUNC_RET_[A-Z]*_IGNOR/		{ next; }
4611332SGordon.Ross@Sun.COM/: md_get_.* .E_FUNC_RET_[A-Z]*_IGNOR/		{ next; }
4711332SGordon.Ross@Sun.COM
4811332SGordon.Ross@Sun.COM# The rc_get* functions clear the out arg even on failure,
4911332SGordon.Ross@Sun.COM# so most callers don't need to check the return value.
5011332SGordon.Ross@Sun.COM/: rc_get[a-z]* .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
5111332SGordon.Ross@Sun.COM
5211332SGordon.Ross@Sun.COM# These have uninteresting return values, usually ignored.
5311332SGordon.Ross@Sun.COM/: (n|sm)b_ctx_readrcsection .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
5411332SGordon.Ross@Sun.COM/: nls_str_(lower|upper) .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
5511332SGordon.Ross@Sun.COM/: rc_(close|freesect) .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
5611332SGordon.Ross@Sun.COM
5711332SGordon.Ross@Sun.COM# Other functions for which we often ignore return values.
5811332SGordon.Ross@Sun.COM/: [a-z]*close .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
5911332SGordon.Ross@Sun.COM/: [a-z]*flush .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
6011332SGordon.Ross@Sun.COM/: [a-z]*printf .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
6111332SGordon.Ross@Sun.COM/: mem(cpy|move|set) .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
6211332SGordon.Ross@Sun.COM/: mutex_.* .E_FUNC_RET_[A-Z]*_IGNOR/		{ next; }
6311332SGordon.Ross@Sun.COM/: str[ln]?(cat|cpy) .E_FUNC_RET_[A-Z]*_IGNOR/	{ next; }
6411332SGordon.Ross@Sun.COM
6511332SGordon.Ross@Sun.COM{ print; }
66