search for: sc_prohibit_gethostby

Displaying 3 results from an estimated 3 matches for "sc_prohibit_gethostby".

2012 Sep 17
1
[PATCH libguestfs] maint: remove a subsumed syntax-check rule
...-*- makefile -*- -# Copyright (C) 2003-2009 Free Software Foundation, Inc. +# Copyright (C) 2003-2012 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -115,16 +115,6 @@ sc_prohibit_gethostby: halt='use getaddrinfo, not gethostby*' \ $(_sc_search_regexp) -# Disallow trailing blank lines. -sc_prohibit_trailing_blank_lines: - @$(VC_LIST_EXCEPT) \ - | xargs perl -ln -0777 -e \ - '-f $$ARGV or next; /\n\n+$$/ and print $$ARGV' > $@-t - @found=0;...
2009 Aug 05
1
syntax-check changes
...d: exempt symlinks from trailing-blank-line prohibition * cfg.mk (sc_prohibit_trailing_blank_lines): Exempt symlinks. --- cfg.mk | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cfg.mk b/cfg.mk index c43185c..2b37450 100644 --- a/cfg.mk +++ b/cfg.mk @@ -134,8 +134,9 @@ sc_prohibit_gethostby: # Disallow trailing blank lines. sc_prohibit_trailing_blank_lines: - @$(VC_LIST_EXCEPT) | xargs perl -ln -0777 -e \ - '/\n\n+$$/ and print $$ARGV' > $@-t + @$(VC_LIST_EXCEPT) \ + | xargs perl -ln -0777 -e \ + '-f $$ARGV or next; /\n\n+$$/ and print $$ARGV'...
2009 Aug 03
1
use gnulib, and begin to pass its "make syntax-check" tests
...with_string_literal: + @re='\<virBufferAdd *\([^,]+, *"[^"]' \ + msg='use virBufferAddLit, not virBufferAdd, with a string literal' \ + $(_prohibit_regexp) + +# Not only do they fail to deal well with ipv6, but the gethostby* +# functions are also not thread-safe. +sc_prohibit_gethostby: + @re='\<gethostby(addr|name2?) *\(' \ + msg='use getaddrinfo, not gethostby*' \ + $(_prohibit_regexp) + +# Many of the function names below came from this filter: +# git grep -B2 '\<_('|grep -E '\.c- *[[:alpha:]_][[:alnum:]_]* ?\(.*[,;]$' \ +# |sed ...