Skip to content

Instantly share code, notes, and snippets.

View goyox86's full-sized avatar

Jose Narvaez goyox86

View GitHub Profile
root:file:# ./tests-767ae2d9cf350b87
running 17 tests
test test_absolute_path ... condvar wait_timeout
thread 'main' panicked at 'not yet implemented', /Users/goyox86/Code/os/redox/redox/rust/src/libstd/sys/redox/condvar.rs:92:8
stack backtrace:
0: std::sys::imp::backtrace::tracing::unwind_backtrace
1: std::sys_common::backtrace::print
2: _ZN3std9panicking12default_hook28_$u7b$$u7b$closure$u7d$$u7d$17h415b2f48f664d25eE.llvm.130CD4F8
3: _ZN3std9panicking12default_hook17h257bcef91e933eefE.llvm.130CD4F8
oyox86@15317-jnarvaez:~/Code/os/redox/redox|goyox86/fd⚡
⇒ cloc . --exclude-dir=rust,build,docker,cookbook
724 text files.
715 unique files.
312 files ignored.
github.com/AlDanial/cloc v 1.74 T=5.79 s (77.6 files/s, 4842.8 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
5: CXX machine/accessor_primitives.cpp
In file included from In file included from machine/arguments.cpp:machine/accessor_primitives.cpp1:
In file included from /Users/goyox86/Code/ruby/rubinius/machine/arguments.hpp:5:
In file included from In file included from /Users/goyox86/Code/ruby/rubinius/machine/class/array.hppmachine/bytecode_verifier.cpp::41:
:
In file included from In file included from /Users/goyox86/Code/ruby/rubinius/machine/object_utils.hpp:/Users/goyox86/Code/ruby/rubinius/machine/class/compiled_code.hpp::144:
:
:
In file included from In file included from In file included from /Users/goyox86/Code/ruby/rubinius/machine/arguments.hpp/Users/goyox86/Code/ruby/rubinius/machine/object_utils.hpp:/Users/goyox86/Code/ruby/rubinius/machine/class/object.hpp:5::
47In file included from :
#if defined TIOCGWINSZ
typedef struct winsize rb_console_size_t;
#define getwinsize(fd, buf) (ioctl((fd), TIOCGWINSZ, (buf)) == 0)
#define setwinsize(fd, buf) (ioctl((fd), TIOCSWINSZ, (buf)) == 0)
#define winsize_row(buf) (buf)->ws_row
#define winsize_col(buf) (buf)->ws_col
#elif defined _WIN32
typedef CONSOLE_SCREEN_BUFFER_INFO rb_console_size_t;
#define getwinsize(fd, buf) ( \
GetConsoleScreenBufferInfo((HANDLE)rb_w32_get_osfhandle(fd), (buf)) || \
@goyox86
goyox86 / main.rs
Created September 25, 2017 11:06
Small Redox `mio` sample
extern crate mio;
use std::io::{Read, Write};
fn main() {
println!("TEST");
use mio::*;
use mio::net::{TcpListener, TcpStream};
error[E0425]: cannot find value `S_IRUSR` in module `libc`
--> src/fs/file.rs:445:43
|
445 | pub const USER_READ: Mode = libc::S_IRUSR as Mode;
| ^^^^^^^ not found in `libc`
error[E0425]: cannot find value `S_IWUSR` in module `libc`
--> src/fs/file.rs:446:43
|
446 | pub const USER_WRITE: Mode = libc::S_IWUSR as Mode;
@goyox86
goyox86 / libz-sys.sh
Created August 4, 2017 22:10
libz-sys
xargo build --target="x86_64-unknown-redox"
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling core v0.0.0 (file:///Users/goyox86/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore)
Compiling gcc v0.3.51
Compiling libc v0.2.29
Compiling libc v0.0.0 (file:///Users/goyox86/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/rustc/libc_shim)
Compiling unwind v0.0.0 (file:///Users/goyox86/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libunwind)
Compiling filetime v0.1.10
Compiling build_helper v0.1.0 (file:///Users/goyox86/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/build_helper)
Compiling std v0.0.0 (file:///Users/goyox86/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd)
audio: Failed to create voice `adc'
Kernel: 100000:7E3570
Stack: FFFFFF0000080000:FFFFFF000009F000
MemoryArea { base_addr: 0, length: 654336, _type: 1, acpi: 0 }
MemoryArea { base_addr: 654336, length: 1024, _type: 2, acpi: 0 }
MemoryArea { base_addr: 983040, length: 65536, _type: 2, acpi: 0 }
MemoryArea { base_addr: 1048576, length: 2146295808, _type: 1, acpi: 0 }
MemoryArea { base_addr: 2147344384, length: 139264, _type: 2, acpi: 0 }
MemoryArea { base_addr: 2952790016, length: 268435456, _type: 2, acpi: 0 }
MemoryArea { base_addr: 4275159040, length: 16384, _type: 2, acpi: 0 }
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib" "/home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps/hello_world-9fe964d976956541.0.o" "-o" "/home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps/hello_world-9fe964d976956541" "/home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps/hello_world-9fe964d976956541.crate.allocator.o" "-Wl,--gc-sections" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps" "-L" "/home/goyox86/Code/os/redox/hello_world/target/release/deps" "-L" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib" "-Wl,-Bstatic" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libstd.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/liballoc_system-b7c5924297e4877f.rlib" "/home/goyox86/.xargo/lib/rustlib
x86_64-elf-redox-gcc -g -O2 -DNDEBUG -o gawk array.o awkgram.o builtin.o cint_array.o command.o debug.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o re.o replace.o str_array.o symbol.o version.o support/libsupport.a -lm
main.o: In function `load_procinfo':
/Users/goyox86/Code/os/redox/redox/cookbook/recipes/gawk/build/main.c:1003: undefined reference to `getppid'
collect2: error: ld returned 1 exit status
make[3]: *** [gawk] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
./repo.sh failed.make: *** [build/filesystem.bin] Error 1