(draft; work in progress)
See also:
- Compilers
- Program analysis:
- Dynamic analysis - instrumentation, translation, sanitizers
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <signal.h> | |
/* compile with gcc -pthread lockwait.c */ | |
pthread_cond_t cv; | |
pthread_mutex_t lock; |
// g++ -lstdc++ -Wno-write-strings fetch.cpp -o fetch | |
#ifdef _WIN32 // Windows | |
#include <winsock2.h> | |
#include <ws2tcpip.h> | |
#define MSG_NOSIGNAL 0 | |
#else // Linux + Mac | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> |
#!/usr/bin/php | |
<?php | |
declare(strict_types = 1); | |
// require_once ('hhb_.inc.php'); | |
hhb_init (); | |
if ($argc !== 3) { | |
fprintf ( STDERR, "usage: %s timestamp url\n", $argv [0] ); | |
fprintf ( STDERR, "example: %s 20091012061648 http://www.p4w.se\n", $argv [0] ); | |
die ( 1 ); | |
} |
(draft; work in progress)
See also: