
Enviado em 16/06/2015 - 14:08h
Olá Amigos,#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
struct data {
int a; char b[10]; long c;
};
const int N = 4096*2;
int main() {
int fd;
struct data *addr;
fd = shm_open("/xyz", O_RDWR | O_CREAT, 0600);
ftruncate(fd, N);
addr = mmap(NULL, N, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
addr->a = 5;
addr->b[3] = 'C';
addr->c = 0xffff;
munmap(addr, N);
}
Como o GNOME conseguiu o feito de ser preterido por outras interfaces gráficas
Gentoo binário em 2026: UEFI, LUKS, Btrfs e Systemd
Trabalhando Nativamente com Logs no Linux
Jogando Daikatana (Steam) com Patch 1.3 via Luxtorpeda no Linux
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Por que sua empresa precisa de uma PKI (e como automatizar EMISSÕES de certificados via Web API)
Instalando NoMachine no Gentoo com Systemd (acesso Remoto em LAN)
Gentoo: Trocando wpa_supplicant pelo iwd no NetworkManager (Systemd)
Necessário autenticar ao imprimir - Ubuntu X Windowns (1)
O que houve com slackware ??? (11)
O Free Download Manager não abre no Fedora 43 KDE Plasma (2)









