mirror of
https://github.com/A2osX/A2osX.git
synced 2025-04-06 18:37:12 +00:00
Kernel 0.94
This commit is contained in:
parent
f1e78993d3
commit
a395d3fe03
Binary file not shown.
@ -184,7 +184,7 @@ SYS.Open .EQ $16
|
||||
SYS.Close .EQ $18
|
||||
SYS.Read .EQ $1A
|
||||
SYS.Write .EQ $1C
|
||||
* .EQ $1E
|
||||
SYS.ChOwn .EQ $1E
|
||||
* STDIO
|
||||
SYS.FPutC .EQ $20
|
||||
SYS.PutChar .EQ $22
|
||||
|
@ -21,7 +21,7 @@ K.SYSCALL .DA K.ChTyp $00 : STAT
|
||||
.DA K.Close
|
||||
.DA K.Read
|
||||
.DA K.Write
|
||||
.DA 0
|
||||
.DA K.ChOwn
|
||||
|
||||
.DA K.FPutC $20 : STDIO
|
||||
.DA K.PutChar
|
||||
|
@ -1,20 +1,6 @@
|
||||
NEW
|
||||
AUTO 3,1
|
||||
*/--------------------------------------
|
||||
* # ChOwn
|
||||
* ## C
|
||||
* `short int chown(const char *pathname, short int owner, short int group);`
|
||||
* ## ASM
|
||||
* **In:**
|
||||
* `>PUSHW pathname`
|
||||
* `>PUSHB owner`
|
||||
* `>PUSHB group`
|
||||
* `>SYSCALL chown`
|
||||
* ## RETURN VALUE
|
||||
*\--------------------------------------
|
||||
K.ChOwn clc
|
||||
rts
|
||||
*/--------------------------------------
|
||||
* # open
|
||||
* ## C
|
||||
* `hFD open(const char *pathname, short int flags);`
|
||||
@ -237,6 +223,20 @@ UNISTD.GetPFD sta IO.hFD
|
||||
rts
|
||||
*--------------------------------------
|
||||
DEV.FIFO .AS "/dev/fifo" STAT,UNISTD
|
||||
*/--------------------------------------
|
||||
* # ChOwn
|
||||
* ## C
|
||||
* `short int chown(const char *pathname, short int owner, short int group);`
|
||||
* ## ASM
|
||||
* **In:**
|
||||
* `>PUSHW pathname`
|
||||
* `>PUSHB owner`
|
||||
* `>PUSHB group`
|
||||
* `>SYSCALL chown`
|
||||
* ## RETURN VALUE
|
||||
*\--------------------------------------
|
||||
K.ChOwn clc
|
||||
rts
|
||||
*--------------------------------------
|
||||
MAN
|
||||
SAVE USR/SRC/SYS/KERNEL.S.UNISTD
|
||||
|
Loading…
x
Reference in New Issue
Block a user