diff options
| author | ruki <[email protected]> | 2024-03-28 23:01:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-03-28 23:01:07 +0800 |
| commit | 024b14ed93b1bc7e3b30d8dc68105ce2cb5016d6 (patch) | |
| tree | 0f41435fe2ba5f0e9cb919174d957b35d2cf3dbd /xmake/core/sandbox/modules/os.lua | |
| parent | 4d4edd5ba69932b2206c891a18dee0f734327767 (diff) | |
add os.signal #4889
Diffstat (limited to 'xmake/core/sandbox/modules/os.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index 9004f66ee..5e2a94e92 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -82,6 +82,7 @@ sandbox_os.projectdir = os.projectdir sandbox_os.projectfile = os.projectfile sandbox_os.getwinsize = os.getwinsize sandbox_os.getpid = os.getpid +sandbox_os.signal = os.signal -- syserror code sandbox_os.SYSERR_UNKNOWN = os.SYSERR_UNKNOWN @@ -90,6 +91,9 @@ sandbox_os.SYSERR_NOT_PERM = os.SYSERR_NOT_PERM sandbox_os.SYSERR_NOT_FILEDIR = os.SYSERR_NOT_FILEDIR sandbox_os.SYSERR_NOT_ACCESS = os.SYSERR_NOT_ACCESS +-- signal code +sandbox_os.SIGINT = os.SIGINT + -- copy file or directory function sandbox_os.cp(srcpath, dstpath, opt) assert(srcpath and dstpath) |
