File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 11/* *
22 * Created by Jian Chen
3- * @since 2016.04.29
4- * @author Jian Chen <admin@chensoft.com>
5- * @link http://chensoft.com
3+ * @since 2016.04.29
4+ * @author Jian Chen <admin@chensoft.com>
5+ * @link http://chensoft.com
6+ * @caution regex is incomplete in some compilers, like gcc 4.8.x
67 */
78#pragma once
89
1112
1213namespace chen
1314{
14- /* *
15- * @caution, regex is incomplete in some compilers, like gcc 4.8.x
16- * make sure your compiler has fully support for regex
17- */
1815 class regex
1916 {
2017 public:
Original file line number Diff line number Diff line change @@ -25,8 +25,11 @@ namespace chen
2525 * the current directory will change to '/' on Unix
2626 * standard file descriptors will be closed
2727 * @link http://www.netzmafia.de/skripten/unix/linux-daemon-howto.html
28+ * @caution support Unix only
2829 */
30+ #ifndef _WIN32
2931 static void daemon ();
32+ #endif
3033
3134 /* *
3235 * UUID string
Original file line number Diff line number Diff line change @@ -14,9 +14,4 @@ std::string sys::error()
1414{
1515 char buf[1024 ] = {0 };
1616 return errno && !::strerror_s (buf, sizeof (buf), errno) ? std::string (buf) : " No error" ;
17- }
18-
19- void sys::daemon ()
20- {
21- // todo not implement
2217}
You can’t perform that action at this time.
0 commit comments