Skip to content

Commit

Permalink
Fixed on the fly change log path and improved file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kala13x committed Jan 28, 2025
1 parent 25c1291 commit 4592a85
Show file tree
Hide file tree
Showing 72 changed files with 419 additions and 340 deletions.
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ add_library(xutils STATIC
./src/data/jwt.c
./src/data/list.c
./src/data/map.c
./src/data/xbuf.c
./src/data/xjson.c
./src/data/xstr.c
./src/data/buf.c
./src/data/json.c
./src/data/str.c
./src/net/addr.c
./src/net/event.c
./src/net/http.c
Expand All @@ -72,14 +72,14 @@ add_library(xutils STATIC
./src/sys/sync.c
./src/sys/pool.c
./src/sys/thread.c
./src/sys/xcli.c
./src/sys/xcpu.c
./src/sys/cli.c
./src/sys/cpu.c
./src/sys/xfs.c
./src/sys/xlog.c
./src/sys/xsig.c
./src/sys/log.c
./src/sys/sig.c
./src/sys/xtime.c
./src/sys/xtop.c
./src/sys/xtype.c
./src/sys/mon.c
./src/sys/type.c
)

install(TARGETS xutils DESTINATION lib)
Expand Down
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ OBJS = xver.$(OBJ) \
sha1.$(OBJ) \
array.$(OBJ) \
hash.$(OBJ) \
json.$(OBJ) \
jwt.$(OBJ) \
list.$(OBJ) \
map.$(OBJ) \
xbuf.$(OBJ) \
xjson.$(OBJ) \
xstr.$(OBJ) \
buf.$(OBJ) \
str.$(OBJ) \
addr.$(OBJ) \
event.$(OBJ) \
http.$(OBJ) \
Expand All @@ -40,14 +40,14 @@ OBJS = xver.$(OBJ) \
sync.$(OBJ) \
pool.$(OBJ) \
thread.$(OBJ) \
xcli.$(OBJ) \
xcpu.$(OBJ) \
type.$(OBJ) \
cli.$(OBJ) \
cpu.$(OBJ) \
mon.$(OBJ) \
log.$(OBJ) \
sig.$(OBJ) \
xfs.$(OBJ) \
xlog.$(OBJ) \
xsig.$(OBJ) \
xtime.$(OBJ) \
xtop.$(OBJ) \
xtype.$(OBJ) \

OBJECTS = $(patsubst %,$(ODIR)/%,$(OBJS))
INSTALL_INC = /usr/local/include/xutils
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

#### Containrers:
- [Dynamically allocated array with sort and search features](https://github.com/kala13x/libxutils/blob/main/src/data/array.h)
- [Dynamically allocated byte and data buffers](https://github.com/kala13x/libxutils/blob/main/src/data/xbuf.h)
- [Dynamically allocated byte and data buffers](https://github.com/kala13x/libxutils/blob/main/src/data/buf.h)
- [Dynamically allocated key-value pair map](https://github.com/kala13x/libxutils/blob/main/src/data/map.h)
- [Dynamically allocated hash map](https://github.com/kala13x/libxutils/blob/main/src/data/hash.h)
- [Dynamically allocated C string](https://github.com/kala13x/libxutils/blob/main/src/data/xstr.h)
- [Dynamically allocated C string](https://github.com/kala13x/libxutils/blob/main/src/data/str.h)
- [Implementation of linked list](https://github.com/kala13x/libxutils/blob/main/src/data/list.h)

#### Network:
Expand All @@ -41,20 +41,20 @@

#### System:
- [Cross-platform file and directory operations](https://github.com/kala13x/libxutils/blob/main/src/sys/xfs.h)
- [Cross-platform CPU affinity manipulation](https://github.com/kala13x/libxutils/blob/main/src/sys/xcpu.h)
- [Cross-platform CPU affinity manipulation](https://github.com/kala13x/libxutils/blob/main/src/sys/cpu.h)
- [Implementation of advanced file search](https://github.com/kala13x/libxutils/blob/main/src/sys/xfs.h)
- [System time manipulation library](https://github.com/kala13x/libxutils/blob/main/src/sys/xtime.h)
- [Performance monitoring library](https://github.com/kala13x/libxutils/blob/main/src/sys/xtop.h)
- [Performance monitoring library](https://github.com/kala13x/libxutils/blob/main/src/sys/mon.h)
- [Simple and fast memory pool](https://github.com/kala13x/libxutils/blob/main/src/sys/pool.h)
- [Advanced logging library](https://github.com/kala13x/libxutils/blob/main/src/sys/xlog.h)
- [Advanced logging library](https://github.com/kala13x/libxutils/blob/main/src/sys/log.h)

#### Miscellaneous:
- [JSON parser and writer library with lint and minify support](https://github.com/kala13x/libxutils/blob/main/src/data/xjson.h)
- [JSON parser and writer library with lint and minify support](https://github.com/kala13x/libxutils/blob/main/src/data/json.h)
- [Implementation of JSON Web Tokens with HS256 and RS256](https://github.com/kala13x/libxutils/blob/main/src/data/jwt.h)
- [Cross-platform synchronization library](https://github.com/kala13x/libxutils/blob/main/src/sys/sync.h)
- [Cross-platform multithreading library](https://github.com/kala13x/libxutils/blob/main/src/sys/thread.h)
- [Command-Line interface operations](https://github.com/kala13x/libxutils/blob/main/src/sys/xcli.h)
- [C String manipulation library](https://github.com/kala13x/libxutils/blob/main/src/data/xstr.h)
- [Command-Line interface operations](https://github.com/kala13x/libxutils/blob/main/src/sys/cli.h)
- [C String manipulation library](https://github.com/kala13x/libxutils/blob/main/src/data/str.h)

### Installation
There are several ways to build and install the project.
Expand Down Expand Up @@ -186,7 +186,7 @@ cmake . && make
#### XTOP and more

<p align="center">
<img src="https://raw.githubusercontent.com/kala13x/libxutils/main/misc/xtop.png" alt="alternate text">
<img src="https://raw.githubusercontent.com/kala13x/libxutils/main/misc/mon.png" alt="alternate text">
</p>

`XTOP` is `HTOP` like performance monitor that supports to monitor CPU, memory, and network traffic into a single window. In addition, it has powerful `REST API` client/server mode and much more.
Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ set(SOURCE_FILES
events.c
files.c
json.c
xlog.c
log.c
list.c
ntp.c
jwt.c
Expand Down
4 changes: 2 additions & 2 deletions examples/async-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include "xstd.h"
#include "xver.h"
#include "xlog.h"
#include "xsig.h"
#include "log.h"
#include "sig.h"
#include "xfs.h"
#include "api.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/async-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include "xstd.h"
#include "xver.h"
#include "xlog.h"
#include "xsig.h"
#include "log.h"
#include "sig.h"
#include "xfs.h"
#include "api.h"

Expand Down
2 changes: 1 addition & 1 deletion examples/basic-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "xstd.h"
#include "sock.h"
#include "xlog.h"
#include "log.h"
#include "xtime.h"

int main(int argc, char *argv[])
Expand Down
6 changes: 3 additions & 3 deletions examples/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

#include "xstd.h"
#include "event.h"
#include "xsig.h"
#include "sig.h"
#include "http.h"
#include "sock.h"
#include "xbuf.h"
#include "xlog.h"
#include "buf.h"
#include "log.h"
#include "xver.h"

static int g_nInterrupted = 0;
Expand Down
2 changes: 1 addition & 1 deletion examples/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

#include "xstd.h"
#include "xlog.h"
#include "log.h"
#include "xfs.h"

int main(int argc, char *argv[])
Expand Down
4 changes: 2 additions & 2 deletions examples/http-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include "xstd.h"
#include "xver.h"
#include "xlog.h"
#include "xsig.h"
#include "log.h"
#include "sig.h"
#include "xfs.h"
#include "api.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include "xstd.h"
#include "xfs.h"
#include "xlog.h"
#include "xjson.h"
#include "log.h"
#include "json.h"
#include "pool.h"

int main(int argc, char *argv[])
Expand Down
4 changes: 2 additions & 2 deletions examples/jwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include "xstd.h"
#include "crypt.h"
#include "xjson.h"
#include "xlog.h"
#include "json.h"
#include "log.h"
#include "jwt.h"
#include "xfs.h"

Expand Down
2 changes: 1 addition & 1 deletion examples/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

#include "list.h"
#include "xlog.h"
#include "log.h"

typedef struct {
char *pName;
Expand Down
2 changes: 1 addition & 1 deletion examples/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "xstd.h"
#include "xtime.h"
#include "xlog.h"
#include "log.h"
#include "ntp.h"

#define NTP_SERVER "europe.pool.ntp.org"
Expand Down
2 changes: 1 addition & 1 deletion examples/rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

#include "xstd.h"
#include "xlog.h"
#include "log.h"
#include "xfs.h"
#include "crypt.h"

Expand Down
8 changes: 4 additions & 4 deletions examples/statcov.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
#include "xver.h"
#include "sock.h"
#include "http.h"
#include "xstr.h"
#include "xlog.h"
#include "xtype.h"
#include "xjson.h"
#include "str.h"
#include "log.h"
#include "type.h"
#include "json.h"

#define STOPCOV_LINK "https://stopcov.ge/"
#define XSPACE_CHAR "&#160;"
Expand Down
4 changes: 2 additions & 2 deletions examples/strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/

#include "xstd.h"
#include "xstr.h"
#include "xlog.h"
#include "str.h"
#include "log.h"
#include "array.h"

#define UPPER_STRING "TEST STRING WITH UPPER CASE"
Expand Down
6 changes: 3 additions & 3 deletions examples/ws-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

#include "xstd.h"
#include "xver.h"
#include "xlog.h"
#include "xsig.h"
#include "xcli.h"
#include "log.h"
#include "sig.h"
#include "cli.h"
#include "addr.h"
#include "api.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/ws-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include "xstd.h"
#include "xver.h"
#include "xlog.h"
#include "xsig.h"
#include "log.h"
#include "sig.h"
#include "api.h"

static int g_nInterrupted = 0;
Expand Down
6 changes: 3 additions & 3 deletions examples/xlog.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* examples/xlog.c
* examples/log.c
*
* Copyleft (C) 2015 Sun Dro (a.k.a. kala13x)
*
Expand All @@ -8,8 +8,8 @@


#include "xstd.h"
#include "xstr.h"
#include "xlog.h"
#include "str.h"
#include "log.h"
#include "xtime.h"

int logCallback(const char *pLog, size_t nLength, xlog_flag_t eFlag, void *pCtx)
Expand Down
Loading

0 comments on commit 4592a85

Please sign in to comment.