1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/yuanhack-yhevents

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
yhdaemon.h 919
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Yuan Hong Отправлено 03.12.2015 09:38 407bae3
#ifndef __YH__STASH_SRC_LIBS_YHEPOLL_DAEMON_INIT_H__
#define __YH__STASH_SRC_LIBS_YHEPOLL_DAEMON_INIT_H__
#include <syslog.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include "yherror.h"
#ifdef __cplusplus
extern "C"
{
#endif
#pragma pack(push)
#pragma pack(1)
#pragma pack(pop)
// If chdir_root != zero, daemoninit() changes the calling process's
// current working directory to the root directory ("/");
// otherwise, the current working directory is left unchanged.
// If close_012 != zero, daemoninit() redirects standard input,
// standard output and standard error to /dev/null;
// otherwise, no changes are made to these file descriptors.
void daemoninit(const char *pname, int facility, int chdir_root, int close_012);
#ifdef __cplusplus
}
#endif
#endif /* __YH__STASH_SRC_LIBS_YHEPOLL_DAEMON_INIT_H__ */

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/yuanhack-yhevents.git
git@api.gitlife.ru:oschina-mirror/yuanhack-yhevents.git
oschina-mirror
yuanhack-yhevents
yuanhack-yhevents
master