亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? process.h

?? common c++提供socket
?? H
字號:
// Copyright (C) 1999-2005 Open Source Telecom Corporation.//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.// // As a special exception, you may use this file as part of a free software// library without restriction.  Specifically, if other files instantiate// templates or use macros or inline functions from this file, or you compile// this file and link it with other files to produce an executable, this// file does not by itself cause the resulting executable to be covered by// the GNU General Public License.  This exception does not however    // invalidate any other reasons why the executable file might be covered by// the GNU General Public License.    //// This exception applies only to the code released under the name GNU// Common C++.  If you copy code from other releases into a copy of GNU// Common C++, as the General Public License permits, the exception does// not apply to the code that you add in this way.  To avoid misleading// anyone as to the status of such modified files, you must delete// this exception notice from them.//// If you write modifications of your own for GNU Common C++, it is your choice// whether to permit this exception to apply to your modifications.// If you do not wish that, delete this exception notice.///** * @file process.h * @short Process services. **/#ifndef	CCXX_PROCESS_H_#define	CCXX_PROCESS_H_#ifndef CCXX_CONFIG_H_#include <cc++/config.h>#endif#ifndef CCXX_THREAD_H_#include <cc++/thread.h>#endif#ifdef	CCXX_NAMESPACESnamespace ost {#endif/** * A class for containing portable process related functions * that help create portable code.  These are typically * referenced thru Process::xxx static member functions. * Many of these members are used both for win32 and posix * systems although some may be platform specific. * * @short Peocess wrapper class. * @author David Sugar <dyfet@ostel.com> */class __EXPORT Process{private:	static bool rtflag;public:#ifndef	WIN32	typedef	RETSIGTYPE (*Trap)(int);	/**	 * Detach current process into a daemon, posix	 * only.  Perhaps a similar method can be used	 * for creating win32 "services"?	 */	static void detach(void);	/**	 * Attach the current process to another device	 * or i/o session.  It is deamonified and dissasociated	 * with the prior parent process and controlling terminal.	 *	 * @param devname path to attach to.	 */	static void attach(const char *devname);	/**	 * Set a posix compliant signal handler.	 *	 * @return previous handler.	 * @param signo signal no.	 * @param handler trap handler.	 */	static Trap setPosixSignal(int signo, Trap handler);	/**	 * Set system call interuptable signal handler.	 *	 * #return previous handler.	 * @param signo   signal no.	 * @param handler trap handler.	 */	static Trap setInterruptSignal(int signo, Trap handler);#endif	/**	 * Lock a process in memory.  Ideally you should be deep enough 	 * where additional memallocs for functions will not kill you,	 * or use false for future.	 *	 * @return true if successful.	 * @param future pages as well...	 */	bool lock(bool future = true);	/**	 * Unlock process pages.	 */	void unlock(void);		/**	 * Spawn a process and wait for it's exit code.  In win32	 * this is done with the spawn system call.  In posix,	 * this is done with a fork, an execvp, and a waitpid.	 *	 * @warning The implementation differences between posix and	 * win32 systems may cause side effects. For instance, if you	 * use atexit() and this spawn method, on posix systems the	 * function set up with atexit() will be called when the	 * parent process of the fork exits, which will not happen on	 * Win32 systems.	 *	 * @return error code from process.	 * @param exec name of executable.	 * @param argv list of command arguments.	 * @param wait for process to exit before return.	 */	static int spawn(const char *exec, const char **argv, bool wait = true);	/**	 * Get the exit status of another process, waiting for it	 * to exit.	 *	 * @return exit code from process.	 * @param pid process id.	 */	static int join(int pid);	/**	 * Cancel a running child process.	 *	 * @return 0 on success.	 * @param pid process id.	 * @param sig cancel signal to apply.	 */	static bool cancel(int pid, int sig = 0);	/**	 * Get system environment.	 *	 * @return system environ symbol.	 * @param name of symbol.	 */	static const char *getEnv(const char *name);	/**	 * Set system environment in a standard manner.	 *	 * @param name of environment symbol to set.	 * @param value of environment symbol.	 * @param overwrite true if replace existing symbol.	 */	static void setEnv(const char *name, const char *value, bool overwrite);	/**	 * Get etc prefix path.	 *	 * @return etc prefix.	 */	static const char *getConfigDir(void);	/**	 * Get home directory.	 *	 * @return user home directory.	 */	static const char *getHomeDir(void);	/**	 * Get user name.	 *	 * @return user login id.	 */	static const char *getUser(void);	/**	 * Set user id by name.	 *	 * @return true if successful.	 */	static bool setUser(const char *id, bool grp = true);	/**	 * Set the effective group id by name.	 *	 * @return true if successful.	 */	static bool setGroup(const char *id);	/**	 * Return the effective operating system page size.	 *	 * @return system page size.	 */	static size_t getPageSize(void);	/**	 * Used to set process priority and optionally enable realtime.	 */	static void setPriority(int pri);	/**	 * Used to set process scheduling policy.	 */	static void setScheduler(const char *policy);	/**	 * Portable shortcut for setting realtime...	 */	static void setRealtime(int pri = 0);	/**	 * Return true if scheduler settable.	 */	static bool isScheduler(void);	/**	 * Return true if realtime scheduling.	 */	static inline bool isRealtime(void)		{return rtflag;};};/** * This class is used to create a "named" lock entity that can be used * to control access to a resource between multiple processes.  The * posix implimentation uses a pidfile and the win32 version uses a * globally visible mutex. * * @author David Sugar <dyfet@ostel.com> * @short System-wide named lock */class __EXPORT Lockfile{private:#ifdef	WIN32	HANDLE	_mutex;	bool	_flagged;#else	char *_path;#endifpublic:	/**	 * Create a lock under a known name.	 *	 * @param name of system-wide lock to create.	 */	Lockfile(const char *name);	/**	 * Create a new lock object that can be used to make locks.	 */	Lockfile();	/**	 * Destroy the current lock and release it.	 */	~Lockfile()		{unlock();};	/**	 * Lock a system-wide name for this process.  If the lock	 * is successful, return true.  If an existing lock was	 * already acquired, release it first.	 *	 * @return true if lock successful.	 * @param name system-wide lock to use.	 */	bool lock(const char *name);	/**	 * Release an acquired lock.	 */	void unlock(void);	/**	 * Flag if the current process has aqcuired a lock.	 *	 * @return true if we have the lock.	 */	bool isLocked(void);};#ifdef	CCXX_NAMESPACES}#endif#endif/** EMACS ** * Local variables: * mode: c++ * c-basic-offset: 8 * End: */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲综合性久久久影院| 一二三四区精品视频| 国产精品午夜久久| 成人免费一区二区三区视频| 亚洲国产三级在线| 国产一区二区三区免费看| 不卡欧美aaaaa| 日韩三级免费观看| 久久久影视传媒| 亚洲曰韩产成在线| 国产乱码精品一区二区三 | 国产精品久久久久久久久久久免费看 | 国产精品中文有码| 色婷婷综合中文久久一本| 日韩视频不卡中文| 亚洲三级小视频| 国产在线播放一区| 欧美日韩午夜在线| 亚洲国产高清不卡| 久久se这里有精品| 欧美日韩一区二区在线视频| 精品99999| 午夜天堂影视香蕉久久| 成人影视亚洲图片在线| 欧美成人伊人久久综合网| 久久久久青草大香线综合精品| 国产精品不卡视频| 国产一区二区三区综合| 欧美男女性生活在线直播观看| 亚洲精品在线网站| 日韩国产一二三区| 欧美午夜精品久久久久久孕妇| 日本一区二区三区电影| 日韩高清一区在线| 欧美中文字幕一区二区三区亚洲 | 欧美丝袜丝交足nylons图片| 欧美一级在线免费| 成人免费在线播放视频| 国产成人福利片| 精品国产99国产精品| 天涯成人国产亚洲精品一区av| 色综合天天综合色综合av| 中文字幕久久午夜不卡| 国产精品18久久久久久久久久久久 | 69av一区二区三区| 成人欧美一区二区三区小说| 国产不卡高清在线观看视频| 日韩欧美区一区二| 久久99久久久欧美国产| 日韩视频一区在线观看| 亚洲午夜在线视频| 欧美日韩一区在线| 一区二区在线观看免费视频播放| 不卡一区二区中文字幕| 中文字幕不卡一区| 91美女在线看| 一区二区久久久久久| 色哟哟一区二区在线观看| 亚洲少妇最新在线视频| 色综合视频一区二区三区高清| 国产精品初高中害羞小美女文| 懂色av一区二区三区蜜臀| 中文乱码免费一区二区| 99久久久久久99| 亚洲自拍欧美精品| 91精品国产aⅴ一区二区| 日本aⅴ亚洲精品中文乱码| 99精品1区2区| 天天综合色天天| 欧美成人综合网站| 成人一级片网址| 亚洲欧美一区二区不卡| 欧美日韩一级二级| 激情av综合网| 亚洲视频小说图片| 欧美精品视频www在线观看| 久久精品999| 国产精品美女视频| 在线观看日韩高清av| 亚洲国产精品久久久久秋霞影院| 欧美一区二区三区白人| 久久99这里只有精品| 国产精品狼人久久影院观看方式| 在线观看日韩国产| 极品尤物av久久免费看| 国产精品国产三级国产普通话蜜臀 | 国产日韩欧美在线一区| 日本精品一区二区三区四区的功能| 日本网站在线观看一区二区三区| 国产午夜一区二区三区| 欧美日韩精品一区二区天天拍小说 | 性做久久久久久久久| 久久久噜噜噜久久中文字幕色伊伊| av电影在线观看一区| 日本在线观看不卡视频| 亚洲欧洲无码一区二区三区| 日韩一区二区麻豆国产| 9i在线看片成人免费| 蜜桃一区二区三区在线| 亚洲精品成人a在线观看| 亚洲精品在线一区二区| 色噜噜狠狠一区二区三区果冻| 日韩av电影免费观看高清完整版 | 欧美一区二区三区免费视频| 成人av高清在线| 久久精品国产999大香线蕉| 一区二区三区在线不卡| 国产精品三级久久久久三级| 日韩午夜激情电影| 欧美亚洲日本国产| 99这里都是精品| 国产成人在线视频播放| 免费成人在线影院| 亚洲成av人片| 亚洲最大成人网4388xx| 国产女人aaa级久久久级| 欧美一卡二卡三卡| 在线不卡欧美精品一区二区三区| 久久精品国产秦先生| 首页国产丝袜综合| 亚洲成av人综合在线观看| 亚洲一区二区欧美| 一区二区三区精品视频| 久久久久亚洲蜜桃| 久久精品日韩一区二区三区| 欧美精品一区二区久久婷婷| 91精品欧美综合在线观看最新| 色综合久久久久综合| 色av综合在线| 欧美优质美女网站| 一本到不卡精品视频在线观看| 狠狠色2019综合网| 天天操天天色综合| 日韩黄色小视频| 久久精品国产第一区二区三区| 久久机这里只有精品| 美女mm1313爽爽久久久蜜臀| 麻豆91在线看| 国产美女视频91| 成人动漫一区二区三区| 波多野结衣在线aⅴ中文字幕不卡| 日本不卡视频在线| 午夜精品在线视频一区| 日本不卡123| 国产一区91精品张津瑜| 成人激情文学综合网| 91麻豆6部合集magnet| 欧美日韩一级片在线观看| 日韩一区二区免费在线电影| 精品嫩草影院久久| 中文一区二区完整视频在线观看| 亚洲人成7777| 成人免费一区二区三区在线观看| 亚洲三级久久久| 国产真实乱子伦精品视频| 色综合天天性综合| 26uuu欧美日本| 亚洲图片自拍偷拍| 成人激情免费电影网址| 欧美电影在哪看比较好| 国产精品福利一区| 久久精品国产免费| 欧美在线短视频| 国产精品久久夜| 精品一区二区在线视频| 色婷婷综合在线| 国产日产亚洲精品系列| 日日摸夜夜添夜夜添亚洲女人| 成人av网在线| 久久久蜜桃精品| 欧美a级一区二区| 欧美影视一区在线| 亚洲婷婷国产精品电影人久久| 精东粉嫩av免费一区二区三区| 欧美体内she精高潮| 亚洲视频一区二区在线| 国产馆精品极品| 2023国产精品自拍| 久久精品国产99| 欧美一卡在线观看| 天天影视网天天综合色在线播放| 在线影视一区二区三区| 日韩一区日韩二区| 北条麻妃一区二区三区| 久久毛片高清国产| 国产在线视频一区二区| 精品国产乱码久久| 青青草成人在线观看| 在线成人午夜影院| 午夜免费久久看| 在线播放一区二区三区| 香蕉久久夜色精品国产使用方法| 色又黄又爽网站www久久| 亚洲视频网在线直播| 99久久综合狠狠综合久久| 国产精品久久久久aaaa| 99久久精品国产观看| 亚洲久本草在线中文字幕| 色94色欧美sute亚洲线路二| 有坂深雪av一区二区精品|