둘둘리둘둘리둘둘리둘둘리둘둘리둘
@파일 접근 권한(mode_t) The following symbolic constants are provided for mode: S_IRWXU 00700 user (file owner) has read, write and execute permission S_IRUSR 00400 user has read permission S_IWUSR 00200 user has write permission S_IXUSR 00100 user has execute permission S_IRWXG 00070 group has read, write and execute permission S_IRGRP 00040 group has read permission S_IWGRP 00020 group has write per..
nt!_TEB+0x000 NtTib : _NT_TIB+0x01c EnvironmentPointer : Ptr32 Void+0x020 ClientId : _CLIENT_ID+0x028 ActiveRpcHandle : Ptr32 Void+0x02c ThreadLocalStoragePointer : Ptr32 Void+0x030 ProcessEnvironmentBlock : Ptr32 _PEB+0x034 LastErrorValue : Uint4B+0x038 CountOfOwnedCriticalSections : Uint4B+0x03c CsrClientThread : Ptr32 Void+0x040 Win32ThreadInfo : Ptr32 Void+0x044 User32Reserved : [26] Uint4B+..
1. ez_setup 설치 https://pypi.python.org/pypi/setuptools#windows-simplified ez_setup.py 다운로드$python ez_setup.py build$python ez_setup.py install 환경변수 PATH에 C:\Python27\Scripts 추가 2. pip 설치 $easy_install pip
@ pipe pipe(3) #include int pipe(int pipefd[2]); #include #include #include int main(){ int pid; int fd[2]={0,}; char buffer[255]={0,}; if( pipe(fd) ) { perror("pipe"); return 0; } pid = fork(); if( !pid ){ memcpy( buffer, "hi mom\x0a\x00", 8); write( fd[1], buffer, strlen(buffer)); return 0; }else{ read(fd[0], buffer,255); printf(buffer); return 0; } return 0;} - 리턴값 : 성공은 0 에러는 -1, 실패시 errno 설..
@ 쓰레드 생성 pthread_create(3)#include int pthread_create(pthread_t *thread, //생성된 쓰레드의 buffer 포인터const pthread_attr_t *attr, //NULL이 아닐경우 쓰레드 속성 void *(*start_routine) (void *), //쓰레드로 생성할 함수 포인터void *arg); //생성할 쓰레드의 인자 Compile and link with -pthread //컴파일 시 -pthread 옵션 사용(gcc ./src.c -pthread) - 리턴값 : 성공 시 0, 실패 시 error number @ 쓰레드 정리 pthread_join(3)#include int pthread_join(pthread_t thread, //..