"Fossies" - the Fresh Open Source Software Archive

Member "rename-1.3/rename.h" (4 Sep 2001, 1261 Bytes) of package /linux/privat/old/rename-1.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 #ifndef RENAME_H
    3 #define RENAME_H
    4   
    5 #define ACT_DEFT    0   /* directly rename, just like mv(1) does */
    6 #define ACT_SUBT    1   /* search and substitute simplely */
    7 #define ACT_BACKWD  2   /* search and substitute backwardly */
    8 #define ACT_REG     3   /* enable regular expression */
    9 #define ACT_LOWCASE 4   /* lowcase filename */
   10 #define ACT_UPCASE  5   /* upcase filename */
   11 #define ACT_SUFFIX  6   /* match suffix pattern */
   12 #define ACT_OWNER   7   /* change file owner can work individually */
   13 
   14 #define MOD_REPT    1   /* substitute all occurrence of pattern */
   15 #define MOD_ICASE   2   /* ignore cases */
   16 #define MOD_VERBO   4   /* verbose mode */
   17 #define MOD_OWNER   8   /* change file's owner */
   18 #define MOD_TEST    0x80    /* just for test only */
   19   
   20 #define SVRBUF  512
   21 
   22 
   23 /* see misc.c */
   24 
   25 #ifndef HAVE_STRCASECMP
   26 int strcasecmp(char *sour, char *dest);
   27 #endif
   28 
   29 #ifndef HAVE_STRNCASECMP
   30 int strncasecmp(char *sour, char *dest, int leng);
   31 #endif
   32 
   33 #ifdef  HAVE_STRCASESTR
   34 extern char *strcasestr(const char *, const char *);
   35 #else
   36 char *strcasestr(const char *haystack, const char *needle);
   37 #endif
   38 
   39 char *dup_str(char *s);
   40 char *skip_space(char *sour);
   41 
   42 /* see fixtoken.c */
   43 
   44 int fixtoken(char *sour, char **idx, int ids, char *delim);
   45 int ziptoken(char *sour, char **idx, int ids, char *delim);
   46   
   47 #endif
   48