Last change
on this file since 546 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
446 bytes
|
Line | |
---|
1 | #include <string.h> |
---|
2 | |
---|
3 | #include "cio.h" |
---|
4 | |
---|
5 | signed int |
---|
6 | unlink (const char * name) |
---|
7 | { |
---|
8 | unsigned len = strlen (name); |
---|
9 | |
---|
10 | if (len >= CIO_BUF_SIZE) |
---|
11 | return -1; |
---|
12 | |
---|
13 | __CIOBUF__.length[0] = len; |
---|
14 | __CIOBUF__.length[1] = len >> 8; |
---|
15 | __CIOBUF__.parms[0] = CIO_UNLINK; |
---|
16 | __CIOBUF__.parms[1] = len; |
---|
17 | __CIOBUF__.parms[2] = len >> 8; |
---|
18 | memcpy (__CIOBUF__.buf, name, len); |
---|
19 | |
---|
20 | _libgloss_cio_hook (); |
---|
21 | |
---|
22 | return __CIOBUF__.parms[0] + __CIOBUF__.parms[1] * 256; |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.