| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "scandir" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "" |
| 50 |
"scandir, scandirat, alphasort, versionsort - scan a directory for matching " |
| 51 |
"entries" |
| 52 |
msgstr "" |
| 53 |
|
| 54 |
#. type: SH |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
#, no-wrap |
| 58 |
msgid "LIBRARY" |
| 59 |
msgstr "" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 63 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 65 |
msgstr "" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "SYNOPSIS" |
| 72 |
msgstr "" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "B<#include E<lt>dirent.hE<gt>>\n" |
| 79 |
msgstr "" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 83 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "" |
| 86 |
"B<int scandir(const char *restrict >I<dirp>B<,>\n" |
| 87 |
"B< struct dirent ***restrict >I<namelist>B<,>\n" |
| 88 |
"B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n" |
| 89 |
"B<typeof(int (const struct dirent **, const struct dirent **))>\n" |
| 90 |
"B< *>I<compar>B<);>\n" |
| 91 |
msgstr "" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "" |
| 98 |
"B<int alphasort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n" |
| 99 |
"B<int versionsort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n" |
| 100 |
msgstr "" |
| 101 |
|
| 102 |
#. type: Plain text |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
#, no-wrap |
| 106 |
msgid "" |
| 107 |
"B<#include E<lt>fcntl.hE<gt>> /* Definition of AT_* constants */\n" |
| 108 |
"B<#include E<lt>dirent.hE<gt>>\n" |
| 109 |
msgstr "" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 113 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
#, no-wrap |
| 115 |
msgid "" |
| 116 |
"B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n" |
| 117 |
"B< struct dirent ***restrict >I<namelist>B<,>\n" |
| 118 |
"B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n" |
| 119 |
"B<typeof(int (const struct dirent **, const struct dirent **))>\n" |
| 120 |
"B< *>I<compar>B<);>\n" |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 126 |
msgid "" |
| 127 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 128 |
msgstr "" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 132 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
msgid "B<scandir>(), B<alphasort>():" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
#, no-wrap |
| 140 |
msgid "" |
| 141 |
" /* Since glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 142 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n" |
| 143 |
msgstr "" |
| 144 |
|
| 145 |
#. type: Plain text |
| 146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 147 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 148 |
msgid "B<versionsort>():" |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
#, no-wrap |
| 155 |
msgid " _GNU_SOURCE\n" |
| 156 |
msgstr "" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "B<scandirat>():" |
| 162 |
msgstr "" |
| 163 |
|
| 164 |
#. type: SH |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
#, no-wrap |
| 168 |
msgid "DESCRIPTION" |
| 169 |
msgstr "" |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 173 |
#: opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"The B<scandir>() function scans the directory I<dirp>, calling I<filter>() " |
| 176 |
"on each directory entry. Entries for which I<filter>() returns nonzero are " |
| 177 |
"stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with " |
| 178 |
"the comparison function I<compar>(), and collected in array I<namelist> " |
| 179 |
"which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are " |
| 180 |
"selected." |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"The B<alphasort>() and B<versionsort>() functions can be used as the " |
| 188 |
"comparison function I<compar>(). The former sorts directory entries using " |
| 189 |
"B<strcoll>(3), the latter using B<strverscmp>(3) on the strings I<(*a)-" |
| 190 |
"E<gt>d_name> and I<(*b)-E<gt>d_name>." |
| 191 |
msgstr "" |
| 192 |
|
| 193 |
#. type: SS |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
#, no-wrap |
| 197 |
msgid "scandirat()" |
| 198 |
msgstr "" |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
msgid "" |
| 204 |
"The B<scandirat>() function operates in exactly the same way as " |
| 205 |
"B<scandir>(), except for the differences described here." |
| 206 |
msgstr "" |
| 207 |
|
| 208 |
#. type: Plain text |
| 209 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 210 |
#: opensuse-tumbleweed |
| 211 |
msgid "" |
| 212 |
"If I<dirp> is relative, then it is interpreted relative to the directory " |
| 213 |
"referred to by the file descriptor I<dirfd> (rather than relative to the " |
| 214 |
"current working directory of the calling process, as is done by " |
| 215 |
"B<scandir>() for a relative pathname)." |
| 216 |
msgstr "" |
| 217 |
|
| 218 |
#. type: Plain text |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
msgid "" |
| 222 |
"If I<dirp> is relative and I<dirfd> is the special value B<AT_FDCWD>, then " |
| 223 |
"I<dirp> is interpreted relative to the current working directory of the " |
| 224 |
"calling process (like B<scandir>())." |
| 225 |
msgstr "" |
| 226 |
|
| 227 |
#. type: Plain text |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
msgid "If I<dirp> is absolute, then I<dirfd> is ignored." |
| 231 |
msgstr "" |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
msgid "See B<openat>(2) for an explanation of the need for B<scandirat>()." |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#. type: SH |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
#, no-wrap |
| 243 |
msgid "RETURN VALUE" |
| 244 |
msgstr "" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "" |
| 250 |
"The B<scandir>() function returns the number of directory entries " |
| 251 |
"selected. On error, -1 is returned, with I<errno> set to indicate the error." |
| 252 |
msgstr "" |
| 253 |
|
| 254 |
#. type: Plain text |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
msgid "" |
| 258 |
"The B<alphasort>() and B<versionsort>() functions return an integer less " |
| 259 |
"than, equal to, or greater than zero if the first argument is considered to " |
| 260 |
"be respectively less than, equal to, or greater than the second." |
| 261 |
msgstr "" |
| 262 |
|
| 263 |
#. type: SH |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
#, no-wrap |
| 267 |
msgid "ERRORS" |
| 268 |
msgstr "" |
| 269 |
|
| 270 |
#. type: TP |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
#, no-wrap |
| 274 |
msgid "B<EBADF>" |
| 275 |
msgstr "" |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
msgid "" |
| 281 |
"(B<scandirat>()) I<dirp> is relative but I<dirfd> is neither B<AT_FDCWD> " |
| 282 |
"nor a valid file descriptor." |
| 283 |
msgstr "" |
| 284 |
|
| 285 |
#. type: TP |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
#, no-wrap |
| 289 |
msgid "B<ENOENT>" |
| 290 |
msgstr "" |
| 291 |
|
| 292 |
#. type: Plain text |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
msgid "The path in I<dirp> does not exist." |
| 296 |
msgstr "" |
| 297 |
|
| 298 |
#. type: TP |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
#, no-wrap |
| 302 |
msgid "B<ENOMEM>" |
| 303 |
msgstr "" |
| 304 |
|
| 305 |
#. type: Plain text |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
msgid "Insufficient memory to complete the operation." |
| 309 |
msgstr "" |
| 310 |
|
| 311 |
#. type: TP |
| 312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 313 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 314 |
#, no-wrap |
| 315 |
msgid "B<ENOTDIR>" |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#. type: Plain text |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
msgid "The path in I<dirp> is not a directory." |
| 322 |
msgstr "" |
| 323 |
|
| 324 |
#. type: Plain text |
| 325 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 326 |
#: opensuse-tumbleweed |
| 327 |
msgid "" |
| 328 |
"(B<scandirat>()) I<dirp> is relative and I<dirfd> is a file descriptor " |
| 329 |
"referring to a file other than a directory." |
| 330 |
msgstr "" |
| 331 |
|
| 332 |
#. type: SH |
| 333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 334 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 335 |
#, no-wrap |
| 336 |
msgid "ATTRIBUTES" |
| 337 |
msgstr "" |
| 338 |
|
| 339 |
#. type: Plain text |
| 340 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 341 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
msgid "" |
| 343 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 344 |
msgstr "" |
| 345 |
|
| 346 |
#. type: tbl table |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
#, no-wrap |
| 350 |
msgid "Interface" |
| 351 |
msgstr "" |
| 352 |
|
| 353 |
#. type: tbl table |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "Attribute" |
| 358 |
msgstr "" |
| 359 |
|
| 360 |
#. type: tbl table |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "Value" |
| 365 |
msgstr "" |
| 366 |
|
| 367 |
#. type: tbl table |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
#, no-wrap |
| 371 |
msgid ".na\n" |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#. type: tbl table |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
#, no-wrap |
| 378 |
msgid ".nh\n" |
| 379 |
msgstr "" |
| 380 |
|
| 381 |
#. type: tbl table |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
#, no-wrap |
| 385 |
msgid "" |
| 386 |
"B<scandir>(),\n" |
| 387 |
"B<scandirat>()" |
| 388 |
msgstr "" |
| 389 |
|
| 390 |
#. type: tbl table |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
#, no-wrap |
| 394 |
msgid "Thread safety" |
| 395 |
msgstr "" |
| 396 |
|
| 397 |
#. type: tbl table |
| 398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 400 |
#, no-wrap |
| 401 |
msgid "MT-Safe" |
| 402 |
msgstr "" |
| 403 |
|
| 404 |
#. type: tbl table |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
#, no-wrap |
| 408 |
msgid "" |
| 409 |
"B<alphasort>(),\n" |
| 410 |
"B<versionsort>()" |
| 411 |
msgstr "" |
| 412 |
|
| 413 |
#. type: tbl table |
| 414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 416 |
#, no-wrap |
| 417 |
msgid "MT-Safe locale" |
| 418 |
msgstr "" |
| 419 |
|
| 420 |
#. type: SH |
| 421 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 422 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 423 |
#, no-wrap |
| 424 |
msgid "STANDARDS" |
| 425 |
msgstr "" |
| 426 |
|
| 427 |
#. type: TP |
| 428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 429 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 430 |
#, no-wrap |
| 431 |
msgid "B<alphasort>()" |
| 432 |
msgstr "" |
| 433 |
|
| 434 |
#. type: TQ |
| 435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 436 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 437 |
#, no-wrap |
| 438 |
msgid "B<scandir>()" |
| 439 |
msgstr "" |
| 440 |
|
| 441 |
#. type: Plain text |
| 442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 444 |
msgid "POSIX.1-2008." |
| 445 |
msgstr "" |
| 446 |
|
| 447 |
#. type: TP |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "B<versionsort>()" |
| 452 |
msgstr "" |
| 453 |
|
| 454 |
#. type: TP |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
#, no-wrap |
| 458 |
msgid "B<scandirat>()" |
| 459 |
msgstr "" |
| 460 |
|
| 461 |
#. type: Plain text |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
msgid "GNU." |
| 465 |
msgstr "" |
| 466 |
|
| 467 |
#. type: SH |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
#, no-wrap |
| 471 |
msgid "HISTORY" |
| 472 |
msgstr "" |
| 473 |
|
| 474 |
#. type: Plain text |
| 475 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 476 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 477 |
msgid "4.3BSD, POSIX.1-2008." |
| 478 |
msgstr "" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "glibc 2.1." |
| 484 |
msgstr "" |
| 485 |
|
| 486 |
#. .P |
| 487 |
#. The functions |
| 488 |
#. .BR scandir () |
| 489 |
#. and |
| 490 |
#. .BR alphasort () |
| 491 |
#. are from 4.3BSD, and have been available under Linux since libc4. |
| 492 |
#. Libc4 and libc5 use the more precise prototype |
| 493 |
#. .sp |
| 494 |
#. .nf |
| 495 |
#. int alphasort(const struct dirent ** a, |
| 496 |
#. const struct dirent **b); |
| 497 |
#. .fi |
| 498 |
#. .sp |
| 499 |
#. but glibc 2.0 returns to the imprecise BSD prototype. |
| 500 |
#. type: Plain text |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
msgid "glibc 2.15." |
| 504 |
msgstr "" |
| 505 |
|
| 506 |
#. type: SH |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
#, no-wrap |
| 510 |
msgid "NOTES" |
| 511 |
msgstr "" |
| 512 |
|
| 513 |
#. type: Plain text |
| 514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 515 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 516 |
msgid "" |
| 517 |
"Since glibc 2.1, B<alphasort>() calls B<strcoll>(3); earlier it used " |
| 518 |
"B<strcmp>(3)." |
| 519 |
msgstr "" |
| 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 "" |
| 525 |
"Before glibc 2.10, the two arguments of B<alphasort>() and " |
| 526 |
"B<versionsort>() were typed as I<const void\\ *>. When B<alphasort>() was " |
| 527 |
"standardized in POSIX.1-2008, the argument type was specified as the type-" |
| 528 |
"safe I<const struct dirent\\ **>, and glibc 2.10 changed the definition of " |
| 529 |
"B<alphasort>() (and the nonstandard B<versionsort>()) to match the " |
| 530 |
"standard." |
| 531 |
msgstr "" |
| 532 |
|
| 533 |
#. type: SH |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
#, no-wrap |
| 537 |
msgid "EXAMPLES" |
| 538 |
msgstr "" |
| 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 |
msgid "" |
| 544 |
"The program below prints a list of the files in the current directory in " |
| 545 |
"reverse order." |
| 546 |
msgstr "" |
| 547 |
|
| 548 |
#. type: SS |
| 549 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 550 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 551 |
#, no-wrap |
| 552 |
msgid "Program source" |
| 553 |
msgstr "" |
| 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 |
#, no-wrap |
| 559 |
msgid "" |
| 560 |
"#define _DEFAULT_SOURCE\n" |
| 561 |
"#include E<lt>dirent.hE<gt>\n" |
| 562 |
"#include E<lt>stdio.hE<gt>\n" |
| 563 |
"#include E<lt>stdlib.hE<gt>\n" |
| 564 |
"\\&\n" |
| 565 |
"int\n" |
| 566 |
"main(void)\n" |
| 567 |
"{\n" |
| 568 |
" struct dirent **namelist;\n" |
| 569 |
" int n;\n" |
| 570 |
"\\&\n" |
| 571 |
" n = scandir(\".\", &namelist, NULL, alphasort);\n" |
| 572 |
" if (n == -1) {\n" |
| 573 |
" perror(\"scandir\");\n" |
| 574 |
" exit(EXIT_FAILURE);\n" |
| 575 |
" }\n" |
| 576 |
"\\&\n" |
| 577 |
" while (n--) {\n" |
| 578 |
" printf(\"%s\\[rs]n\", namelist[n]-E<gt>d_name);\n" |
| 579 |
" free(namelist[n]);\n" |
| 580 |
" }\n" |
| 581 |
" free(namelist);\n" |
| 582 |
"\\&\n" |
| 583 |
" exit(EXIT_SUCCESS);\n" |
| 584 |
"}\n" |
| 585 |
msgstr "" |
| 586 |
|
| 587 |
#. SRC END |
| 588 |
#. type: SH |
| 589 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 590 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 591 |
#, no-wrap |
| 592 |
msgid "SEE ALSO" |
| 593 |
msgstr "" |
| 594 |
|
| 595 |
#. type: Plain text |
| 596 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 597 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 598 |
msgid "" |
| 599 |
"B<closedir>(3), B<fnmatch>(3), B<opendir>(3), B<readdir>(3), " |
| 600 |
"B<rewinddir>(3), B<seekdir>(3), B<strcmp>(3), B<strcoll>(3), " |
| 601 |
"B<strverscmp>(3), B<telldir>(3)" |
| 602 |
msgstr "" |
| 603 |
|
| 604 |
#. type: TH |
| 605 |
#: debian-trixie |
| 606 |
#, no-wrap |
| 607 |
msgid "2024-06-15" |
| 608 |
msgstr "" |
| 609 |
|
| 610 |
#. type: TH |
| 611 |
#: debian-trixie |
| 612 |
#, no-wrap |
| 613 |
msgid "Linux man-pages 6.9.1" |
| 614 |
msgstr "" |
| 615 |
|
| 616 |
#. type: Plain text |
| 617 |
#: debian-trixie |
| 618 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 619 |
msgstr "" |
| 620 |
|
| 621 |
#. type: Plain text |
| 622 |
#: debian-trixie |
| 623 |
#, no-wrap |
| 624 |
msgid "" |
| 625 |
"B<int scandir(const char *restrict >I<dirp>B<,>\n" |
| 626 |
"B< struct dirent ***restrict >I<namelist>B<,>\n" |
| 627 |
"B< int (*>I<filter>B<)(const struct dirent *),>\n" |
| 628 |
"B< int (*>I<compar>B<)(const struct dirent **,>\n" |
| 629 |
"B<const struct dirent **));>\n" |
| 630 |
msgstr "" |
| 631 |
|
| 632 |
#. type: Plain text |
| 633 |
#: debian-trixie |
| 634 |
#, no-wrap |
| 635 |
msgid "" |
| 636 |
"B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n" |
| 637 |
"B< struct dirent ***restrict >I<namelist>B<,>\n" |
| 638 |
"B< int (*>I<filter>B<)(const struct dirent *),>\n" |
| 639 |
"B< int (*>I<compar>B<)(const struct dirent **,>\n" |
| 640 |
"B<const struct dirent **));>\n" |
| 641 |
msgstr "" |
| 642 |
|
| 643 |
#. type: Plain text |
| 644 |
#: debian-trixie fedora-44 fedora-rawhide |
| 645 |
msgid "" |
| 646 |
"The B<scandir>() function scans the directory I<dirp>, calling I<filter>() " |
| 647 |
"on each directory entry. Entries for which I<filter>() returns nonzero are " |
| 648 |
"stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with " |
| 649 |
"the comparison function I<compar>(), and collected in array I<namelist> " |
| 650 |
"which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are " |
| 651 |
"selected." |
| 652 |
msgstr "" |
| 653 |
|
| 654 |
#. type: Plain text |
| 655 |
#: debian-trixie fedora-44 fedora-rawhide |
| 656 |
msgid "" |
| 657 |
"If the pathname given in I<dirp> is relative, then it is interpreted " |
| 658 |
"relative to the directory referred to by the file descriptor I<dirfd> " |
| 659 |
"(rather than relative to the current working directory of the calling " |
| 660 |
"process, as is done by B<scandir>() for a relative pathname)." |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#. type: Plain text |
| 664 |
#: debian-trixie fedora-44 fedora-rawhide |
| 665 |
msgid "" |
| 666 |
"(B<scandirat>()) I<dirp> is a relative pathname and I<dirfd> is a file " |
| 667 |
"descriptor referring to a file other than a directory." |
| 668 |
msgstr "" |
| 669 |
|
| 670 |
#. type: TH |
| 671 |
#: fedora-44 fedora-rawhide |
| 672 |
#, no-wrap |
| 673 |
msgid "2024-12-13" |
| 674 |
msgstr "" |
| 675 |
|
| 676 |
#. type: TH |
| 677 |
#: fedora-44 fedora-rawhide |
| 678 |
#, no-wrap |
| 679 |
msgid "Linux man-pages 6.13" |
| 680 |
msgstr "" |
| 681 |
|
| 682 |
#. type: TH |
| 683 |
#: mageia-cauldron |
| 684 |
#, no-wrap |
| 685 |
msgid "Linux man-pages 6.17" |
| 686 |
msgstr "" |
| 687 |
|
| 688 |
#. type: TH |
| 689 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 690 |
#, no-wrap |
| 691 |
msgid "Linux man-pages (unreleased)" |
| 692 |
msgstr "" |