Linux Kernel
3.7.1
|
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <sys/param.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/time.h>
#include <time.h>
#include <signal.h>
#include <fnmatch.h>
#include <assert.h>
#include <regex.h>
#include <utime.h>
#include <sys/wait.h>
#include <sys/poll.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <inttypes.h>
#include <linux/magic.h>
#include "types.h"
#include <sys/ttydefaults.h>
#include "../../../include/linux/stringify.h"
Go to the source code of this file.
Macros | |
#define | _FILE_OFFSET_BITS 64 |
#define | FLEX_ARRAY 1 |
#define | ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) |
#define | TYPEOF(x) |
#define | MSB(x, bits) ((x) & TYPEOF(x)(~0ULL << (sizeof(x) * 8 - (bits)))) |
#define | HAS_MULTI_BITS(i) ((i) & ((i) - 1)) /* checks if an integer has more than 1 bit set */ |
#define | decimal_length(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1) |
#define | _ALL_SOURCE 1 |
#define | _BSD_SOURCE 1 |
#define | HAS_BOOL |
#define | PATH_MAX 4096 |
#define | PRIuMAX "llu" |
#define | PRIu32 "u" |
#define | PRIx32 "x" |
#define | PATH_SEP ':' |
#define | STRIP_EXTENSION "" |
#define | has_dos_drive_prefix(path) 0 |
#define | is_dir_sep(c) ((c) == '/') |
#define | NORETURN |
#define | __attribute__(x) |
#define | DIE_IF(cnd) |
#define | strchrnul gitstrchrnul |
#define | GIT_SPACE 0x01 |
#define | GIT_DIGIT 0x02 |
#define | GIT_ALPHA 0x04 |
#define | GIT_GLOB_SPECIAL 0x08 |
#define | GIT_REGEX_SPECIAL 0x10 |
#define | GIT_PRINT_EXTRA 0x20 |
#define | GIT_PRINT 0x3E |
#define | sane_istest(x, mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0) |
#define | isascii(x) (((x) & ~0x7f) == 0) |
#define | isspace(x) sane_istest(x,GIT_SPACE) |
#define | isdigit(x) sane_istest(x,GIT_DIGIT) |
#define | isxdigit(x) (sane_istest(toupper(x), GIT_ALPHA | GIT_DIGIT) && toupper(x) < 'G') |
#define | isalpha(x) sane_istest(x,GIT_ALPHA) |
#define | isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT) |
#define | isprint(x) sane_istest(x,GIT_PRINT) |
#define | islower(x) (sane_istest(x,GIT_ALPHA) && sane_istest(x,0x20)) |
#define | isupper(x) (sane_istest(x,GIT_ALPHA) && !sane_istest(x,0x20)) |
#define | tolower(x) sane_case((unsigned char)(x), 0x20) |
#define | toupper(x) sane_case((unsigned char)(x), 0) |
#define | _STR(x) #x |
#define | STR(x) _STR(x) |
Variables | |
const char * | graph_line |
const char * | graph_dotted_line |
char | buildid_dir [] |
unsigned char | sane_ctype [256] |
#define __attribute__ | ( | x | ) |
#define DIE_IF | ( | cnd | ) |
#define islower | ( | x | ) | (sane_istest(x,GIT_ALPHA) && sane_istest(x,0x20)) |
#define isupper | ( | x | ) | (sane_istest(x,GIT_ALPHA) && !sane_istest(x,0x20)) |
argv_free - free an argv - the argument vector to be freed
Frees an argv and the strings it points to.
Definition at line 40 of file argv_split.c.
argv_split - split a string at whitespace, returning an argv : the string to be split : returned argument count
Returns an array of pointers to strings which are split out from . This is performed by strictly splitting on white-space; no quote processing is performed. Multiple whitespace characters are considered to be a single argument separator. The returned array is always NULL-terminated. Returns NULL on memory allocation failure.
Definition at line 34 of file parse-utils.c.
void event_attr_init | ( | struct perf_event_attr * | attr | ) |
strglobmatch - glob expression pattern matching : the target string to match : the pattern string to match
This returns true if the matches . can includes wildcards ('*','?') and character classes ([CHARS], complementation and ranges are also supported). Also, this supports escape character ('\') to use special characters as normal character.
Note: if syntax is broken, this always returns false.