glob



Liczniki odwiedzin | Księgi gości | Metal Lyrics | Znaczenie imion | Konwerter | Wolne domeny | Informacje o samochodach | Zakupy w UK | | | | | | | wyposażenie warsztatów | Wypoczynek nad jeziorami




NAME

       glob,  globfree  - find pathnames matching a pattern, free
       memory from glob()


SYNOPSIS

       #include <glob.h>

       int glob(const char *pattern, int flags,
                int errfunc(const char * epath, int eerrno),
                glob_t *pglob);
       void globfree(glob_t *pglob);


DESCRIPTION

       The glob() function searches for all the pathnames  match-
       ing  pattern according to the rules used by the shell (see
       glob(7)).  No tilde expansion or parameter substitution is
       done.

       The  globfree()  function  frees the dynamically allocated
       storage from an earlier call to glob().

       The results of a glob() call are stored in  the  structure
       pointed  to  by pglob, which is a glob_t which is declared
       in <glob.h> as

          typedef struct
          {
                  int gl_pathc;       /* Count of paths matched so far  */
                  char **gl_pathv;    /* List of matched pathnames.  */
                  int gl_offs;        /* Slots to be reserved in `gl_pathv'.  */
                  int gl_flags;       /* Flags for globbing  */
          } glob_t;

       Results are stored in dynamically allocated storage.

       The parameter flags is made up of bitwise OR  of  zero  or
       more the following symbolic constants, which modify the of
       behaviour of glob():

       GLOB_ERR
              which means to return upon read  error  (because  a
              directory  does not have read permission, for exam-
              ple).

       GLOB_MARK
              which means to append a slash to  each  path  which
              corresponds to a directory,

       GLOB_NOSORT
              which means don't sort the returned pathnames (they
              are by default),

       GLOB_DOOFS
              which  means  that  pglob->gl_offs  slots  will  be
              reserved at the beginning of the list of strings in
              pglob->pathv,

       GLOB_NOCHECK
              which means that, if no pattern matches, to  return
              the original pattern,

       GLOB_APPEND
              which  means to append to the results of a previous
              call.  Do not set this flag on the first invocation
              of glob().

       GLOB_NOESCAPE
              which  means  that meta characters cannot be quoted
              by backspaces, and

       GLOB_PERIOD
              which means that a leading period can be matched by
              meta characters.

       If  errfunc  is  not NULL, it will be called in case of an
       error with the arguments epath a pointer to the path which
       failed  and eerrno the value of errno as returned from one
       of the calls  to  opendir(),  readdir(),  or  stat().   If
       errfunc  returns non - zero, or if GLOB_ERR is set, glob()
       will terminate after the call to errfunc.

       Upon successful return, pglob->gl_pathc contains the  num-
       ber  of matched pathnames and pglob->gl_pathv a pointer to
       the list of matched pathnames.  The  first  pointer  after
       the last pathname is NULL.

       It  is  possible  to  call  glob() several times.  In that
       case, the GLOB_APPEND flag has to be set in flags  on  the
       second and later invocations.


RETURN VALUES

       On successful completion, glob() returns zero.  Other pos-
       sible returns are:

       GLOB_NOSPACE
              for running out of memory,

       GLOB_ABEND
              for a read error, and

       GLOB_NOMATCH
              for no found matches.


EXAMPLES

       One example of use is the following code, which  simulates
       typing ls -l *.c ../*.c in the shell.

          glob_t globbuf;
          globbuf.gl_offs = 2;
          glob("*.c", GLOB_DOOFS, NULL, &globbuf);
          glob("../*.c", GLOB_DOOFS | GLOB_APPEND, NULL, &globbuf);
          globbuf.gl_pathv[0] = "ls";
          globbuf.gl_pathv[1] = "-l";
          execvp("ls", &globbuf.gl_pathv[0]);


CONFORMS TO

       proposed POSIX.2


BUGS

       The  glob() function may fail due to failure of underlying
       function calls, such as malloc() or opendir().  These will
       store their error code in errno.

       POSIX.2  is  not yet an approved standard; the information
       in this manpage is subject to change.


SEE ALSO

       ls(1), sh(1),  exec(2),  stat(2),  malloc(3),  opendir(3),
       readdir(3), wordexp(3), glob(7)

  Księgarnia

- Oferta księgarni Mentis
- Oferta księgarni Onepress
- Linux Manual (english)
- Konstytucje
- Kręgosłup, bóle karku
- Elektroniczne książki
- Prasa elektroniczna
- Gry RPG, figurki
- darmowy słownik on-line
- jubiler - biżuteria
- polityka prywatności





Linux - Welsh Matt, Dalheimer Matthias Kalle, Kaufman Lar Linux
Autor: Welsh Matt, Dalheimer Matthias Kalle, Kaufman Lar
Cena: 85.44
Rok wydania: 2000
Wydawnictwo: Read Me
Ilość stron: 700
Linux - bezpieczeństwo serwerów - Michael D.Bauer Linux - bezpieczeństwo serwerów
Autor: Michael D.Bauer
Cena: 58.88
Rok wydania: 2003
Wydawnictwo: Read Me
Ilość stron: 488
Linux kernel - Daniel P. Bovet, Marco Cesati Linux kernel
Autor: Daniel P. Bovet, Marco Cesati
Cena: 85.44
Rok wydania: 2001
Wydawnictwo: Read Me
Ilość stron: 634
Linux. Programowanie dla zaawansowanych - Mark Mitchell. Jeffrey Oldham, Alex Samuel Linux. Programowanie dla zaawansowanych
Autor: Mark Mitchell. Jeffrey Oldham, Alex Samuel
Cena: 42.32
Rok wydania: 2002
Wydawnictwo: Read Me
Ilość stron: 300
Linux: Systemy plików - Moshe Bar Linux: Systemy plików
Autor: Moshe Bar
Cena: 51.52
Rok wydania: 2002
Wydawnictwo: Read Me
Ilość stron: 332
Linux. Archiwizacja danych - Leszek Madeja Linux. Archiwizacja danych
Autor: Leszek Madeja
Cena: 17.60
Rok wydania: 2003
Wydawnictwo: Mikom
Ilość stron:
Linux i galanteria SCSI - Leszek Madeja Linux i galanteria SCSI
Autor: Leszek Madeja
Cena: 10.80
Rok wydania: 2003
Wydawnictwo: Mikom
Ilość stron: 88
Bezpieczeństwo systemu Linux - Ramón J. Honta&ntilde;ón Bezpieczeństwo systemu Linux
Autor: Ramón J. Honta&ntilde;ón
Cena: 44.62
Rok wydania: 2002
Wydawnictwo: Mikom
Ilość stron: 464
Korzystanie z drukarki. Ćwiczenia z systemu Linux - Leszek Madeja Korzystanie z drukarki. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 16.80
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 192
Korzystanie z pomocy. Ćwiczenia z systemu Linux - Leszek Madeja Korzystanie z pomocy. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 15.40
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 152
Linux - książka kucharska - Michael Stutz Linux - książka kucharska
Autor: Michael Stutz
Cena: 47.84
Rok wydania: 2002
Wydawnictwo: Mikom
Ilość stron: 488
Linux. Gniazda w programowaniu - Woren W. Gay Linux. Gniazda w programowaniu
Autor: Woren W. Gay
Cena: 47.29
Rok wydania: 2001
Wydawnictwo: Mikom
Ilość stron: 552
LINUX. Rozwiązywanie problemów - Brian Ward LINUX. Rozwiązywanie problemów
Autor: Brian Ward
Cena: 33.92
Rok wydania: 2001
Wydawnictwo: Mikom
Ilość stron: 312
Midnight Commander. Ćwiczenia z systemu Linux - Leszek Madeja Midnight Commander. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 23.80
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 272
Red Hat Linux 6.2 same konkrety - Bob Rankin Red Hat Linux 6.2 same konkrety
Autor: Bob Rankin
Cena: 39.74
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 372
Caldera Linux 2.3 dla każdego - Bill Ball Caldera Linux 2.3 dla każdego
Autor: Bill Ball
Cena: 49.00
Rok wydania: 2000
Wydawnictwo: Helion
Ilość stron: 400
Linux. Praktyczne rozwiązania - Adam Podstawczyński Linux. Praktyczne rozwiązania
Autor: Adam Podstawczyński
Cena: 35.00
Rok wydania: 2000
Wydawnictwo: Helion
Ilość stron: 248
Red Hat Linux 7.3. Księga eksperta - Bill Ball Red Hat Linux 7.3. Księga eksperta
Autor: Bill Ball
Cena: 110.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 752
Linux w sieci - Adam Podstawczyński Linux w sieci
Autor: Adam Podstawczyński
Cena: 39.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 224
Red Hat Linux 7.2. Ćwiczenia praktyczne - Jerzy Marczyński Red Hat Linux 7.2. Ćwiczenia praktyczne
Autor: Jerzy Marczyński
Cena: 18.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 176






ksiegarnia.pila.pl exists since 2005 year.
Provided by: Przemysław Krajniak, PHP Scripts