openbsd Questions
1
There is a cool utility out there called sshuttle. It has depended on ipfw to forward packets in the past. It appears that ipfw is mostly broken in Mavericks and the advice is to use PacketFi...
Damick asked 16/9, 2014 at 15:55
4
php-fpm, nginx exec when in use .phpfiles() shell_exec() system() works fine from the command line.
Example when works well:
#php myphp.php
myphp.php contains:
<?php
exec('ping -c 3 google....
2
2
Solved
I have recently started using OpenBSD. And I want to create easy fire-and-forget containers/VM or something es (it should be used as a Sandbox).
The user can upload his source code (C++/Java...
6
Solved
I want to understand the following code:
//...
#define _C 0x20
extern const char *_ctype_;
//...
__only_inline int iscntrl(int _c)
{
return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] &...
3
Solved
I'm trying to get the exit code of a subprocess. On Linux and FreeBSD I can go like so:
[0] [ishpeck@kiyoshi /tmp]$ uname
FreeBSD
[0] [ishpeck@kiyoshi /tmp]$ cat tinker.c
#include <stdio.h>...
Retrorocket asked 2/12, 2012 at 22:32
2
5
Why zsh: command not found: bundle after gem install bundler?
I tried setting path=( /usr/local/lib/ruby/gems/2.2/gems/ ~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ) in /et...
3
Solved
I saw format specifier %qd when browsing github code. Then I checked in GCC compiler, it's working fine.
#include <stdio.h>
int main()
{
long long num = 1;
printf("%qd\n", num);
return ...
Greasepaint asked 13/6, 2018 at 6:21
1
Solved
I have a simple test file that looks like this:
use v6.c;
use NativeCall;
sub fcntl(int32, int32 --> int32) is native { * }
sub close(int32 --> int32) is native { * }
my $fd := fcntl($*OUT...
Rations asked 30/3, 2018 at 12:49
2
Solved
In the OpenBSD code here, there is a comment that ends with:
@(#)init_main.c 8.9 (Berkeley) 1/21/94
What is the purpose of @(#)? I would assume that it is to make searching easier, but why @(#) ...
2
I am new to OpenBSD. I have worked on Linux before. I am looking for the directory where I can find the information about the processes running currently. In Linux, we have /proc directory where th...
2
The OpenBSD manual states:
For security reasons, OpenBSD does not route IPv4 traffic to an AF_INET6 socket, and does not support IPv4 mapped addresses, where IPv4 traffic is seen as if it comes ...
2
Solved
Found myself looking at the arc4random_uniform source (http://bxr.su/o/lib/libc/crypt/arc4random_uniform.c)
My question relates to the following line (the comment is their original comment) :
/*...
Patriapatriarch asked 28/5, 2015 at 14:15
1
Solved
I was reading the Tmux source to see how it works. It saw that it uses imsg for its IPC, which I had never even heard of. I've been trying to find out more, but it turns out imsg is kind of hard to...
2
Solved
Sorry, the headline might be a bit irritating, but I didn't know anything better. Anyway, I want a bash script to work on FreeBSD, OpenBSD and Linux without modifying it, but bash isn't located at ...
5
Solved
I have input (for example, from ifconfig run0 scan on OpenBSD) that has some fields that are separated by spaces, but some of the fields themselves contain spaces (luckily, such fields that contain...
1
The root cause for this question is my attempt to write tests for a new option/argument processing module (OptArgs) for Perl. This of course involves parsing @ARGV which I am doing based on the ans...
3
Look at the following implementations of the "echo" command:
http://bxr.su/o/bin/echo/echo.c (OpenBSD)
http://bxr.su/d/bin/echo/echo.c (DragonFly)
http://bxr.su/n/bin/echo/echo.c (NetBSD)
http://...
Yuki asked 20/7, 2010 at 13:57
2
Solved
I'm setting up a computer running OpenBSD that I wish to play all the music I will ever want. I want it to basically set in a corner and do it's thing. The problem with that is that I want to contr...
4
Solved
I would like to use OpenBSD's implementation of malloc, realloc and free on my Debian lenny desktop rather than glibc's.
Are they simply drop in replacements: will they work on my Linux desktop ?...
7
Solved
I'm currently tinkering at an OpenBSD system with a view to building myself a firewall and some other bits and bobs.
As this is fairly experimental (I'm an OpenBSD n00b, and I've already trashed m...
Jabberwocky asked 17/1, 2009 at 13:16
4
Solved
Has anyone been able to get xinc to run correctly under OpenBSD's chrooted default Apache? I'd like to keep our development server running fully chrooted just like our Production server so that we ...
Champ asked 13/8, 2008 at 3:47
1
© 2022 - 2024 — McMap. All rights reserved.