From 8db41e565a8aa35877ed7de09d7571b0405425bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Sat, 14 Oct 2017 16:05:21 +0200 Subject: [PATCH] Add probe for strnlen --- U/perl/d_strnlen.U | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 U/perl/d_strnlen.U diff --git a/U/perl/d_strnlen.U b/U/perl/d_strnlen.U new file mode 100644 index 0000000..b03bfd6 --- /dev/null +++ b/U/perl/d_strnlen.U @@ -0,0 +1,24 @@ +?RCS: $Id$ +?RCS: +?RCS: Copyright (c) 2004 H.Merijn Brand +?RCS: +?RCS: You may distribute under the terms of either the GNU General Public +?RCS: License or the Artistic License, as specified in the README file. +?RCS: +?MAKE:d_strnlen: Inlibc +?MAKE: -pick add $@ %< +?S:d_strnlen: +?S: This variable conditionally defines the HAS_STRNLEN symbol, which +?S: indicates to the C program that the strnlen () routine is available. +?S:. +?C:HAS_STRNLEN: +?C: This symbol, if defined, indicates that the strnlen () routine is +?C: available to check the length of a string up to a maximum. +?C:. +?H:#$d_strnlen HAS_STRNLEN /**/ +?H:. +?LINT:set d_strnlen +: see if strnlen exists +set strnlen d_strnlen +eval $inlibc + -- 1.8.3.1