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
4
votes
0 answers

Getting audio information with C under OpenBSD

I am trying to get audio information like volume for a C program in OpenBSD. Via shell the command would be mixerctl outputs.master But how can I get that in C? So far I have only found something similar in the audio(4) manpage, but I couldn't get…
tls
  • 41
  • 5
4
votes
1 answer

Grep behaving differently in OpenBSD to Linux. Cannot get command working

So basically what this command does is securely connect to a web domain to grab my external IP address, this works flawlessly on a Linux Debian system, but it is not working right on my OpenBSD system. Curl command works fine, however something is…
linux4fun
  • 43
  • 3
4
votes
1 answer

Configuring devices in chroot-environment OpenBSD

I have been scratching my head for a while now and cannot find a way to make it work... I want to run some cgi scripts (written in Python) on my OpenBSD server. Since the web-server on OpenBSD runs in a jail I recreated the whole folder structure…
TDrabas
  • 858
  • 6
  • 13
4
votes
2 answers

Building a perl extension module on OpenBSD

How ought I build an XS perl module on OpenBSD when the requisite .so files are missing? Background: On a vanilla OpenBSD 5.3 vm install, I'm unable to build a perl module which needs to link against -lpthread. pthread.a and pthread.so.Maj.Min do…
pilcrow
  • 56,591
  • 13
  • 94
  • 135
4
votes
5 answers

sed: replace spaces within quotes with underscores

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 spaces are always enclosed in quotes). I need to…
cnst
  • 25,870
  • 6
  • 90
  • 122
3
votes
1 answer

Why does OpenBSD's G++ make system headers default to C linkage?

I am porting some code to OpenBSD 5.0 and I ran into this very strange problem. My build settings use -isystem /usr/local/include. It is hard to remember but I believe I did that to avoid masses of compiler warnings from my use of -Wall on system…
Zan Lynx
  • 53,022
  • 10
  • 79
  • 131
3
votes
1 answer

Does OpenBSD support parallel Kernel access

I tried to figure out if multiple processes or threads can execute concurrent syscalls, without one of them sleeping. That's to say: Does OpenBSD use something like a Big Kernel Lock. One would expect, that parallel Kernel access is possible. I…
prometheus
  • 31
  • 1
3
votes
0 answers

OpenBSD relayd+httpd vs nginx. Reverse Proxy with tls client certificate

I don't understand. I need reverse proxy with tls client certificate. OpenBSD relayd can act as reverse proxy, but it doesn't have tls client certificate verification. OpenBSD httpd has tls client cert verification, but it can't act as reverse…
3
votes
1 answer

What is the purpose of uint64_t ps_pledge varibale in OpenBSD kernel code?

I am playing with OpenBSD kernel code, especially this file sys/kern/sched_bsd.c. void schedcpu(void *arg) { ...... ...... LIST_FOREACH(p, &allproc, p_list) { /* * Increment sleep time (if sleeping). We ignore…
bsdboy
  • 111
  • 10
3
votes
1 answer

openbsd httpd fastcgi configuration

How many fastcgi handlers can httpd configuration file have? I want to set up httpd server to server multiple fastcgi programs running on different tcp sockets. For example: http://uwsgi-docs.readthedocs.io/en/latest/OpenBSDhttpd.html server…
KartDev
  • 75
  • 2
  • 8
3
votes
1 answer

Can't compile with editline on OpenBSD

I think that I must install the editline (libedit?) library but where can I get it for OpenBSD? The code compiles fine with PC-BSD, but with OpenBSD I get this error implicit declaration of rl_bind_key It is the editline library that is not found.…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
3
votes
3 answers

How to setup auto-completion with git on openBSD?

I want to setup auto-completion for git commands in ksh and openBSD 5.8/5.9. Somehow it was installed previously and suddenly disappeared so I have to type or copy and paste large amounts of text. It should work as in OSX or Ubuntu, where you type…
ftshtw
  • 629
  • 1
  • 5
  • 19
3
votes
1 answer

Return true is return false? Magic

I have problem in my C++ program for extracting audio from VoIP packets. It works well on Linux and OpenBSD on amd64 and x86 but when I run program on OpenBSD on ARM it does really magic things. I call return true in LoadConfigFile and in…
3
votes
1 answer

OpenBSD, connecting to WPA WiFi with website authentication

I frequently travel by buses, most of which have some sort of WiFi onboard. The usual way to connect to them with an automagical connection manager like Wicd is to select the network and then, upon launching the browser some additional…
Wojciech Gac
  • 1,538
  • 1
  • 16
  • 30
2
votes
1 answer

What are the parallel(s) to applescript in BSD? What's the difference?

I'm considering a switch to BSD. I'm interested in what tool(s) are used in BSD for scripting of the kind done with applescript in OSX.
user912475
1 2
3
15 16