• Здраво и добредојдовте на форумот на IT.mk.

    Доколку сеуште не сте дел од најголемата заедница на ИТ професионалци и ентузијасти во Македонија, можете бесплатно да се - процесот нема да ви одземе повеќе од 2-3 минути, а за полесна регистрација овозможивме и регистрирање со Facebook и Steam.

Linux Kernel хумор

  • Ја почнал/а темата
  • #1

dime

Intern
13 мај 2008
163
3
Некаде бев прочитал за заебанциите што може да се најдат по кодот на кернелот, па земав и сам да побарам. Отприлика барав вака

egrep -ri -B 2 -A 2 "( fuck)|( shit)|( ugly)|( god)|( happy)" *

со уште некои дополнителни фрази после :D И еве ги извадив најдобрите резултати хехехе:


Код:
include/asm-m68k/sun3xflop.h-    case 7: /* FD_DIR */
include/asm-m68k/sun3xflop.h:        /* ugly hack, I can't find a way to actually detect the disk */

include/asm-m68k/sun3ints.h:/* master list of VME vectors -- don't fuck with this */
include/asm-m68k/sun3ints.h-#define SUN3_VEC_FLOPPY        (IRQ_USER+0)
include/asm-m68k/sun3ints.h-#define SUN3_VEC_VMESCSI0    (IRQ_USER+0)

include/asm-sparc64/system.h:    /* If you fuck with this, update ret_from_syscall code too. */    \
include/asm-sparc64/system.h-    if (test_thread_flag(TIF_PERFCTR)) {                \
include/asm-sparc64/system.h-        write_pcr(current_thread_info()->pcr_reg);        \

include/asm-sparc64/uaccess.h- * This gets kind of ugly. We want to return _two_ values in "get_user()"
include/asm-sparc64/uaccess.h- * and yet we don't want to do any pointers, because that is too much
include/asm-sparc64/uaccess.h: * of a performance impact. Thus we have a few rather ugly macros here,
include/asm-sparc64/uaccess.h- * and hide all the ugliness from the user.
include/asm-sparc64/uaccess.h- */

include/asm-sparc64/unistd.h: * Don't be scared by the ugly clobbers, it is the only way I can
include/asm-sparc64/unistd.h- * think of right now to force the arguments into fixed registers
include/asm-sparc64/unistd.h- * before the trap into the system call with gcc 'asm' statements.

include/linux/ipc.h- * These are used to wrap system calls.
include/linux/ipc.h- *
include/linux/ipc.h: * See architecture code for ugly details..
include/linux/ipc.h- */

include/linux/netfilter/xt_limit.h:    /* Ugly, ugly fucker. */
include/linux/netfilter/xt_limit.h-    struct xt_rateinfo *master;
include/linux/netfilter/xt_limit.h-};

include/asm-cris/arch-v32/spinlock.h- * Also note that we don't use the _irqsave / _irqrestore suffixes here.
include/asm-cris/arch-v32/spinlock.h- * If we're called with interrupts enabled and we've got readers (or other
include/asm-cris/arch-v32/spinlock.h: * writers) in interrupt handlers someone fucked up and we'd dead-lock
include/asm-cris/arch-v32/spinlock.h- * sooner or later anyway.   prumpf */

include/asm-alpha/jensen.h:/* New-style ioread interface.  All the routines are so ugly for Jensen
include/asm-alpha/jensen.h-   that it doesn't make sense to merge them.  */

include/asm-sparc/pgtsrmmu.h-/* This makes sense. Honest it does - Anton */
include/asm-sparc/pgtsrmmu.h:/* XXX Yes but it's ugly as sin.  FIXME. -KMW */

include/asm-sparc/smpprim.h: *  God knows we won't be actually using this code for some time
include/asm-sparc/smpprim.h- *  but I thought I'd write it since I knew how.

include/asm-mips/mipsprom.h:/* More PROM shit.  Probably has to do with VME RMW cycles??? */
include/asm-mips/mipsprom.h-#define PROM_ORW_RMW        22    /* XXX */
include/asm-mips/mipsprom.h-#define PROM_ORH_RMW        23    /* XXX */

scripts/checkpatch.pl-#!/usr/bin/perl -w
scripts/checkpatch.pl-# (c) 2001, Dave Jones. <[email protected]> (the file handling bit)
scripts/checkpatch.pl:# (c) 2005, Joel Schopp <[email protected]> (the ugly bit)

include/asm-powerpc/io.h-/* Some drivers check for the presence of readq & writeq with
include/asm-powerpc/io.h: * a #ifdef, so we make them happy here.
include/asm-powerpc/io.h- */

include/linux/virtio_config.h-/* We have found a driver for the device. */
include/linux/virtio_config.h-#define VIRTIO_CONFIG_S_DRIVER        2
include/linux/virtio_config.h:/* Driver has used its parts of the config, and is happy */
include/linux/virtio_config.h-#define VIRTIO_CONFIG_S_DRIVER_OK    4
include/linux/virtio_config.h-/* We've given up on this device. */

include/sound/asound.h:/* Trick to make alsa-lib/acinclude.m4 happy */
include/sound/asound.h-#define SNDRV_PCM_IOCTL_REWIND SNDRV_PCM_IOCTL_REWIND

include/asm-alpha/uaccess.h-#ifdef __alpha_bwx__
include/asm-alpha/uaccess.h:/* Those lucky bastards with ev56 and later CPUs can do byte/word moves.  */
include/asm-alpha/uaccess.h-
include/asm-alpha/uaccess.h-#define __get_user_16(addr)    

arch/sh/boards/renesas/systemh/Makefile-# XXX: This wants to be consolidated in arch/sh/drivers/pci, and more
arch/sh/boards/renesas/systemh/Makefile-# importantly, with the generic sh7751_pcic_init() code. For now, we'll
arch/sh/boards/renesas/systemh/Makefile:# just abuse the hell out of kbuild, because we can..

include/asm-mips/prefetch.h- * StoreRetained and WriteBackInvalidate but not Pref_PrepareForStore.
include/asm-mips/prefetch.h- *
include/asm-mips/prefetch.h: * Hell (and the book on my shelf I can't open ...) know what the R8000 does.
 

Aleks

Gaining Experience
18 мај 2007
5,748
288
:LOL::LOL: Интереснооооо

Еве нешто од мене:

Код:
include/linux/fb.h- *  But for now, we leave it broken with the following define
include/linux/fb.h- */
include/linux/fb.h:#define STUPID_ACCELF_TEXT_SHIT
include/linux/fb.h-
include/linux/fb.h-// This will go away
 

Alexandar

Gaining Experience
21 мај 2007
2,514
90
Прави програмеришта, ако не опцуеш еднаш не бива код :LOL:

Кога ја видов темава си помислив му се смееш на Linux Kernel, реков сега Aleks кој ќе дојде...:))
 

Aleks

Gaining Experience
18 мај 2007
5,748
288
include/linux/fs.h-#define BLKPG _IO(0x12,105)/* See blkpg.h */
include/linux/fs.h-
include/linux/fs.h:/* Some people are morons. Do not use sizeof! */
include/linux/fs.h-
include/linux/fs.h-#define BLKELVGET _IOR(0x12,106,size_t)/* elevator get */
 
  • Ја почнал/а темата
  • #6

dime

Intern
13 мај 2008
163
3
Хехе Алекс закон! Еве уште нешто што ископав :))

Код:
include/asm-mips/mipsregs.h-#ifdef CONFIG_CPU_VR41XX
include/asm-mips/mipsregs.h-
include/asm-mips/mipsregs.h:/* Why doesn't stupidity hurt ... */
include/asm-mips/mipsregs.h-
include/asm-mips/mipsregs.h-#define PM_1K        0x00000000

include/asm-m68k/sun3xflop.h-#define FCR_DSEL0 0x10
include/asm-m68k/sun3xflop.h-
include/asm-m68k/sun3xflop.h:/* We don't need no stinkin' I/O port allocation crap. */
include/asm-m68k/sun3xflop.h-#undef release_region
include/asm-m68k/sun3xflop.h-#undef request_region

include/asm-sparc64/io.h-#include <asm/asi.h>
include/asm-sparc64/io.h-
include/asm-sparc64/io.h:/* PC crapola... */
include/asm-sparc64/io.h-#define __SLOW_DOWN_IO    do { } while (0)
include/asm-sparc64/io.h-#define SLOW_DOWN_IO    do { } while (0)

include/asm-v850/pgalloc.h-#define __V850_PGALLOC_H__
include/asm-v850/pgalloc.h-
include/asm-v850/pgalloc.h:#include <linux/mm.h>  /* some crap code expects this */
include/asm-v850/pgalloc.h-
include/asm-v850/pgalloc.h-/* ... and then, there was one.  */

include/asm-sparc/obio.h-/* Bits in BB_STAT2 */
include/asm-sparc/obio.h-#define BB_STAT2_AC_INTR    0x04    /* Aiee! 5ms and power is gone... */
include/asm-sparc/obio.h:#define BB_STAT2_TMP_INTR    0x10    /* My Penguins are burning. Are you able to smell it? */
include/asm-sparc/obio.h-#define BB_STAT2_FAN_INTR    0x20    /* My fan refuses to work */
include/asm-sparc/obio.h-#define BB_STAT2_PWR_INTR    0x40    /* On SC2000, one of the two ACs died. Ok, we go on... */

include/linux/pci.h-/*
include/linux/pci.h: *  The world is not perfect and supplies us with broken PCI devices.
include/linux/pci.h- *  For at least a part of these bugs we need a work-around, so both
include/linux/pci.h- *  generic (drivers/pci/quirks.c) and per-architecture code can define

include/asm-x86/page_32.h-/*
include/asm-x86/page_32.h- * This handles the memory map.. We could make this a config
include/asm-x86/page_32.h: * option, but too many people screw it up, and too few need
include/asm-x86/page_32.h- * it.
include/asm-x86/page_32.h- *

include/asm-sh/cpu-sh2/watchdog.h- * with different sizes at different addresses for WTCNT _and_ RSTCSR.
include/asm-sh/cpu-sh2/watchdog.h- *
include/asm-sh/cpu-sh2/watchdog.h: * At least on the bright side no one has managed to screw over WTCSR
include/asm-sh/cpu-sh2/watchdog.h- * in this fashion .. yet.
include/asm-sh/cpu-sh2/watchdog.h- */

include/asm-sparc/elf.h-    memcpy(&dest[0], &src->u_regs[0],        
include/asm-sparc/elf.h-           sizeof(unsigned long) * 16);        
include/asm-sparc/elf.h:    /* Don't try this at home kids... */        
include/asm-sparc/elf.h-    sp = (unsigned long __user *) src->u_regs[14];    
include/asm-sparc/elf.h-    copy_from_user(&dest[16], sp,            

include/math-emu/quad.h-
include/math-emu/quad.h-#if _FP_W_TYPE_SIZE < 32
include/math-emu/quad.h:#error "Here's a nickel, kid. Go buy yourself a real computer."
include/math-emu/quad.h-#endif
include/math-emu/quad.h-
 

Aleks

Gaining Experience
18 мај 2007
5,748
288
include/asm-i386/processor.h-static inline unsigned long native_get_debugreg(int regno)
include/asm-i386/processor.h-{
include/asm-i386/processor.h: unsigned long val = 0; /* Damn you, gcc! */
include/asm-i386/processor.h-
include/asm-i386/processor.h- switch (regno) {
--
scripts/kernel-doc-# /**
scripts/kernel-doc-# * my_function - does my stuff
scripts/kernel-doc:# * @my_arg: its mine damnit
scripts/kernel-doc-# *
scripts/kernel-doc-# * Does my stuff explained.
 

Нови мислења

Последни Теми

Статистика

Теми
43,565
Мислења
823,418
Членови
28,072
Најнов член
josimovskii
На врв Дно