diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-01-10 15:03:58 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-01-10 15:03:58 +0000 |
commit | 0e339e83ed326b9ce844d44f9942f06d2b8d3e44 (patch) | |
tree | eafa14929ffc94d0dfa36a471fa034a2b66db05a /tools/checkAPIs.pl | |
parent | addba667499a54c208972f9f32770225957e7492 (diff) |
Add the file op APIs (e.g., open()) to the list of prhobited APIs (should use the eth_* versions instead).
svn path=/trunk/; revision=24057
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-x | tools/checkAPIs.pl | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 09b01c16a3..a1fedb61da 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -59,6 +59,19 @@ my @prohibitedAPIs= 'strncasecmp', 'g_strcasecmp', 'g_strncasecmp', + # Use the eth_* version of these: + # (Necessary because on Windows we use UTF8 for throughout the code + # so we must tweak that to UTF16 before operating on the file. Code + # using these functions will work unless the file/path name contains + # non-ASCII chars.) + 'open', + 'rename', + 'mkdir', + 'stat', + 'unlink', + 'remove', + 'fopen', + 'freopen' ); # APIs that SHOULD NOT be used in Wireshark (any more) @@ -91,7 +104,7 @@ my @deprecatedAPIs= sub findAPIinList($$$) { my ($apiList, $fileContentsRef, $foundAPIsRef)=@_; - + for my $api (@{$apiList}) { if ($$fileContentsRef =~ m/\W$api\W*\(/) |