📄 os_none.c
字号:
/* * wpa_supplicant/hostapd / Empty OS specific functions * Copyright (c) 2005, Jouni Malinen <jkmaline@cc.hut.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Alternatively, this software may be distributed under the terms of BSD * license. * * See README and COPYING for more details. * * This file can be used as a starting point when adding a new OS target. */#include "includes.h"#include "os.h"void os_sleep(os_time_t sec, os_time_t usec){}int os_get_time(struct os_time *t){ return -1;}int os_daemonize(const char *pid_file){ return -1;}void os_daemonize_terminate(const char *pid_file){}int os_get_random(unsigned char *buf, size_t len){ return -1;}unsigned long os_random(void){ return 0;}char * os_rel2abs_path(const char *rel_path){ return NULL; /* strdup(rel_path) can be used here */}int os_program_init(void){ return 0;}void os_program_deinit(void){}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -