This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt]{book} | |
\usepackage{graphicx} | |
\usepackage[empty]{fullpage} | |
\author{Ankur Shrivastava} | |
\begin{document} | |
\frontmatter | |
\begin{center} | |
\textbf{\LARGE RING}\\ | |
\vspace{40ex} | |
A mini project report submitted to\\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = gcc -fPIC | |
LDFLAGS = -lm | |
# set DEBUG options | |
ifdef DEBUG | |
CFLAGS = -Wall -Wextra -ggdb -pg -DDEBUG | |
else | |
CFLAGS = -Wall -O2 | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _POLL_H | |
#define _POLL_H | |
#include "hash_table/hashtable.h" | |
#include <sys/epoll.h> | |
#define MAX_EVENTS 100 | |
#define CALLBACK(x) void (*x) (poll_event_t *, poll_event_element_t *, struct epoll_event) | |
#define ACCEPT_CB 0x01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<X11/Xlib.h> | |
#include<X11/Xutil.h> | |
#include<X11/keysym.h> | |
#include<unistd.h> | |
#define DURATION 100 | |
int main() | |
{ | |
Display *display = NULL; |
OlderNewer