7fd3b3282f
add config.ld excludes
2023-12-27 23:16:49 +00:00
f187530e0c
add external gitignores
2023-12-27 23:16:49 +00:00
9db822c84f
rename external/luasrc => external/lua
2023-12-27 23:16:49 +00:00
88863a2a3d
add tests
2023-12-27 19:46:54 +13:00
099a9c33e6
fix crash in process.signum, use pgrep over pidof in process.pidof
...
pidof is, as far as I know, only available on Linux. pgrep is much
more portable (even though it is not part of a standard), and can
be found in the base system on most BSDs and included in most
Linux distributions as part of the procps-ng package.
2023-12-27 14:18:07 +13:00
7b8c7632e9
fix up fs
2023-12-26 17:47:07 +13:00
058aa579ba
implement fs.remove, a recursive deletion function
2023-12-24 18:06:58 +13:00
2feddd9abc
improve fs docs and minor blunders
2023-12-24 15:05:52 +13:00
661b141a1f
clean up gitignore
2023-12-24 14:31:14 +13:00
11f6a34ebf
merge fs and path libraries
2023-12-24 14:24:55 +13:00
44f7620a41
fixup doc generation
2023-12-24 14:08:25 +13:00
0081e9d1a6
remove result from config.ld
2023-12-24 09:05:56 +13:00
7c3282181b
remove lua.h from config.ld
...
it's now in external/
2023-12-24 09:04:27 +13:00
2a75eab074
split the contents of fs.isfile and fs.isdirectory into its own function
...
and add more docs
2023-12-24 06:36:06 +13:00
fdcb8f794a
remove errors.h
2023-12-24 06:34:51 +13:00
a2779a1997
drop the shared library
2023-12-24 06:07:26 +13:00
ff5012f2c2
move PREFIX and MANPREFIX into config.mk
2023-12-24 05:53:29 +13:00
790ad50f2b
implement fs.isfile and fs.isdirectory
2023-12-23 20:52:34 +13:00
aa7ae1d9ac
implement fs.copy, a file copying routine and clean up some docs in fs
2023-12-23 20:33:24 +13:00
ea3fb6c292
move lua-5.4 -> external/luasrc
...
we have to use the name "luasrc" rather than just "lua" because lua
is in gitignore
2023-12-23 18:19:51 +13:00
cae9985747
change BSD ifndefs to __OpenBSD__ and remove unnecessary ifdefs
...
I'm not sure if any operating system other than OpenBSD
has strlcpy/strlcat. May need to use a configure script
for this later on.
2023-12-23 16:33:38 +13:00
03b3631fa9
use strerror_r over strerror when lfail is called
2023-12-23 16:22:15 +13:00
dfe3e57d1c
minor cleanups and fixes
...
notably: remove the broken socket module and remove CALLISTO_OSLIBNAME
and CALLISTO_MATHLIBNAME
2023-12-23 13:20:32 +13:00
a4d229b812
Remove ldoc.css
2023-11-27 12:39:58 +13:00
290289cbf5
Refactor and fix up a lot of code
...
Don't tell the boss I forgot a couple of free()s...
2023-11-26 17:13:41 +13:00
fe38efac42
Rename cl.parseopts to cl.options
2023-08-15 15:17:57 +12:00
1b9db30bb8
Improve readme
2023-08-10 11:02:43 +12:00
716cc10392
Add result to config.ld
2023-08-10 09:45:53 +12:00
a8b7d712f2
Update flake
2023-08-10 08:18:03 +12:00
7ff02fbbb1
Move fs.basename and fs.dirname into the path library, create errors.h
2023-08-10 08:14:05 +12:00
18597a772e
Improve flake
2023-08-03 17:02:17 +12:00
9108a9f707
Add note about Nix flake in README.md
2023-08-03 13:00:43 +12:00
d08e97f935
Add Nix flake
...
and add result to .gitignore
2023-08-03 12:36:30 +12:00
7a2db8166b
"refactor" readme
2023-08-01 17:57:24 +12:00
6590351e48
Add fs.mkdir and fs.rmdir functions, improve lfs.c
...
- Add fs.mkdir
- Add fs.rmdir
- Change library description
- Re-order #includes
- Use #defines for error messages
2023-08-01 13:35:02 +12:00
659bbb9e90
Rename file -> fs
2023-08-01 13:34:32 +12:00
e18cf6e588
Split clean target up into clean and clean-all in Makefile
2023-07-31 12:36:00 +12:00
84f58824b9
Rename the file module to fs, and make some documentation changes
2023-07-31 07:33:23 +12:00
8e20d1e382
Update to Lua 5.4.6
2023-07-30 09:57:45 +12:00
57a4014981
Fix some ldoc mistakes
2023-07-30 10:05:16 +12:00
479e6ef5ec
Add Lua 5.4.6 README
2023-07-26 08:41:19 +12:00
71e00e256f
Add *.so.* to gitignore
2023-07-24 16:26:39 +12:00
b723db8874
Remove liblua.so and liblua.so.patch
2023-07-24 16:25:51 +12:00
fa8d6035c5
Improve README.md again
2023-07-26 09:32:46 +12:00
f479ad5102
Improve README.md
2023-07-26 08:40:30 +12:00
75aaaf922f
Fix merge conflict in .gitignore
2023-07-24 13:24:06 +12:00
02fae90b69
Rename lcallisto.h -> callisto.h
2023-07-24 12:31:21 +12:00
4e03fc1620
Rename lcallisto.c -> callisto.c
2023-07-24 12:30:41 +12:00
221ef63cd4
Copy libcallisto.so to DESTDIR/PREFIX/lib (-lcallisto is WIP)
2023-07-24 12:16:55 +12:00
c09a47f790
Define LUA_USE_POSIX
2023-07-24 12:09:37 +12:00