.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de) .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Modified Sat Jul 24 19:35:54 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Mon Oct 16 00:16:29 2000 following Joseph S. Myers .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH FNMATCH 3 "6 Marzo 2019" GNU "Manual del Programador de Linux" .SH NOMBRE fnmatch \- comprueba la concordancia de un nombre de ruta o archivo .SH SINOPSIS .nf \fB#include \fP .PP \fBint fnmatch(const char *\fP\fIpatron\fP\fB, const char *\fP\fIcadena\fP\fB, int \fP\fIflags\fP\fB);\fP .fi .SH DESCRIPCIÓN La función \fBfnmatch\fP() comprueba si el argumento \fIcadena\fP concuerda con el argumento \fIpatron\fP que es un patrón al estilo de los comodines de la shell (vea \fBglob\fP(7)). .PP El argumento \fIflags\fP modifica el comportamiento; es el resultado de aplicar el operador de bits OR (|) a cero o más de los siguientes modificadores: .TP \fBFNM_NOESCAPE\fP Si este modificador está activado, se trata al carácter de barra inclinada invertida (\) como un carácter ordinario, en lugar de como un carácter de escape. .TP \fBFNM_PATHNAME\fP Si este modificador está activado, un carácter de barra inclinada (/) en \fIcadena\fP sólo concordará con una barra inclinada en \fIpatron\fP y no, por un asterisco (*) o un interrogante (?) ni por una secuencia entre corchetes ([]) que contenga una barra inclinada. .TP \fBFNM_PERIOD\fP Si este modificador está activado, un punto inicial en \fIcadena\fP ha de concordar exactamente con un punto en \fIpatron\fP. Se considera que un punto es inicial si es el primer carácter en \fIcadena\fP, o si \fBFNM_PATHNAME\fP está activado y el punto está inmediatamente tras una barra inclinada. .TP \fBFNM_FILE_NAME\fP Éste es un sinónimo de GNU para \fBFNM_PATHNAME\fP. .TP \fBFNM_LEADING_DIR\fP Si este modificador (una extensión de GNU) está activado, se considerará que el patrón concuerda si concuerda con un segmento inicial de \fIcadena\fP que va seguido por una barra inclinida. Esta opción es sobre todo para uso interno de glibc y sólo está implementada en ciertos casos. .TP \fBFNM_CASEFOLD\fP Si este modificador (una extensión de GNU) está activado, la concordancia con el patrón se realizará sin distinguir entre mayúsculas y minúsculas. .TP \fBFNM_EXTMATCH\fP If this flag (a GNU extension) is set, extended patterns are supported, as introduced by \&'ksh' and now supported by other shells. The extended format is as follows, with \fIpattern\-list\fP being a \&'|' separated list of patterns. .TP \&'?(\fIlista\-de\-patrones\fP)' The pattern matches if zero or one occurrences of any of the patterns in the \fIpattern\-list\fP match the input \fIstring\fP. .TP \&'*(\fIpattern\-list\fP)' The pattern matches if zero or more occurrences of any of the patterns in the \fIpattern\-list\fP match the input \fIstring\fP. .TP \&'+(\fIlista\-de\-patrones\fP)' The pattern matches if one or more occurrences of any of the patterns in the \fIpattern\-list\fP match the input \fIstring\fP. .TP \&'@(\fIlista\-de\-patrones\fP)' The pattern matches if exactly one occurrence of any of the patterns in the \fIpattern\-list\fP match the input \fIstring\fP. .TP \&'!(\fIpattern\-list\fP)' The pattern matches if the input \fIstring\fP cannot be matched with any of the patterns in the \fIpattern\-list\fP. .SH "VALOR DEVUELTO" Cero si \fIcadena\fP concuerda con \fIpatron\fP, \fBFNM_NOMATCH\fP si no hay concordancia, u otro valor distinto de cero si hay un error. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lb lb lb l l l. Interfaz Atributo Valor T{ \fBfnmatch\fP() T} Seguridad del hilo MT\-Safe env locale .TE .SH "CONFORME A" POSIX.1\-2001, POSIX.1\-2008, POSIX.2. Los modificadores \fBFNM_FILE_NAME\fP, \fBFNM_LEADING_DIR\fP, y \fBFNM_CASEFOLD\fP son extensiones de GNU. .SH "VÉASE TAMBIÉN" \fBsh\fP(1), \fBglob\fP(3), \fBscandir\fP(3), \fBwordexp\fP(3), \fBglob\fP(7) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García , Juan Piernas , Miguel Pérez Ibars y Marcos Fouces . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .