VirtualBox

Changeset 3532 in kBuild


Ignore:
Timestamp:
Dec 20, 2021 10:51:05 PM (3 years ago)
Author:
bird
Message:

grep: Initial windows config and adjustments.

Location:
trunk/src/grep
Files:
3 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/grep/config.win.h

    r3531 r3532  
    1 /* config.hin.  Generated from configure.ac by autoheader.  */
     1/* config.hin.  Manually edited */
     2#ifndef INCLUDED_CONFIG_WIN_H
     3#define INCLUDED_CONFIG_WIN_H
     4
     5#if 1
     6
     7/* HACK ALERT! Make inlined CRT functions static to avoid getting duplicate
     8   symbols errors for things like _vprintf_l.  */
     9# define _CRT_STDIO_INLINE static __inline
     10
     11/* HACK ALERT! Ugly ugly hack for making __local_stdio_printf_options static
     12   and not to cause stupid stupid duplicate symbols linker errors. */
     13# include <corecrt.h>
     14# undef _CRT_INLINE_PURE_SECURITYCRITICAL_ATTRIBUTE
     15# define _CRT_INLINE_PURE_SECURITYCRITICAL_ATTRIBUTE static
     16
     17/* HACK ALERT! wchar.h requires __inline temporarily redefined to static _inline or
     18   we'll end up with mbsinit wmemchr, wmemcmp, wmemcpy and friends as duplicates.  */
     19# include <stdio.h>
     20# include <conio.h>
     21# include <string.h>
     22# include <time.h>
     23# include <sys/stat.h>
     24# define __inline static _inline
     25# include <wchar.h>
     26# undef __inline
     27
     28#endif
    229
    330/* CPU and C ABI indicator */
     
    174201   compilers. Use 'FLEXSIZEOF (struct s, d, N * sizeof (short))' to calculate
    175202   the size in bytes of such a struct containing an N-element array. */
    176 #undef FLEXIBLE_ARRAY_MEMBER
     203#define FLEXIBLE_ARRAY_MEMBER 1
    177204
    178205/* Define to 1 if fopen() fails to recognize a trailing slash. */
     
    227254/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
    228255   whether the gnulib module openat shall be considered present. */
    229 #undef GNULIB_OPENAT
     256#define GNULIB_OPENAT 1
    230257
    231258/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
    232259   whether the gnulib module openat-safer shall be considered present. */
    233 #undef GNULIB_OPENAT_SAFER
     260#define GNULIB_OPENAT_SAFER 1
    234261
    235262/* enable some gnulib portability checks */
     
    274301/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
    275302   whether the gnulib module strerror_r-posix shall be considered present. */
    276 #undef GNULIB_STRERROR_R_POSIX
     303#define GNULIB_STRERROR_R_POSIX 0
    277304
    278305/* Define to 1 when the gnulib module accept should be tested. */
     
    619646/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
    620647   whether the gnulib module xalloc shall be considered present. */
    621 #undef GNULIB_XALLOC
     648#define GNULIB_XALLOC 1
    622649
    623650/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
    624651   whether the gnulib module xalloc-die shall be considered present. */
    625 #undef GNULIB_XALLOC_DIE
     652#define GNULIB_XALLOC_DIE 1
    626653
    627654/* We are building grep */
    628 #undef GREP
     655#define GREP
    629656
    630657/* Define to 1 if you have 'alloca' after including <alloca.h>, a header that
     
    659686
    660687/* Define to 1 if you have the `closedir' function. */
    661 #undef HAVE_CLOSEDIR
     688#define HAVE_CLOSEDIR 1
    662689
    663690/* Define to 1 if you have the <crtdefs.h> header file. */
     
    690717/* Define to 1 if you have the declaration of `fchdir', and to 0 if you don't.
    691718   */
    692 #undef HAVE_DECL_FCHDIR
     719#define HAVE_DECL_FCHDIR 0
    693720
    694721/* Define to 1 if you have the declaration of `fcloseall', and to 0 if you
     
    742769/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
    743770   you don't. */
    744 #undef HAVE_DECL_GETCHAR_UNLOCKED
     771#define HAVE_DECL_GETCHAR_UNLOCKED 0
    745772
    746773/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
    747774   don't. */
    748 #undef HAVE_DECL_GETC_UNLOCKED
     775#define HAVE_DECL_GETC_UNLOCKED 0
    749776
    750777/* Define to 1 if you have the declaration of `getdtablesize', and to 0 if you
     
    758785/* Define to 1 if you have the declaration of `isblank', and to 0 if you
    759786   don't. */
    760 #undef HAVE_DECL_ISBLANK
     787#define HAVE_DECL_ISBLANK 0
    761788
    762789/* Define to 1 if you have the declaration of `iswblank', and to 0 if you
    763790   don't. */
    764 #undef HAVE_DECL_ISWBLANK
     791#define HAVE_DECL_ISWBLANK 1
    765792
    766793/* Define to 1 if you have the declaration of `mbrlen', and to 0 if you don't.
    767794   */
    768 #undef HAVE_DECL_MBRLEN
     795#define HAVE_DECL_MBRLEN 1
    769796
    770797/* Define to 1 if you have the declaration of `mbrtowc', and to 0 if you
    771798   don't. */
    772 #undef HAVE_DECL_MBRTOWC
     799#define HAVE_DECL_MBRTOWC 1
    773800
    774801/* Define to 1 if you have the declaration of `mbsinit', and to 0 if you
    775802   don't. */
    776 #undef HAVE_DECL_MBSINIT
     803#define HAVE_DECL_MBSINIT 0
    777804
    778805/* Define to 1 if you have the declaration of `mbsrtowcs', and to 0 if you
    779806   don't. */
    780 #undef HAVE_DECL_MBSRTOWCS
     807#define HAVE_DECL_MBSRTOWCS 0
    781808
    782809/* Define to 1 if you have the declaration of `memrchr', and to 0 if you
    783810   don't. */
    784 #undef HAVE_DECL_MEMRCHR
     811#define HAVE_DECL_MEMRCHR 0
    785812
    786813/* Define to 1 if you have the declaration of `program_invocation_name', and
    787814   to 0 if you don't. */
    788 #undef HAVE_DECL_PROGRAM_INVOCATION_NAME
     815#define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
    789816
    790817/* Define to 1 if you have the declaration of `program_invocation_short_name',
    791818   and to 0 if you don't. */
    792 #undef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
     819#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
    793820
    794821/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
    795822   you don't. */
    796 #undef HAVE_DECL_PUTCHAR_UNLOCKED
     823#define HAVE_DECL_PUTCHAR_UNLOCKED 0
    797824
    798825/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
    799826   don't. */
    800 #undef HAVE_DECL_PUTC_UNLOCKED
     827#define HAVE_DECL_PUTC_UNLOCKED 0
    801828
    802829/* Define to 1 if you have the declaration of `setenv', and to 0 if you don't.
    803830   */
    804 #undef HAVE_DECL_SETENV
     831#define HAVE_DECL_SETENV 0
    805832
    806833/* Define to 1 if you have the declaration of `sleep', and to 0 if you don't.
    807834   */
    808 #undef HAVE_DECL_SLEEP
     835#define HAVE_DECL_SLEEP 0
    809836
    810837/* Define to 1 if you have the declaration of `snprintf', and to 0 if you
    811838   don't. */
    812 #undef HAVE_DECL_SNPRINTF
     839#define HAVE_DECL_SNPRINTF 1
    813840
    814841/* Define to 1 if you have the declaration of `strdup', and to 0 if you don't.
    815842   */
    816 #undef HAVE_DECL_STRDUP
     843#define HAVE_DECL_STRDUP 1
    817844
    818845/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
    819846   don't. */
    820 #undef HAVE_DECL_STRERROR_R
     847#define HAVE_DECL_STRERROR_R 1
    821848
    822849/* Define to 1 if you have the declaration of `strnlen', and to 0 if you
    823850   don't. */
    824 #undef HAVE_DECL_STRNLEN
     851#define HAVE_DECL_STRNLEN 1
    825852
    826853/* Define to 1 if you have the declaration of `strtoimax', and to 0 if you
    827854   don't. */
    828 #undef HAVE_DECL_STRTOIMAX
     855#define HAVE_DECL_STRTOIMAX 1
    829856
    830857/* Define to 1 if you have the declaration of `strtoll', and to 0 if you
    831858   don't. */
    832 #undef HAVE_DECL_STRTOLL
     859#define HAVE_DECL_STRTOLL 1
    833860
    834861/* Define to 1 if you have the declaration of `strtoull', and to 0 if you
    835862   don't. */
    836 #undef HAVE_DECL_STRTOULL
     863#define HAVE_DECL_STRTOULL 1
    837864
    838865/* Define to 1 if you have the declaration of `strtoumax', and to 0 if you
    839866   don't. */
    840 #undef HAVE_DECL_STRTOUMAX
     867#define HAVE_DECL_STRTOUMAX 1
    841868
    842869/* Define to 1 if you have the declaration of `towlower', and to 0 if you
    843870   don't. */
    844 #undef HAVE_DECL_TOWLOWER
     871#define HAVE_DECL_TOWLOWER 1
    845872
    846873/* Define to 1 if you have the declaration of `unsetenv', and to 0 if you
    847874   don't. */
    848 #undef HAVE_DECL_UNSETENV
     875#define HAVE_DECL_UNSETENV 0
    849876
    850877/* Define to 1 if you have the declaration of `wcrtomb', and to 0 if you
    851878   don't. */
    852 #undef HAVE_DECL_WCRTOMB
     879#define HAVE_DECL_WCRTOMB 0
    853880
    854881/* Define to 1 if you have the declaration of `wcsdup', and to 0 if you don't.
    855882   */
    856 #undef HAVE_DECL_WCSDUP
     883#define HAVE_DECL_WCSDUP 1
    857884
    858885/* Define to 1 if you have the declaration of `wctob', and to 0 if you don't.
    859886   */
    860 #undef HAVE_DECL_WCTOB
     887#define HAVE_DECL_WCTOB 1
    861888
    862889/* Define to 1 if you have the declaration of `wcwidth', and to 0 if you
    863890   don't. */
    864 #undef HAVE_DECL_WCWIDTH
     891#define HAVE_DECL_WCWIDTH 0
    865892
    866893/* Define to 1 if you have the declaration of `_putenv', and to 0 if you
    867894   don't. */
    868 #undef HAVE_DECL__PUTENV
     895#define HAVE_DECL__PUTENV 1
    869896
    870897/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
     
    874901/* Define to 1 if you have the declaration of `__argv', and to 0 if you don't.
    875902   */
    876 #undef HAVE_DECL___ARGV
     903#define HAVE_DECL___ARGV 1
    877904
    878905/* Define to 1 if you have the declaration of `__fpending', and to 0 if you
    879906   don't. */
    880 #undef HAVE_DECL___FPENDING
     907#define HAVE_DECL___FPENDING 0
    881908
    882909/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
     
    946973
    947974/* Define to 1 if you have the `getprogname' function. */
    948 #undef HAVE_GETPROGNAME
     975#define HAVE_GETPROGNAME 1
     976const char *getprogname(void);
    949977
    950978/* Define to 1 if you have the `getrlimit' function. */
     
    10691097
    10701098/* Define to 1 if you have the `mempcpy' function. */
    1071 #undef HAVE_MEMPCPY
     1099#define HAVE_MEMPCPY 1
     1100
     1101#include <string.h>
     1102static _inline void *mempcpy(void *pvDst, const void *pvSrc, size_t cb)
     1103{
     1104    return (char *)memcpy(pvDst, pvSrc, cb) + cb;
     1105}
    10721106
    10731107/* Define to 1 if you have the `memrchr' function. */
    10741108#undef HAVE_MEMRCHR
     1109void *memrchr(const void *, int, size_t);
    10751110
    10761111/* Define to 1 if you have the <minix/config.h> header file. */
     
    11131148
    11141149/* Define to 1 if you have the `openat' function. */
    1115 #undef HAVE_OPENAT
     1150#define HAVE_OPENAT 1
    11161151
    11171152/* Define to 1 if you have the `opendir' function. */
    1118 #undef HAVE_OPENDIR
     1153#define HAVE_OPENDIR 1
    11191154
    11201155/* Define to 1 if you have the <OS.h> header file. */
     
    11561191
    11571192/* Define to 1 if you have the `rawmemchr' function. */
    1158 #undef HAVE_RAWMEMCHR
     1193#define HAVE_RAWMEMCHR 1
     1194
     1195
     1196#include <string.h>
     1197static _inline void *rawmemchr(const void *pv, int ch)
     1198{
     1199    return memchr(pv, ch, ~(size_t)0 / 4);
     1200}
    11591201
    11601202/* Define to 1 if you have the `readdir' function. */
    1161 #undef HAVE_READDIR
     1203#define HAVE_READDIR 1
    11621204
    11631205/* Define to 1 if you have the `reallocarray' function. */
     
    11831225
    11841226/* Define to 1 if you have the `setlocale' function. */
    1185 #undef HAVE_SETLOCALE
     1227#define HAVE_SETLOCALE 1
    11861228
    11871229/* Define to 1 if you have the `setrlimit' function. */
     
    12531295
    12541296/* Define to 1 if you have the `strerror_r' function. */
    1255 #undef HAVE_STRERROR_R
     1297#define HAVE_STRERROR_R 1
     1298#include <string.h>
     1299static _inline int strerror_r(int iErr, char *pszDst, size_t cbDst)
     1300{
     1301    return strerror_s(pszDst, cbDst, iErr);
     1302}
    12561303
    12571304/* Define to 1 if you have the <strings.h> header file. */
     
    15651612
    15661613/* Name of package */
    1567 #undef PACKAGE
     1614#define PACKAGE "kmk_grep"
    15681615
    15691616/* Define to the address where bug reports for this package should be sent. */
    1570 #undef PACKAGE_BUGREPORT
     1617#define PACKAGE_BUGREPORT "[email protected]"
    15711618
    15721619/* Define to the full name of this package. */
    1573 #undef PACKAGE_NAME
     1620#define PACKAGE_NAME "kmk_grep"
    15741621
    15751622/* String identifying the packager of this software */
     
    15921639
    15931640/* Define to the version of this package. */
    1594 #undef PACKAGE_VERSION
     1641#define PACKAGE_VERSION "3.7"
    15951642
    15961643/* Define to the type that is the result of default argument promotions of
    15971644   type mode_t. */
    1598 #undef PROMOTED_MODE_T
     1645#define PROMOTED_MODE_T uintptr_t
    15991646
    16001647/* Define if pthread_create is an inline function. */
     
    16221669
    16231670/* Define to 1 if gnulib's fchdir() replacement is used. */
    1624 #undef REPLACE_FCHDIR
     1671#define REPLACE_FCHDIR 1
    16251672
    16261673/* Define to 1 if stat needs help when passed a file name with a trailing
     
    17211768/* Enable GNU extensions on systems that have them.  */
    17221769#ifndef _GNU_SOURCE
    1723 # undef _GNU_SOURCE
     1770# define _GNU_SOURCE
    17241771#endif
    17251772/* Enable X/Open compliant socket functions that do not require linking
     
    18021849
    18031850/* Version number of package */
    1804 #undef VERSION
     1851#define VERSION PACKAGE_VERSION
    18051852
    18061853/* Define to 1 if unsetenv returns void instead of int. */
     
    24172464   nothing if this is not supported.  Do not define if restrict is
    24182465   supported only directly.  */
    2419 #undef restrict
     2466#define restrict
    24202467/* Work around a bug in older versions of Sun C++, which did not
    24212468   #define __restrict__ or support _Restrict or __restrict__
     
    24362483
    24372484/* Define as a signed type of the same size as size_t. */
    2438 #undef ssize_t
     2485#define ssize_t ptrdiff_t
    24392486
    24402487/* Define to 'struct sigaltstack' if that's the type of the argument to
     
    24632510/* Define as a macro for copying va_list variables. */
    24642511#undef va_copy
     2512
     2513typedef unsigned mode_t;
     2514
     2515/* Include windows.h here before DATADIR is defined, as it conflicts with objidl.h. */
     2516#include <windows.h>
     2517
     2518/* Hack! */
     2519#include <arg-nonnull.h>
     2520
     2521/* More hacks */
     2522#define _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD(a, b)
     2523
     2524/* S_ISXXX macros: */
     2525#include <sys/stat.h>
     2526#include <nt/ntstat.h>
     2527#ifndef S_ISCHR
     2528# define S_ISCHR(x) 0
     2529#endif
     2530#ifndef S_ISBLK
     2531# define S_ISBLK(x) 0
     2532#endif
     2533#ifndef S_ISSOCK
     2534# define S_ISSOCK(x) 0
     2535#endif
     2536#ifndef S_ISFIFO
     2537# define S_ISFIFO(x) 0
     2538#endif
     2539#ifndef S_TYPEISSHM
     2540# define S_TYPEISSHM(x) 0
     2541#endif
     2542#ifndef S_TYPEISTMO
     2543# define S_TYPEISTMO(x) 0
     2544#endif
     2545
     2546/* Missing these: */
     2547#define STDIN_FILENO 0
     2548#define STDOUT_FILENO 1
     2549#define STDERR_FILENO 2
     2550
     2551/* Missing open flags.*/
     2552#include <nt/ntopenat.h>
     2553#ifndef O_NOCTTY
     2554# define O_NOCTTY 0
     2555#endif
     2556#ifndef O_NOFOLLOW
     2557# define O_NOFOLLOW 0
     2558#endif
     2559#ifndef O_NOLINK
     2560# define O_NOLINK 0
     2561#endif
     2562#ifndef O_NOLINKS
     2563# define O_NOLINKS 0
     2564#endif
     2565#ifndef O_NOTRANS
     2566# define O_NOTRANS 0
     2567#endif
     2568#ifndef O_NONBLOCK
     2569# define O_NONBLOCK 0
     2570#endif
     2571#ifndef O_SEARCH
     2572# define O_SEARCH 0
     2573#endif
     2574#ifndef O_CLOEXEC
     2575# define O_CLOEXEC _O_NOINHERIT
     2576#endif
     2577
     2578/* Some prototypes of gnulib functions put here to avoid needing to mess with
     2579   stdlib.in.h, string.in.h and wchar.in.h since MSC has no include_next facility. */
     2580extern void *reallocarray(void *, size_t, size_t);
     2581extern int mbscasecmp(const char *, const char *);
     2582extern wchar_t *wmempcpy(wchar_t *, const wchar_t *, size_t);
     2583extern int wcwidth(wchar_t);
     2584
     2585#define strerror gl_strerror
     2586
     2587/* Override initialize_main to do wildcard expansion. */
     2588#define initialize_main w32_initialize_main
     2589
     2590#endif /* !INCLUDED_CONFIG_WIN_H */
     2591
  • trunk/src/grep/lib/binary-io.h

    r3529 r3532  
    3939#  define __gl_setmode setmode
    4040# else
     41#  ifdef KMK_GREP
     42#   include <io.h> /* declares _setmode() */
     43#  endif
    4144#  define __gl_setmode _setmode
    4245#  undef fileno
  • trunk/src/grep/lib/dfa.c

    r3529 r3532  
    297297  RPAREN,                       /* RPAREN never appears in the parse tree.  */
    298298
     299#if defined(KMK_GREP) && defined(KBUILD_OS_WINDOWS)
     300# define WCHAR DFA_WCHAR
     301#endif
    299302  WCHAR,                        /* Only returned by lex.  wctok contains
    300303                                   the wide character representation.  */
  • trunk/src/grep/lib/dup-safer-flag.c

    r3529 r3532  
    3434dup_safer_flag (int fd, int flag)
    3535{
     36#if defined(KMK_GREP) && defined(_MSC_VER)
     37  int afd[STDERR_FILENO + 1];
     38  int i;
     39  for (i = 0; ; i++)
     40    {
     41      int fdNew = _dup(fd);
     42      if (fdNew >= STDERR_FILENO + 1 || fdNew < 0)
     43        {
     44          while (i-- > 0)
     45            close(afd[i]);
     46          return fdNew;
     47        }
     48      afd[i] = fdNew;
     49    }
     50#else
    3651  return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD,
    3752                STDERR_FILENO + 1);
     53#endif
    3854}
  • trunk/src/grep/lib/dup-safer.c

    r3529 r3532  
    3131dup_safer (int fd)
    3232{
     33#if defined(KMK_GREP) && defined(_MSC_VER)
     34  int afd[STDERR_FILENO + 1];
     35  int i;
     36  for (i = 0; ; i++)
     37    {
     38      int fdNew = _dup(fd);
     39      if (fdNew >= STDERR_FILENO + 1 || fdNew < 0)
     40        {
     41          while (i-- > 0)
     42            close(afd[i]);
     43          return fdNew;
     44        }
     45      afd[i] = fdNew;
     46    }
     47#else
    3348  return fcntl (fd, F_DUPFD, STDERR_FILENO + 1);
     49#endif
    3450}
  • trunk/src/grep/lib/fnmatch.in.h

    r3529 r3532  
    3434
    3535/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
     36#if defined(KMK_GREP)
     37# include "c++defs.h"
     38#endif
    3639
    3740/* The definition of _GL_ARG_NONNULL is copied here.  */
     41#if defined(KMK_GREP)
     42# include "arg-nonnull.h"
     43#endif
    3844
    3945/* The definition of _GL_WARN_ON_USE is copied here.  */
  • trunk/src/grep/lib/regcomp.c

    r3529 r3532  
    880880                       != 0);
    881881#else
     882# ifdef _MSC_VER
     883  (void)codeset_name;
     884  if (GetACP() == 65001 /*utf-8*/)
     885# else
    882886  codeset_name = nl_langinfo (CODESET);
    883887  if ((codeset_name[0] == 'U' || codeset_name[0] == 'u')
     
    885889      && (codeset_name[2] == 'F' || codeset_name[2] == 'f')
    886890      && strcmp (codeset_name + 3 + (codeset_name[3] == '-'), "8") == 0)
     891# endif
    887892    dfa->is_utf8 = 1;
    888893
  • trunk/src/grep/lib/regex_internal.h

    r3529 r3532  
    2626#include <string.h>
    2727
     28#if !defined(KMK_GREP) || !defined(_MSC_VER)
    2829#include <langinfo.h>
     30#endif
    2931#include <locale.h>
    3032#include <wchar.h>
  • trunk/src/grep/src/grep.c

    r3529 r3532  
    3939#include "exitfail.h"
    4040#include "fcntl-safer.h"
     41#if defined(KMK_GREP) && defined(KBUILD_OS_WINDOWS)
     42# include "nt/fts-nt.h" /* Use NT optimized FTS implementation. */
     43#else
    4144#include "fts_.h"
     45#endif
    4246#include "getopt.h"
    4347#include "getprogname.h"
     
    16911695        {
    16921696          struct stat *st = ent->fts_statp;
     1697#if !defined(KMK_GREP) || !defined(_MSC_VER) /** @todo revisit this */
    16931698          struct stat st1;
    16941699          if (! st->st_mode)
     
    17051710              st = &st1;
    17061711            }
     1712#endif
    17071713          if (is_device_mode (st->st_mode))
    17081714            return true;
     
    20692075  execute_fp_t execute;
    20702076} const matchers[] = {
    2071   { "grep", RE_SYNTAX_GREP, GEAcompile, EGexecute },
    2072   { "egrep", RE_SYNTAX_EGREP, GEAcompile, EGexecute },
    2073   { "fgrep", 0, Fcompile, Fexecute, },
    2074   { "awk", RE_SYNTAX_AWK, GEAcompile, EGexecute },
    2075   { "gawk", RE_SYNTAX_GNU_AWK, GEAcompile, EGexecute },
    2076   { "posixawk", RE_SYNTAX_POSIX_AWK, GEAcompile, EGexecute },
     2077  { "grep",     RE_SYNTAX_GREP,      (compile_fp_t)GEAcompile,  (execute_fp_t)EGexecute },
     2078  { "egrep",    RE_SYNTAX_EGREP,     (compile_fp_t)GEAcompile,  (execute_fp_t)EGexecute },
     2079  { "fgrep",    0,                   (compile_fp_t)Fcompile,    (execute_fp_t)Fexecute },
     2080  { "awk",      RE_SYNTAX_AWK,       (compile_fp_t)GEAcompile,  (execute_fp_t)EGexecute },
     2081  { "gawk",     RE_SYNTAX_GNU_AWK,   (compile_fp_t)GEAcompile,  (execute_fp_t)EGexecute },
     2082  { "posixawk", RE_SYNTAX_POSIX_AWK, (compile_fp_t)GEAcompile,  (execute_fp_t)EGexecute },
    20772083#if HAVE_LIBPCRE
    2078   { "perl", 0, Pcompile, Pexecute, },
     2084  { "perl",     0,                   (compile_fp_t)Pcompile,    (execute_fp_t)Pexecute },
    20792085#endif
    20802086};
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette