Skip to content

Commit

Permalink
Update ops.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun committed Jun 26, 2018
1 parent 30f9d7b commit f4f374c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/ops.markdown
Expand Up @@ -186,6 +186,8 @@
* [seekfh](#seekfh)
* [tellfh](#tellfh)
* [writefh](#writefh)
- [External command Opcodes](#extern)
* [execname](#execname)
- [File / Directory / Network Opcodes](#-file--directory--network-opcodes)
* [chdir](#chdir)
* [chmod](#chmod)
Expand Down Expand Up @@ -1668,6 +1670,17 @@ Return current access position for an open filehandle.

Output the given object to the filehandle. Returns the number of bytes written.

# <a id="extern"></a> External command Opcodes
## execname
* `execname()`

It's used to implement `$*EXECUTABLE` in Perl 6, and is the name of the
current "executable". So if you run `./perl6-m ....` then it'll be the
`./perl6-m`. It's actually set at present by passing a `--execname=` argument
to MoarVM, since `perl6` is actually a shell script. But when we do get to
providing a fake executable for `perl6` instead, then it'd just initialize it
to `argv[0]`.

# <a id="filedirnet"></a> File / Directory / Network Opcodes

## chdir
Expand Down

0 comments on commit f4f374c

Please sign in to comment.