Skip to content

Commit

Permalink
[io grant] Remove role IO and its .umask method
Browse files Browse the repository at this point in the history
Moved the IO enums to the next file listed in the _core_sources
  • Loading branch information
zoffixznet committed Apr 2, 2017
1 parent 9d8d7b2 commit 87987c2
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/IO/Handle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ my class IO::Path { ... }
my class IO::Special { ... }
my class Proc { ... }

my class IO::Handle does IO {
my class IO::Handle {
has $.path;
has $!PIO;
has $.chomp is rw = Bool::True;
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/Socket.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
my role IO::Socket does IO {
my role IO::Socket {
has $!PIO;
# JVM has a buffer here; Moar does enough buffering of its own
# and gets it much more correct when bytes cross boundaries, so we use its.
Expand Down
26 changes: 26 additions & 0 deletions src/core/IO/Spec.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,30 @@ my class IO::Spec {
# temporary non-lazy initialization of $*SPEC
PROCESS::<$SPEC> = IO::Spec.select;

enum SeekType (
:SeekFromBeginning(0),
:SeekFromCurrent(1),
:SeekFromEnd(2),
);
enum ProtocolFamily (
:PF_LOCAL(0),
:PF_UNIX(1),
:PF_INET(2),
:PF_INET6(3),
:PF_MAX(4),
);
enum SocketType (
:SOCK_PACKET(0),
:SOCK_STREAM(1),
:SOCK_DGRAM(2),
:SOCK_RAW(3),
:SOCK_RDM(4),
:SOCK_SEQPACKET(5),
:SOCK_MAX(6),
);
enum ProtocolType (
:PROTO_TCP(6),
:PROTO_UDP(17),
);

# vim: ft=perl6 expandtab sw=4
1 change: 0 additions & 1 deletion tools/build/jvm_core_sources
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ src/core/Cursor.pm
src/core/Grammar.pm
src/core/Regex.pm
src/core/allomorphs.pm
src/core/IO.pm
src/core/IO/Spec.pm
src/core/IO/Spec/Unix.pm
src/core/IO/Spec/Win32.pm
Expand Down
1 change: 0 additions & 1 deletion tools/build/moar_core_sources
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ src/core/Cursor.pm
src/core/Grammar.pm
src/core/Regex.pm
src/core/allomorphs.pm
src/core/IO.pm
src/core/IO/Spec.pm
src/core/IO/Spec/Unix.pm
src/core/IO/Spec/Win32.pm
Expand Down

0 comments on commit 87987c2

Please sign in to comment.