This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Write on syslog - INFO*/ | |
#include <syslog.h> | |
int record_syslog_info(const char* topic, const char* msg) | |
{ | |
openlog(topic, msg, 0); | |
syslog(LOG_INFO, msg); | |
closelog(); | |
return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/utsname.h> | |
#include <stdio.h> | |
/** | |
uname implementation | |
*/ | |
int main(){ | |
struct utsname name; | |
uname(&name); |