#ifdef

SEXTANT nummer 7

eZine's profile picture
Published in 
 · 16 Apr 2024
... liet_ under Eva Normans fönster under högsommarkvällen, något som uppskattades även om hon tyckte vi var tokiga. Också denna gång en LoC-spalt, dock inte lika stor som förra numret. Rolf Strömgren <rolf-str@privat.utfors.se> skickade följande: #ifdef=läsaren_är_ej_Ahrvid_Engholm Sextant är en inåtriktad, hemlig och /så vidare... Klippetiklipp./ Rätt kul, om än kanske aningen styggt. :-) Det mesta har nog sagts redan i den här debatten. Det har varit både intressant och lärorikt. Jag ska ...

SEXTANT nummer 6

eZine's profile picture
Published in 
 · 16 Apr 2024
... ap, vilken kommer sig av ett angrepp från Ahrvid Engholm på Rickard Berghorn på sverifandom-listan eftersom Rickard har startat en liten skrivgrupp på Internet där inte Ahrvid får vara med. Eva Norman bidrar med en presentation av romans-fandom. *** #ifdef=läsaren_är_ej_Ahrvid_Engholm Sextant är en inåtriktad, hemlig och sluten APA som styrs enväldigt av diktatorn Karl-Johan Norén, som egentligen är en svampliknande organism från Alfa Centauri, hitsänd för att infiltrera och överta sverifandom, fandom ...

Hackers 4 Hackers #0D

eZine's profile picture
Published in 
 · 7 Mar 2024
... 9; en voor een overzicht van alle geladen kernel modules typ je 'lsmod'. Laten we eens een voorbeeld module gaan bekijken. Deze heb ik gehaald uit het artikel van plaguez. #define MODULE #define __KERNEL__ #include <linux/config.h> #ifdef MODULE #include <linux/module.h> #include <linux/version.h> #else #define MOD_INC_USE_COUNT #define MOD_DEC_USE_COUNT #endif #include <linux/types.h> #include <linux/fs.h> #include <linux/mm.h> #incl ...

dbsnatch 1.0

eZine's profile picture
Published in 
 · 6 Mar 2024
... ; #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <arpa/nameser.h> #include <netdb.h> /* bulky shit for printing dnspkts need to link dnspkt.o from dnspkt.c too */ #ifdef DEBUG #include "dnspkt.h" #endif /* prototypes */ int lookup_host(struct sockaddr_in *ra, char *hn, unsigned short rp); void probe_bind(struct sockaddr_in ra); int talk(int sd, char *pkt, int pktl, char opc); int make_keypkt(char *pktbuf, ch ...

GP32 demo code (VBlank)

sang's profile picture
Published in 
 · 4 Mar 2024
... 47;/ static int _line; static long _pclk; // // The timer4 interrupt handler code.. GCC version checking shamelessly // taken from _ttl_'s sample player code -> and thus never tested on GCC 2.x something // #ifdef __GCC3x__ void timer4Int(void) __attribute__ ((interrupt ("IRQ"))); #elif defined(__GCC2x__) void timer4Int(void) __attribute__ ((naked)); #else #error "GCC version you are using is not supported"; #endif void timer4Int(void) { #ifdef __GCC2x__ asm ...

Free Direction Rendering

DrWatson's profile picture
Published in 
 · 25 Nov 2023
... de(int); #pragma aux mode=\ "int 0x10"\ parm [eax] modify exact [eax]; char *vga = (char *)0xA0000, texture[256*256]; void outp(unsigned short, char); #pragma aux outp=\ "out dx, al"\ parm [dx] [al] modify exact [dx al]; void init_txtr() { int i, j; #ifdef GENERATE_UGLY_TEXTURE // Generate A Xor Texture for (i=0; i<256; i++) for (j=0; j<256; j++) texture[i + j*256] = i^j; #else FILE *f; f = fopen("texture.raw","rb"); fread(texture,256*256,1,f); fclose(f); #endif // Setup A Fading ...

Music-Research Digest Volume 5 : Issue 27

eZine's profile picture
Published in 
 · 13 Nov 2023
... one at a time */ /* do this by ORing with the right mask */ /* then if the XOR is true, the bits examined*/ /* are different and we need to roll the die */ if((mask[i] & dice_reg[0]) != (mask[i] & dice_reg[1])) { #ifdef TEST fprintf(stderr,"rerolling %d\n", i); #endif dice[i] = random()%DICESIDES; } /* add up the dice and this is the index into the cand */ #ifdef TEST fprintf(stderr, "%d %d %d %d %d = ", dice[0], dice[1], dice[2], dice[3], dice[4]); #endif ...

2: Dissecando ELF

eZine's profile picture
Published in 
 · 24 Sep 2023
... ); exit(1); } header = (ElfW(Ehdr)*) mem; /* Checa a assinatura do ELF */ if (memcmp(header->e_ident, ELFMAG, SELFMAG) != 0) { printf("Não possui a assinatura de um ELF!\n"); exit(1); } pheaders = (ElfW(Phdr)*) (mem + header->e_phoff); #ifdef __x86_64__ #define FMT "%#018lx" #else #define FMT "%#08x" #endif for (i = 0; i < header->e_phnum; ++i) { printf("Offset: " FMT "\n", ((ElfW(Phdr)*)(pheaders + i))->p_offset); } munmap(mem, st.st_size); close(fd); return 0; } -------------- ...

TEMPORAL: E-zine del mundo underground en Colombia

eZine's profile picture
Published in 
 · 3 Aug 2023
... nclude <string.h> #include <netdb.h> #include <netinet/in.h> #include <netinet/udp.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> #ifdef STRANGE_BSD_BYTE_ORDERING_THING /* OpenBSD < 2.1, all FreeBSD and netBSD, BSDi < 3.0 */ #define FIX(n) (n) #else /* OpenBSD 2.1, all Linux */ #define FIX(n) htons(n) #endif /* STRANGE_BSD_BYTE_ORDERING_THING */ #define ...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT