1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /*
- * Tencent is pleased to support the open source community by making wwsearch
- * available.
- *
- * Copyright (C) 2018-present Tencent. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * https://opensource.org/licenses/Apache-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
- #pragma once
- #include <sys/epoll.h>
- #include <sys/mman.h>
- #include <sys/poll.h>
- #include <sys/prctl.h>
- #include <sys/select.h>
- #include <sys/socket.h>
- #include <sys/stat.h>
- #include <sys/syscall.h>
- #include <sys/time.h>
- #include <sys/types.h>
- #include <arpa/inet.h>
- #include <netinet/in.h>
- #include <netinet/tcp.h>
- #include <assert.h>
- #include <errno.h>
- #include <fcntl.h>
- #include <pthread.h>
- #include <sched.h>
- #include <signal.h>
- #include <stdarg.h>
- #include <stdint.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <time.h>
- #include <unistd.h>
- #include <atomic>
- #include <chrono>
- #include <fstream>
- #include <iostream>
- #include <list>
- #include <map>
- #include <mutex>
- #include <queue>
- #include <set>
- #include <sstream>
- #include <stack>
- #include <string>
- #include <thread>
- #include <unordered_map>
- #include <vector>
- // #include <algorithm>
- #include <sys/stat.h>
- #if defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_ANDROID)
- #include <sys/statfs.h>
- #include <sys/syscall.h>
- #include <sys/sysmacros.h>
- #endif
- #include <sys/time.h>
- #include <sys/types.h>
- #include <time.h>
- // Get nano time includes
- #if defined(OS_LINUX) || defined(OS_FREEBSD)
- #elif defined(__MACH__)
- #include <mach/clock.h>
- #include <mach/mach.h>
- #else
- #include <chrono>
- #endif
|