The code that I will explain is available here.
Everything is copied (on write) to child on forking, hence, every process will have a different buffer! (but contents will be same as parent initially).
GDB commands by function - simple guide | |
--------------------------------------- | |
More important commands have a (*) by them. | |
Startup | |
% gdb -help print startup help, show switches | |
*% gdb object normal debug | |
*% gdb object core core debug (must specify core file) | |
%% gdb object pid attach to running process | |
% gdb use file command to load object |
#include "zlib.h" | |
#include <stdio.h> | |
#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) | |
# include <fcntl.h> | |
# include <io.h> | |
# ifdef UNDER_CE | |
# include <stdlib.h> | |
# endif | |
# define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) |
The code that I will explain is available here.
Everything is copied (on write) to child on forking, hence, every process will have a different buffer! (but contents will be same as parent initially).
After a weekend of research, stress and pain I finally figure out how to install manjaro 17 and configure the nvidia/bumblebee drivers on my avell laptop
Here's my notebook specs:
$ inxi -MGCNA
Machine: Device: laptop System: Avell High Performance product: 1513
Mobo: N/A model: N/A v: 0.1 UEFI: American Megatrends v: N.1.02 date: 09/28/2016
Battery BAT0: charge: 44.0 Wh 100.0% condition: 44.0/44.0 Wh (100%)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQEHEU/rs2Tp1UL1li6VLXgPmg+8G2TIsTEZdrMobZ7zApbNi5QPint+jf7iK10JeiwucXY8i5qAQ4S3AzEDOqhTod0xmuuyj1Jb9zkQLMCRfPNQdR+inQdMQ6imWUYb5X1gb1M0QMLyrfjmBtQ1duSelUflY8hfxUeFwG9L8BixxhcCSO6Vg8p0p71vnnkuN+DsNxEOUEtllmp1aSLn43TLAk7yKplIGk86Kx8hS0TFSbM0xPi8mORooV/uY5mC7B4/6NaVWL6oAxPK8KB9BCl8jBB5S3h+QCw/HTfpKpFDnPe/DtTLPvTqWYD/hH6gK/h86UWs+AUQlQxDE3O9TB r1walz@ar135 |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrdklNFDbntJQTLGeEQ5IT5c290MNgbuAV8qr3oCd12Yvo16NK9WeBHOX33B+8wNsFHIbLc32BvQyeZcdhzazl9vg4FsxlwjNopgdGhKfZxQ2s3+ix+6u/eHFwtlgeaJC8n4dNl5Vz0ns+Ax9D5I9WWPQV/hccPg2Ft1LA1Jejy7htjv39hXY5Nuk9epiVjl/NLvdiATo0rBZ5RzVO65C7EiDqteOpV80D7s1mJrcRWRODQbPV/J/ji7irRs4HlG0v9JikhFXeWKE4kXIz5q6bM/evHMcfCu9Y291LUU1kY8UKgNyC7ORyeu9EskjGeQLwgoJYPhsO3tlqrKmZyDQ3 rohit@mdg-ubuntu |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLcpMivEpgIOI6VF0jUWh+xnZnhWj+vJuDyF59vvyVtf1FELFnF7JD0gtHQAmM1unUdRfOvog+kVZTk+89zEy5KODBkvYgfHhVkdSlGZAiIZOTL3G6IUkMcEooSjQ8muotPZ90e11tNJa9ZbEFss7B4eQwRZQrWRkAD8V9R/CRYGH3TygNmw82LoOh9plMGiIk31d+ZLL1Fqe18cIcu/VQz2xI+CQ/u5RXsgOf5gKsWgUZsZ++2wv4YtOILT/xxROyHSSQX6UFyPMVmlWz5lDIvIMxu9o+hZbjjibeB8be0A0sX24Wh4YhB9eRdmUv5x4eVGa6k1cdbdqtCA8B4cC5 r1walz@MDGs-iMac |
# remap prefix from 'C-b' to 'C-Space' | |
unbind C-b | |
set-option -g prefix C-Space | |
bind-key C-Space send-prefix | |
set -g default-terminal "screen-256color" | |
# split panes using | and - | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
unbind '"' |
set background=dark | |
syntax enable | |
set mouse=n | |
set number | |
set wildmenu | |
set ruler | |
set backspace=eol,start,indent | |
set whichwrap+=<,>,h,l | |
set ignorecase | |
set smartcase |
# | |
# ~/.bashrc | |
# | |
[[ $- != *i* ]] && return | |
colors() { | |
local fgc bgc vals seq0 | |
printf "Color escapes are %s\n" '\e[${value};...;${value}m' |