-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathepoll_data_struct.cpp
More file actions
38 lines (31 loc) · 785 Bytes
/
epoll_data_struct.cpp
File metadata and controls
38 lines (31 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* =====================================================================================
*
* Filename: epoll_data_struct.cpp
*
* Description:
*
* Version: 1.0
* Created: 09/01/2017 09:08:51 AM
* Last Modified: 09/01/2017 09:08:51 AM
* Revision: none
* Compiler: gcc
*
* Author: zt (),
* Organization:
*
* =====================================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/epoll.h>
int main ( int argc, char* argv[] )
{
epoll_data_t e;
e.ptr = ( void* ) 0x12345678;
e.fd = 0x33333333;
printf ( "sizeof = %d\n", sizeof ( e ) );
printf ( "0x%x 0x%x\n", e.ptr, e.fd );
printf ( "0x%x 0x%x\n", e.u32, e.u64 );
return 0;
}