ekg2
|
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include <errno.h>
Definicje | |
#define | MAX_PASS_LEN 15 /* dlugosc hasla, tak naprawde to jest+1, nie przejmowac sie. */ |
#define | ULTRA_DEBUG 0 /* sprawdza czy dobrze generujemy hasla (w/g digit, b. niepotrzebne i b. wolne) */ |
#define | ULTRA_VERBOSE 0 /* rysuje kropki */ |
#define | ULTRA_SAFE 0 /* sprawdza czy nie bedziemy rysowac po pamieci jesli haslo zacznie miec wiecej niz MAX_PASS_LEN znakow */ |
#define | ULTRA_SMP 4 /* ile masz prockĂłw? (jak masz 1 wpisz 0 - wyĹacza SMP) */ |
#define | NOT_STOP_ON_FIRST 0 |
#define | DIGIT_SIZE (sizeof(digit)-2) /* -2 bo poczÄ tkowe \0 i koĹcowe \0, yeah shitty. */ |
#define | DIGIT0_START digit_start |
#define | DIGIT0_SIZE digit_end |
#define | DIGIT0_ONE (DIGIT_SIZE/ULTRA_SMP) |
Funkcje | |
static void | bonce (size_t i) |
static void | incr () |
int | main () |
Zmienne | |
static const char | digit [] = "\0abcdefghijklmnoprstuwxyz" |
static pid_t | pids [ULTRA_SMP] |
static int | pipes [ULTRA_SMP] |
static int | digit_start |
static int | digit_end |
static unsigned char | pass [MAX_PASS_LEN] |
static unsigned char | realpass [MAX_PASS_LEN+1] |
static size_t | pass_pos = 0 |
#define DIGIT0_ONE (DIGIT_SIZE/ULTRA_SMP) |
#define DIGIT0_SIZE digit_end |
#define DIGIT0_START digit_start |
#define MAX_PASS_LEN 15 /* dlugosc hasla, tak naprawde to jest+1, nie przejmowac sie. */ |
#define NOT_STOP_ON_FIRST 0 |
#define ULTRA_DEBUG 0 /* sprawdza czy dobrze generujemy hasla (w/g digit, b. niepotrzebne i b. wolne) */ |
#define ULTRA_SAFE 0 /* sprawdza czy nie bedziemy rysowac po pamieci jesli haslo zacznie miec wiecej niz MAX_PASS_LEN znakow */ |
#define ULTRA_SMP 4 /* ile masz prockĂłw? (jak masz 1 wpisz 0 - wyĹacza SMP) */ |
#define ULTRA_VERBOSE 0 /* rysuje kropki */ |
|
inlinestatic |
|
inlinestatic |
int main | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |