| 1 |
# Spanish translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Carlos Gomez Romero <[email protected]>, 1998. |
| 5 |
# Miguel Pérez Ibars <[email protected]>, 2005. |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:49+0200\n" |
| 10 |
"PO-Revision-Date: 2021-02-03 20:58+0100\n" |
| 11 |
"Last-Translator: Miguel Pérez Ibars <[email protected]>\n" |
| 12 |
"Language-Team: Spanish <[email protected]>\n" |
| 13 |
"Language: es\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 18 |
"X-Generator: Lokalize 20.04.1\n" |
| 19 |
|
| 20 |
#. type: TH |
| 21 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 22 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 23 |
#, fuzzy, no-wrap |
| 24 |
#| msgid "Searching" |
| 25 |
msgid "tsearch" |
| 26 |
msgstr "Búsquedas" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 30 |
#: opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "2026-02-08" |
| 33 |
msgstr "8 Febrero 2026" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable |
| 37 |
#, fuzzy, no-wrap |
| 38 |
#| msgid "Linux man-pages 6.17" |
| 39 |
msgid "Linux man-pages 6.18" |
| 40 |
msgstr "Páginas de Manual de Linux 6.17" |
| 41 |
|
| 42 |
#. type: SH |
| 43 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 44 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "NAME" |
| 47 |
msgstr "NOMBRE" |
| 48 |
|
| 49 |
#. type: Plain text |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
#, fuzzy |
| 53 |
#| msgid "tsearch, tfind, tdelete, twalk - manage a binary tree" |
| 54 |
msgid "" |
| 55 |
"tsearch, tfind, tdelete, twalk, twalk_r, tdestroy - manage a binary search " |
| 56 |
"tree" |
| 57 |
msgstr "tsearch, tfind, tdelete, twalk - manejan un árbol binario" |
| 58 |
|
| 59 |
#. type: SH |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
#, no-wrap |
| 63 |
msgid "LIBRARY" |
| 64 |
msgstr "BIBLIOTECA" |
| 65 |
|
| 66 |
#. type: Plain text |
| 67 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 68 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 70 |
msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)" |
| 71 |
|
| 72 |
#. type: SH |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "SYNOPSIS" |
| 77 |
msgstr "SINOPSIS" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<#include E<lt>search.hE<gt>>\n" |
| 84 |
msgstr "B<#include E<lt>search.hE<gt>>\n" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "B<typedef enum { preorder, postorder, endorder, leaf } VISIT;>\n" |
| 91 |
msgstr "B<typedef enum { preorder, postorder, endorder, leaf } VISIT;>\n" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 95 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "" |
| 98 |
"B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n" |
| 99 |
"B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n" |
| 100 |
"B<void *tsearch(const void *>I<key>B<, void **>I<rootp>B<,>\n" |
| 101 |
"B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n" |
| 102 |
"B<void *tdelete(const void *restrict >I<key>B<, void **restrict >I<rootp>B<,>\n" |
| 103 |
"B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n" |
| 104 |
"B<void twalk(const void *>I<root>B<,>\n" |
| 105 |
"B< typeof(void (const void *>I<nodep>B<, VISIT >I<which>B<, int >I<depth>B<))>\n" |
| 106 |
"B< *>I<action>B<);>\n" |
| 107 |
msgstr "" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
#, no-wrap |
| 113 |
msgid "" |
| 114 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 115 |
"B<#include E<lt>search.hE<gt>>\n" |
| 116 |
msgstr "" |
| 117 |
"B<#define _GNU_SOURCE> /* Vea feature_test_macros(7) */\n" |
| 118 |
"B<#include E<lt>search.hE<gt>>\n" |
| 119 |
|
| 120 |
#. type: Plain text |
| 121 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 122 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, fuzzy, no-wrap |
| 124 |
#| msgid "" |
| 125 |
#| "B<void twalk_r(const void *>I<root>B<,>\n" |
| 126 |
#| "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n" |
| 127 |
#| "B< void *>I<closure>B<),>\n" |
| 128 |
#| "B< void *>I<closure>B<);>\n" |
| 129 |
msgid "" |
| 130 |
"B<void twalk_r(const void *>I<root>B<,>\n" |
| 131 |
"B< typeof(void (const void *>I<nodep>B<, VISIT >I<which>B<, void *>I<closure>B<))>\n" |
| 132 |
"B< *>I<action>B<,>\n" |
| 133 |
"B< void *>I<closure>B<);>\n" |
| 134 |
"B<void tdestroy(void *>I<root>B<,>\n" |
| 135 |
"B< typeof(void (void *>I<nodep>B<)) *>I<free_node>B<);>\n" |
| 136 |
msgstr "" |
| 137 |
"B<void twalk_r(const void *>I<root>B<,>\n" |
| 138 |
"B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n" |
| 139 |
"B< void *>I<closure>B<),>\n" |
| 140 |
"B< void *>I<closure>B<);>\n" |
| 141 |
|
| 142 |
#. type: SH |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
#, no-wrap |
| 146 |
msgid "DESCRIPTION" |
| 147 |
msgstr "DESCRIPCIÓN" |
| 148 |
|
| 149 |
#. type: Plain text |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
#, fuzzy |
| 153 |
#| msgid "" |
| 154 |
#| "B<tsearch>, B<tfind>, B<twalk>, and B<tdelete> manage a binary tree. " |
| 155 |
#| "They are generalized from Knuth (6.2.2) Algorithm T. The first field in " |
| 156 |
#| "each node of the tree is a pointer to the corresponding data item. (The " |
| 157 |
#| "calling program must store the actual data.) I<compar> points to a " |
| 158 |
#| "comparison routine, which takes pointers to two items. It should return " |
| 159 |
#| "an integer which is negative, zero, or positive, depending on whether the " |
| 160 |
#| "first item is less than, equal to, or greater than the second." |
| 161 |
msgid "" |
| 162 |
"B<tsearch>(), B<tfind>(), B<twalk>(), and B<tdelete>() manage a binary " |
| 163 |
"search tree. They are generalized from Knuth (6.2.2) Algorithm T. The " |
| 164 |
"first field in each node of the tree is a pointer to the corresponding data " |
| 165 |
"item. (The calling program must store the actual data.) I<compar> points " |
| 166 |
"to a comparison routine, which takes pointers to two items. It should " |
| 167 |
"return an integer which is negative, zero, or positive, depending on whether " |
| 168 |
"the first item is less than, equal to, or greater than the second." |
| 169 |
msgstr "" |
| 170 |
"B<tsearch>, B<tfind>, B<twalk> y B<tdelete> manejan un árbol binario. Son " |
| 171 |
"una generalización del algoritmo T de Knuth (6.2.2). El primer campo de " |
| 172 |
"cada nodo del árbol es un puntero al correspondiente elemento de datos. (El " |
| 173 |
"programa llamante debe almacenar los datos actuales). I<compar> apunta a la " |
| 174 |
"rutina de comparación, que toma punteros a los dos elementos. Debe devolver " |
| 175 |
"un entero negativo, cero o positivo dependiendo de si el primer elemento es " |
| 176 |
"menor, igual o mayor que el segundo." |
| 177 |
|
| 178 |
#. type: Plain text |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
#, fuzzy |
| 182 |
#| msgid "" |
| 183 |
#| "B<tsearch> searches the tree for an item. I<key> points to the item to " |
| 184 |
#| "be searched for. I<rootp> points to a variable which points to the root " |
| 185 |
#| "of the tree. If the tree is empty, then the variable that I<rootp> " |
| 186 |
#| "points to should be set to B<NULL>. If the item is found in the tree, " |
| 187 |
#| "then B<tsearch> returns a pointer to it. If it is not found, then " |
| 188 |
#| "B<tsearch> adds it, and returns a pointer to the newly added item." |
| 189 |
msgid "" |
| 190 |
"B<tsearch>() searches the tree for an item. I<key> points to the item to " |
| 191 |
"be searched for. I<rootp> points to a variable which points to the root of " |
| 192 |
"the tree. If the tree is empty, then the variable that I<rootp> points to " |
| 193 |
"should be set to NULL. If the item is found in the tree, then B<tsearch>() " |
| 194 |
"returns a pointer to the corresponding tree node. (In other words, " |
| 195 |
"B<tsearch>() returns a pointer to a pointer to the data item.) If the item " |
| 196 |
"is not found, then B<tsearch>() adds it, and returns a pointer to the " |
| 197 |
"corresponding tree node." |
| 198 |
msgstr "" |
| 199 |
"B<tsearch> busca un elemento en el árbol. I<key> apunta al elemento " |
| 200 |
"buscado. I<rootp> apunta a la variable que apunta a la raíz del árbol. Si " |
| 201 |
"el árbol está vacío la variable a la que apunta I<rootp> debería estar a " |
| 202 |
"B<NULL>. Si se encuentra el elemento dentro del árbol B<tsearch> devuelve " |
| 203 |
"un puntero al elemento. Si no lo encuentra, B<tsearch> lo añade y devuelve " |
| 204 |
"un puntero al nuevo elemento." |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "" |
| 210 |
"B<tfind>() is like B<tsearch>(), except that if the item is not found, then " |
| 211 |
"B<tfind>() returns NULL." |
| 212 |
msgstr "" |
| 213 |
"B<tfind>() es como B<tsearch>(), sólo que si no encuentra el elemento " |
| 214 |
"B<tfind>() devuelve NULL." |
| 215 |
|
| 216 |
#. type: Plain text |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
msgid "" |
| 220 |
"B<tdelete>() deletes an item from the tree. Its arguments are the same as " |
| 221 |
"for B<tsearch>()." |
| 222 |
msgstr "" |
| 223 |
"B<tdelete>() borra un elemento del árbol. Sus argumentos son los mismos que " |
| 224 |
"los de B<tsearch>()." |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
#, fuzzy |
| 230 |
#| msgid "" |
| 231 |
#| "B<twalk> performs depth-first, left-to-right traversal of a binary tree. " |
| 232 |
#| "I<root> points to the starting node for the traversal. If that node is " |
| 233 |
#| "not the root, then only part of the tree will be visited. B<twalk> calls " |
| 234 |
#| "the user function I<action> each time a node is visited (that is, three " |
| 235 |
#| "times for an internal node, and once for a leaf). I<action>, in turn, " |
| 236 |
#| "takes three arguments. The first is a pointer to the node being " |
| 237 |
#| "visited. The second is an integer which takes on the values B<preorder>, " |
| 238 |
#| "B<postorder>, and B<endorder> depending on whether this is the first, " |
| 239 |
#| "second, or third visit to the internal node, or B<leaf> if it is the " |
| 240 |
#| "single visit to a leaf node. (These symbols are defined in " |
| 241 |
#| "I<E<lt>search.hE<gt>>.) The third argument is the depth of the node, " |
| 242 |
#| "with zero being the root." |
| 243 |
msgid "" |
| 244 |
"B<twalk>() performs depth-first, left-to-right traversal of a binary tree. " |
| 245 |
"I<root> points to the starting node for the traversal. If that node is not " |
| 246 |
"the root, then only part of the tree will be visited. B<twalk>() calls the " |
| 247 |
"user function I<action> each time a node is visited (that is, three times " |
| 248 |
"for an internal node, and once for a leaf). I<action>, in turn, takes three " |
| 249 |
"arguments. The first argument is a pointer to the node being visited. The " |
| 250 |
"structure of the node is unspecified, but it is possible to cast the pointer " |
| 251 |
"to a pointer-to-pointer-to-element in order to access the element stored " |
| 252 |
"within the node. The application must not modify the structure pointed to " |
| 253 |
"by this argument. The second argument is an integer which takes one of the " |
| 254 |
"values B<preorder>, B<postorder>, or B<endorder> depending on whether this " |
| 255 |
"is the first, second, or third visit to the internal node, or the value " |
| 256 |
"B<leaf> if this is the single visit to a leaf node. (These symbols are " |
| 257 |
"defined in I<E<lt>search.hE<gt>>.) The third argument is the depth of the " |
| 258 |
"node; the root node has depth zero." |
| 259 |
msgstr "" |
| 260 |
"B<twalk> realiza un recorrido en profundidad o en anchura de un árbol " |
| 261 |
"binario. I<root> apunta al nodo de comienzo del recorrido. Si el nodo no es " |
| 262 |
"la raíz sólo se visitará parte del árbol. B<twalk> llama a la función de " |
| 263 |
"usuario I<action> cada vez que se visita un nodo (esto es, tres veces para " |
| 264 |
"un nodo interno y una vez para una hoja). I<action>, toma tres argumentos. " |
| 265 |
"El primero es un puntero al nodo que se está visitando. El segundo es un " |
| 266 |
"entero cuyo valor toma algundo de los valores B<preorder>, B<postorder> o " |
| 267 |
"B<endorder> dependiendo de si esta es la primera, sregunda o tercera visita " |
| 268 |
"al nodo interno o B<leaf> si es la única vez que se visita la hoja. (Estos " |
| 269 |
"símbolos están definidos en I<E<lt>search.hE<gt>>). El tercer argumento es " |
| 270 |
"la profundidad del nodo, siendo la profundidad de la raíz cero." |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "" |
| 276 |
"(More commonly, B<preorder>, B<postorder>, and B<endorder> are known as " |
| 277 |
"B<preorder>, B<inorder>, and B<postorder>: before visiting the children, " |
| 278 |
"after the first and before the second, and after visiting the children. " |
| 279 |
"Thus, the choice of name B<post\\%order> is rather confusing.)" |
| 280 |
msgstr "" |
| 281 |
"(Más comúnmente, B<preorder>, B<postorder>, y B<endorder> son conocidos como " |
| 282 |
"B<preorder>, B<inorder>, and B<postorder>: antes de visitar los hijos, " |
| 283 |
"después del primero y antes del segundo, y después de visitar los hijos. " |
| 284 |
"Así, la elección del nombre B<post\\%order> es bastante confusa.)" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "" |
| 290 |
"B<twalk_r>() is similar to B<twalk>(), but instead of the I<depth> " |
| 291 |
"argument, the I<closure> argument pointer is passed to each invocation of " |
| 292 |
"the action callback, unchanged. This pointer can be used to pass " |
| 293 |
"information to and from the callback function in a thread-safe fashion, " |
| 294 |
"without resorting to global variables." |
| 295 |
msgstr "" |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
msgid "" |
| 301 |
"B<tdestroy>() removes the whole tree pointed to by I<root>, freeing all " |
| 302 |
"resources allocated by the B<tsearch>() function. For the data in each " |
| 303 |
"tree node the function I<free_node> is called. The pointer to the data is " |
| 304 |
"passed as the argument to the function. If no such work is necessary, " |
| 305 |
"I<free_node> must point to a function doing nothing." |
| 306 |
msgstr "" |
| 307 |
"B<tdestroy>() elimina el árbol entero apuntado por I<root>, liberando todos " |
| 308 |
"los recursos reservados por la función B<tsearch>. Para los datos en cada " |
| 309 |
"nodo del árbol se llama a la función I<free_node>. El puntero a los datos " |
| 310 |
"es pasado como argumento a la función. Si esta tarea no es necesaria " |
| 311 |
"I<free_node> debe apuntar a una función que no haga nada." |
| 312 |
|
| 313 |
#. type: SH |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
#, no-wrap |
| 317 |
msgid "RETURN VALUE" |
| 318 |
msgstr "VALOR DEVUELTO" |
| 319 |
|
| 320 |
#. type: Plain text |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
#, fuzzy |
| 324 |
#| msgid "" |
| 325 |
#| "B<tsearch> returns a pointer to a matching item in the tree, or to the " |
| 326 |
#| "newly added item, or B<NULL> if there was insufficient memory to add the " |
| 327 |
#| "item. B<tfind> returns a pointer to the item, or B<NULL> if no match is " |
| 328 |
#| "found. If there are multiple elements that match the key, the element " |
| 329 |
#| "returned is unspecified." |
| 330 |
msgid "" |
| 331 |
"B<tsearch>() returns a pointer to a matching node in the tree, or to the " |
| 332 |
"newly added node, or NULL if there was insufficient memory to add the item. " |
| 333 |
"B<tfind>() returns a pointer to the node, or NULL if no match is found. If " |
| 334 |
"there are multiple items that match the key, the item whose node is returned " |
| 335 |
"is unspecified." |
| 336 |
msgstr "" |
| 337 |
"B<tsearch> devuelve un puntero al elemento igual del árbol, o al elemento " |
| 338 |
"añadido, o B<NULL> si no hubo suficiente memoria para añadir el elemento. " |
| 339 |
"B<tfind> devuelve un puntero al elemento, o B<NULL> si no se encuentra " |
| 340 |
"ninguno igual. Si hay múltiples elementos que concuerdan con la clave el " |
| 341 |
"elemento devuelto es inespecificado." |
| 342 |
|
| 343 |
#. type: Plain text |
| 344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 345 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 346 |
#, fuzzy |
| 347 |
#| msgid "" |
| 348 |
#| "B<tdelete> returns a pointer to the parent of the item deleted, or " |
| 349 |
#| "B<NULL> if the item was not found." |
| 350 |
msgid "" |
| 351 |
"B<tdelete>() returns a pointer to the parent of the node deleted, or NULL " |
| 352 |
"if the item was not found. If the deleted node was the root node, " |
| 353 |
"B<tdelete>() returns a dangling pointer that must not be accessed." |
| 354 |
msgstr "" |
| 355 |
"B<tdelete> devuelve un puntero al padre del elemento borrado, o B<NULL> si " |
| 356 |
"no se encontró el elemento." |
| 357 |
|
| 358 |
#. type: Plain text |
| 359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 360 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 361 |
msgid "" |
| 362 |
"B<tsearch>(), B<tfind>(), and B<tdelete>() also return NULL if I<rootp> was " |
| 363 |
"NULL on entry." |
| 364 |
msgstr "" |
| 365 |
"B<tsearch>(), B<tfind>(), y B<tdelete>() devuelven NULL si I<rootp> es NULL " |
| 366 |
"en la entrada a la función." |
| 367 |
|
| 368 |
#. type: SH |
| 369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
#, no-wrap |
| 372 |
msgid "ATTRIBUTES" |
| 373 |
msgstr "ATRIBUTOS" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
msgid "" |
| 379 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 380 |
msgstr "" |
| 381 |
"Para obtener una explicación de los términos usados en esta sección, véase " |
| 382 |
"B<attributes>(7)." |
| 383 |
|
| 384 |
#. type: tbl table |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
#, no-wrap |
| 388 |
msgid "Interface" |
| 389 |
msgstr "Interfaz" |
| 390 |
|
| 391 |
#. type: tbl table |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
#, no-wrap |
| 395 |
msgid "Attribute" |
| 396 |
msgstr "Atributo" |
| 397 |
|
| 398 |
#. type: tbl table |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "Value" |
| 403 |
msgstr "Valor" |
| 404 |
|
| 405 |
#. type: tbl table |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
#, no-wrap |
| 409 |
msgid ".na\n" |
| 410 |
msgstr ".na\n" |
| 411 |
|
| 412 |
#. type: tbl table |
| 413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 415 |
#, no-wrap |
| 416 |
msgid ".nh\n" |
| 417 |
msgstr ".nh\n" |
| 418 |
|
| 419 |
#. type: tbl table |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
#, fuzzy, no-wrap |
| 423 |
#| msgid "" |
| 424 |
#| "B<tsearch>(),\n" |
| 425 |
#| "B<tfind>(),\n" |
| 426 |
msgid "" |
| 427 |
"B<tsearch>(),\n" |
| 428 |
"B<tfind>(),\n" |
| 429 |
"B<tdelete>()" |
| 430 |
msgstr "" |
| 431 |
"B<tsearch>(),\n" |
| 432 |
"B<tfind>(),\n" |
| 433 |
|
| 434 |
#. type: tbl table |
| 435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 436 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 437 |
#, no-wrap |
| 438 |
msgid "Thread safety" |
| 439 |
msgstr "Seguridad del hilo" |
| 440 |
|
| 441 |
#. type: tbl table |
| 442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 444 |
#, fuzzy, no-wrap |
| 445 |
#| msgid "MT-Safe locale" |
| 446 |
msgid "MT-Safe race:rootp" |
| 447 |
msgstr "Configuración regional de multi-hilo seguro" |
| 448 |
|
| 449 |
#. type: TQ |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
#, no-wrap |
| 453 |
msgid "B<twalk>()" |
| 454 |
msgstr "B<twalk>()" |
| 455 |
|
| 456 |
#. type: tbl table |
| 457 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 458 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 459 |
#, fuzzy, no-wrap |
| 460 |
#| msgid "MT-Safe locale" |
| 461 |
msgid "MT-Safe race:root" |
| 462 |
msgstr "Configuración regional de multi-hilo seguro" |
| 463 |
|
| 464 |
#. type: TP |
| 465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 467 |
#, no-wrap |
| 468 |
msgid "B<twalk_r>()" |
| 469 |
msgstr "B<twalk_r>()" |
| 470 |
|
| 471 |
#. type: TP |
| 472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 474 |
#, no-wrap |
| 475 |
msgid "B<tdestroy>()" |
| 476 |
msgstr "B<tdestroy>()" |
| 477 |
|
| 478 |
#. type: tbl table |
| 479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 480 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 481 |
#, no-wrap |
| 482 |
msgid "MT-Safe" |
| 483 |
msgstr "Multi-hilo seguro" |
| 484 |
|
| 485 |
#. type: SH |
| 486 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 487 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 488 |
#, no-wrap |
| 489 |
msgid "STANDARDS" |
| 490 |
msgstr "ESTÁNDARES" |
| 491 |
|
| 492 |
#. type: TP |
| 493 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 494 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 495 |
#, fuzzy, no-wrap |
| 496 |
#| msgid "Searching" |
| 497 |
msgid "B<tsearch>()" |
| 498 |
msgstr "Búsquedas" |
| 499 |
|
| 500 |
#. type: TQ |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
#, fuzzy, no-wrap |
| 504 |
#| msgid "B<bind>(2)" |
| 505 |
msgid "B<tfind>()" |
| 506 |
msgstr "B<bind>(2)" |
| 507 |
|
| 508 |
#. type: TQ |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
#, no-wrap |
| 512 |
msgid "B<tdelete>()" |
| 513 |
msgstr "B<tdelete>()" |
| 514 |
|
| 515 |
#. type: Plain text |
| 516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 517 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 518 |
msgid "POSIX.1-2008." |
| 519 |
msgstr "POSIX.1-2008." |
| 520 |
|
| 521 |
#. type: Plain text |
| 522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 524 |
msgid "GNU." |
| 525 |
msgstr "GNU." |
| 526 |
|
| 527 |
#. type: SH |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
#, no-wrap |
| 531 |
msgid "HISTORY" |
| 532 |
msgstr "HISTORIAL" |
| 533 |
|
| 534 |
#. type: Plain text |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
msgid "POSIX.1-2001, POSIX.1-2008, SVr4." |
| 538 |
msgstr "POSIX.1-2001, POSIX.1-2008, SVr4." |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
#, fuzzy |
| 544 |
#| msgid "Since glibc 2.20:" |
| 545 |
msgid "glibc 2.30." |
| 546 |
msgstr "Desde glibc 2.20:" |
| 547 |
|
| 548 |
#. type: SH |
| 549 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 550 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 551 |
#, no-wrap |
| 552 |
msgid "NOTES" |
| 553 |
msgstr "NOTAS" |
| 554 |
|
| 555 |
#. type: Plain text |
| 556 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 557 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 558 |
msgid "" |
| 559 |
"B<twalk>() takes a pointer to the root, while the other functions take a " |
| 560 |
"pointer to a variable which points to the root." |
| 561 |
msgstr "" |
| 562 |
"B<twalk>() toma un puntero a la raíz, mientra que las otras funciones toman " |
| 563 |
"un puntero a una variable que apunta a la raíz." |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 567 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 568 |
msgid "" |
| 569 |
"B<tdelete>() frees the memory required for the node in the tree. The user " |
| 570 |
"is responsible for freeing the memory for the corresponding data." |
| 571 |
msgstr "" |
| 572 |
"B<tdelete>() libera la memoria necesaria para el elemento en el árbol. El " |
| 573 |
"usuario es el responsable de liberar la memoria de los correspondientes " |
| 574 |
"datos." |
| 575 |
|
| 576 |
#. type: Plain text |
| 577 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 578 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 579 |
msgid "" |
| 580 |
"The example program depends on the fact that B<twalk>() makes no further " |
| 581 |
"reference to a node after calling the user function with argument " |
| 582 |
"\"endorder\" or \"leaf\". This works with the GNU library implementation, " |
| 583 |
"but is not in the System V documentation." |
| 584 |
msgstr "" |
| 585 |
"El programa de ejemplo depende del hecho de que B<twalk>() no vuelve a " |
| 586 |
"referenciar a un nodo después de llamar a la función de usuario con el " |
| 587 |
"argumento \"endorder\" o \"leaf\". Esto funciona con la biblioteca de GNU, " |
| 588 |
"pero no está en la documentación System V." |
| 589 |
|
| 590 |
#. type: SH |
| 591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 592 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 593 |
#, no-wrap |
| 594 |
msgid "EXAMPLES" |
| 595 |
msgstr "EJEMPLOS" |
| 596 |
|
| 597 |
#. type: Plain text |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
msgid "" |
| 601 |
"The following program inserts twelve random numbers into a binary tree, " |
| 602 |
"where duplicate numbers are collapsed, then prints the numbers in order." |
| 603 |
msgstr "" |
| 604 |
"El ejemplo siguiente inserta doce números aleatorios en un árbol binario, " |
| 605 |
"donde los números duplicados se meten hacia abajo, e imprime los números en " |
| 606 |
"orden." |
| 607 |
|
| 608 |
#. type: Plain text |
| 609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 610 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
#, no-wrap |
| 612 |
msgid "" |
| 613 |
"#define _GNU_SOURCE /* Expose declaration of tdestroy() */\n" |
| 614 |
"#include E<lt>search.hE<gt>\n" |
| 615 |
"#include E<lt>stddef.hE<gt>\n" |
| 616 |
"#include E<lt>stdio.hE<gt>\n" |
| 617 |
"#include E<lt>stdlib.hE<gt>\n" |
| 618 |
"#include E<lt>time.hE<gt>\n" |
| 619 |
"\\&\n" |
| 620 |
"static void *root = NULL;\n" |
| 621 |
"\\&\n" |
| 622 |
"static void *\n" |
| 623 |
"xmalloc(size_t n)\n" |
| 624 |
"{\n" |
| 625 |
" void *p;\n" |
| 626 |
"\\&\n" |
| 627 |
" p = malloc(n);\n" |
| 628 |
" if (p)\n" |
| 629 |
" return p;\n" |
| 630 |
" fprintf(stderr, \"insufficient memory\\[rs]n\");\n" |
| 631 |
" exit(EXIT_FAILURE);\n" |
| 632 |
"}\n" |
| 633 |
"\\&\n" |
| 634 |
"static int\n" |
| 635 |
"compare(const void *pa, const void *pb)\n" |
| 636 |
"{\n" |
| 637 |
" if (*(int *) pa E<lt> *(int *) pb)\n" |
| 638 |
" return -1;\n" |
| 639 |
" if (*(int *) pa E<gt> *(int *) pb)\n" |
| 640 |
" return 1;\n" |
| 641 |
" return 0;\n" |
| 642 |
"}\n" |
| 643 |
"\\&\n" |
| 644 |
"static void\n" |
| 645 |
"action(const void *nodep, VISIT which, int depth)\n" |
| 646 |
"{\n" |
| 647 |
" int *datap;\n" |
| 648 |
"\\&\n" |
| 649 |
" switch (which) {\n" |
| 650 |
" case preorder:\n" |
| 651 |
" break;\n" |
| 652 |
" case postorder:\n" |
| 653 |
" datap = *(int **) nodep;\n" |
| 654 |
" printf(\"%6d\\[rs]n\", *datap);\n" |
| 655 |
" break;\n" |
| 656 |
" case endorder:\n" |
| 657 |
" break;\n" |
| 658 |
" case leaf:\n" |
| 659 |
" datap = *(int **) nodep;\n" |
| 660 |
" printf(\"%6d\\[rs]n\", *datap);\n" |
| 661 |
" break;\n" |
| 662 |
" }\n" |
| 663 |
"}\n" |
| 664 |
"\\&\n" |
| 665 |
"int\n" |
| 666 |
"main(void)\n" |
| 667 |
"{\n" |
| 668 |
" int *ptr;\n" |
| 669 |
" int **val;\n" |
| 670 |
"\\&\n" |
| 671 |
" srand(time(NULL));\n" |
| 672 |
" for (unsigned int i = 0; i E<lt> 12; i++) {\n" |
| 673 |
" ptr = xmalloc(sizeof(*ptr));\n" |
| 674 |
" *ptr = rand() & 0xff;\n" |
| 675 |
" val = tsearch(ptr, &root, compare);\n" |
| 676 |
" if (val == NULL)\n" |
| 677 |
" exit(EXIT_FAILURE);\n" |
| 678 |
" if (*val != ptr)\n" |
| 679 |
" free(ptr);\n" |
| 680 |
" }\n" |
| 681 |
" twalk(root, action);\n" |
| 682 |
" tdestroy(root, free);\n" |
| 683 |
" exit(EXIT_SUCCESS);\n" |
| 684 |
"}\n" |
| 685 |
msgstr "" |
| 686 |
|
| 687 |
#. SRC END |
| 688 |
#. type: SH |
| 689 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 690 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 691 |
#, no-wrap |
| 692 |
msgid "SEE ALSO" |
| 693 |
msgstr "VÉASE TAMBIÉN" |
| 694 |
|
| 695 |
#. type: Plain text |
| 696 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 697 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 698 |
msgid "B<bsearch>(3), B<hsearch>(3), B<lsearch>(3), B<qsort>(3)" |
| 699 |
msgstr "B<bsearch>(3), B<hsearch>(3), B<lsearch>(3), B<qsort>(3)" |
| 700 |
|
| 701 |
#. type: TH |
| 702 |
#: debian-trixie |
| 703 |
#, no-wrap |
| 704 |
msgid "2024-06-15" |
| 705 |
msgstr "15 Junio 2024" |
| 706 |
|
| 707 |
#. type: TH |
| 708 |
#: debian-trixie |
| 709 |
#, no-wrap |
| 710 |
msgid "Linux man-pages 6.9.1" |
| 711 |
msgstr "Páginas de Manual de Linux 6.9.1" |
| 712 |
|
| 713 |
#. type: Plain text |
| 714 |
#: debian-trixie |
| 715 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 716 |
msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)" |
| 717 |
|
| 718 |
#. type: Plain text |
| 719 |
#: debian-trixie |
| 720 |
#, no-wrap |
| 721 |
msgid "" |
| 722 |
"B<void *tsearch(const void *>I<key>B<, void **>I<rootp>B<,>\n" |
| 723 |
"B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 724 |
"B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n" |
| 725 |
"B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 726 |
"B<void *tdelete(const void *restrict >I<key>B<, void **restrict >I<rootp>B<,>\n" |
| 727 |
"B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 728 |
"B<void twalk(const void *>I<root>B<,>\n" |
| 729 |
"B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n" |
| 730 |
"B< int >I<depth>B<));>\n" |
| 731 |
msgstr "" |
| 732 |
|
| 733 |
#. type: Plain text |
| 734 |
#: debian-trixie |
| 735 |
#, fuzzy, no-wrap |
| 736 |
#| msgid "" |
| 737 |
#| "B<void twalk_r(const void *>I<root>B<,>\n" |
| 738 |
#| "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n" |
| 739 |
#| "B< void *>I<closure>B<),>\n" |
| 740 |
#| "B< void *>I<closure>B<);>\n" |
| 741 |
msgid "" |
| 742 |
"B<void twalk_r(const void *>I<root>B<,>\n" |
| 743 |
"B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n" |
| 744 |
"B< void *>I<closure>B<),>\n" |
| 745 |
"B< void *>I<closure>B<);>\n" |
| 746 |
"B<void tdestroy(void *>I<root>B<, void (*>I<free_node>B<)(void *>I<nodep>B<));>\n" |
| 747 |
msgstr "" |
| 748 |
"B<void twalk_r(const void *>I<root>B<,>\n" |
| 749 |
"B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n" |
| 750 |
"B< void *>I<closure>B<),>\n" |
| 751 |
"B< void *>I<closure>B<);>\n" |
| 752 |
|
| 753 |
#. type: TH |
| 754 |
#: fedora-44 fedora-rawhide |
| 755 |
#, no-wrap |
| 756 |
msgid "2024-12-13" |
| 757 |
msgstr "13 Diciembre 2024" |
| 758 |
|
| 759 |
#. type: TH |
| 760 |
#: fedora-44 fedora-rawhide |
| 761 |
#, no-wrap |
| 762 |
msgid "Linux man-pages 6.13" |
| 763 |
msgstr "Páginas de Manual de Linux 6.13" |
| 764 |
|
| 765 |
#. type: TH |
| 766 |
#: mageia-cauldron |
| 767 |
#, no-wrap |
| 768 |
msgid "Linux man-pages 6.17" |
| 769 |
msgstr "Páginas de Manual de Linux 6.17" |
| 770 |
|
| 771 |
#. type: TH |
| 772 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 773 |
#, no-wrap |
| 774 |
msgid "Linux man-pages (unreleased)" |
| 775 |
msgstr "Páginas de Manual de Linux (no publicadas)" |