Questions tagged [openbsd]

OpenBSD is an advanced unix-like operating system for modern server, desktop, and embedded computer platforms. It is open source and licensed under the BSD license.

This tag should be used for question pertaining specifically to the OpenBSD operating system. In keeping with the intent of SO, this is limited to programming, not such things as use, installation, configuration, or maintenance. Such questions generally belong on Superuser if related to personal/workstation use, or on ServerFault if related to use as a server.

239 questions
7
votes
1 answer

IPC with imsg? OpenBSD and Linux compatibility?

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 google, and I get a lot of results for iMessage. I…
tprk77
  • 1,151
  • 1
  • 9
  • 22
7
votes
1 answer

In Perl how do I pass unicode arguments to external commands?

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 answers to this question. This works fine on systems…
Mark Lawrence
  • 331
  • 3
  • 6
6
votes
1 answer

Postgresql & OpenBSD first connexion

I don't understand how Postgres works with openBSD. I didn't have these problems with debian (I don't have to do the initdb). I did as follow pkg_add postgresql-server php-pgsql su - _postgresql initdb -D /var/postgresql/data -U postgres - E UTF8…
remy_dev
  • 195
  • 1
  • 12
6
votes
2 answers

Process information in OpenBSD

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 the entire list is present. But I can not find a…
iqstatic
  • 2,322
  • 3
  • 21
  • 39
6
votes
3 answers

Unix C - Portable WEXITSTATUS

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 #include int main(void) { FILE *proc =…
Ishpeck
  • 2,001
  • 1
  • 19
  • 21
5
votes
2 answers

Programming in D for OpenBSD

I have recently been reading up on the D programming language, and am interested in using it for a small application that would run on OpenBSD. As far as I can see there is no OpenBSD port for the compiler, but I can see a reference to OpenBSD in…
John Jeffery
  • 990
  • 5
  • 19
5
votes
2 answers

OpenBSD fails to execute a.out

I wrote this program that should just exit with exitcode 44: // prog.S #include .text .globl _start _start: subl $8, %esp pushl $44 pushl $0 movl $SYS_exit, %eax int $0x80 I…
dVNE
  • 161
  • 9
5
votes
7 answers

To what extent can Version Control help in system administration?

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 my system 3 or 4 times), I wonder what experience…
Brent.Longborough
  • 9,567
  • 10
  • 42
  • 62
5
votes
2 answers

What Jail/Chroot/Sandbox-like mechanisms are available on OpenBSD?

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/Perl), it will be compiled on the Server (OpenBSD), if…
kpalatzky
  • 1,213
  • 1
  • 11
  • 26
4
votes
3 answers

Fork and returning twice

I am working on a project that requires implementation of a fork() in unix. I read freeBSD and openBSD source code but it is really hard to understand. Can someone please Explain the returning twice concept? I understand that one return is pid of a…
user977690
  • 73
  • 3
  • 5
4
votes
2 answers

How can I run VisualWorks under OpenBSD?

Has anyone gotten VisualWorks running under OpenBSD? It's not an officially supported platform, but one of the Cincom guys was telling me that it should be able to run under a linux compatibility mode. How did you set it up? I already have Squeak…
brian d foy
  • 129,424
  • 31
  • 207
  • 592
4
votes
0 answers

How can I use c11 headers in openbsd?

I want to use specific c11 macros in my C code, but they aren't available. I installed gcc 8.4 via pkg_add on a fresh OpenBSD 7.1 install. /usr/include/float.h is missing any c11 definitions. gcc-8.4: sunfire$ egcc -std=c11 prog.c prog.c: In…
xpkr
  • 41
  • 2
4
votes
1 answer

Resize Partitions in OpenBSD

I'm currently trying to install OpenBSD with gnome. I'm having the issue that my /dev/wd0h (/usr/local) disk partition is full, while some of the other have 1 or 2 GB free. I'm trying to resize the partitions, to move some of the available space…
Victor
  • 41
  • 1
  • 5
4
votes
1 answer

OpenBSD 6.1 Python Executable Permission denied

I recently update my server from OpenBSD 6.0 to 6.1 Since this update, the python console is no longer available (I have version 2.7 and 3.6 installed, both have the same behavior) when I try to launch a python console (either in version 2.7.13 or…
Silmaen
  • 59
  • 7
4
votes
2 answers

How to get the executable path on OpenBSD?

I have tried: char *path = realpath(getenv("_"), NULL); *(strrchr(path, '/')+1) = '\0'; That works, but if my executable is invoked by a parent process, then the path of the parent process is shown. I have googled a lot but I wasn't able to find…
Thomas
  • 3,074
  • 1
  • 25
  • 39
1
2
3
15 16