BSD is a family of Unix-like operating systems, including FreeBSD, NetBSD and OpenBSD.
Questions tagged [bsd]
510 questions
-1
votes
1 answer
Weird MAC address format using "arp -a" tool on MacOS
I want to parse output from the arp -a command on MacOS, in Go using the net.ParseMAC function, however I'm getting an error due to the weird formatting.
Sample output from arp -a command:
> arp -a
? (192.168.1.1) at 0:22:7:4a:21:d5 on en0 ifscope…

asd12tgzxvbgt
- 307
- 2
- 13
-1
votes
1 answer
BSD sockets on port number range
I am using UDP BSD sockets in C, and I need a way to receive all packets sent to my IP on a range of different port numbers. My current code can detect packets only on one port that I specify. Is this possible to do, or should I look for another way…

blinded_ravager
- 1
- 2
-1
votes
1 answer
Linux kernel supports live-core option in userspace process
Is there any known solution in linux to take live-core of a process without killing it. From the initial pointers to in-depth search I can see using gcore and gdb centric methods. Is there any concrete way to take a live snapshot of a process for…

paavaanan
- 49
- 3
-1
votes
1 answer
how to config default ipv6 route using route command
My system is macOS, I try to use /sbin/route to confing some custom route, I know 0.0.0.0 is the default ipv4 route, so I can delete/change/add the default ipv4 route by running route delete 0.0.0.0.
Then I searched wiki and I found the default…

Li Jinyao
- 898
- 2
- 12
- 30
-1
votes
1 answer
How to downgrade all ports on FreeBSD
I have FreeBSD 7.2 on my server. Trying to install some archiver, I upgraded all ports with commands portsnap fetch, portsnap extract.
And now when I try to compile any program with make, I get a lot of errors:
Unknown modifier 't'
Unknown modifier…

Myroslav Hryshyn
- 716
- 7
- 18
-1
votes
1 answer
Usage of sizeof in m_devget in 4.4BSD-Lite?
In the line 605 to 608 of m_devget, there is a code segment look like this
if (off) {
cp += off + 2 * sizeof(u_short);
totlen -= 2 * sizeof(u_short);
}
What is the 2 * sizeof(u_short) for?

王唯哲
- 21
- 5
-1
votes
2 answers
pkgsrc directory linking /usr/pkg with /usr
I bootstrapped pkgsrc on non-netbsd os, and building applications from source and running the binaries both work.
the /usr/pkg directory contains bin/ etc/ include/ lib/ man/ sbin/ share/ directories, and I can't find any documentation about…

evrom
- 93
- 1
- 5
-1
votes
1 answer
Is there any better way to generate guid in gcc
I had a requirement to generate guid in C,
How can generate guid(http://en.wikipedia.org/wiki/Globally_unique_identifier) in libc .
I need to generate guids randomly .

Kajal
- 223
- 4
- 15
-1
votes
1 answer
telnetd accepts only one connection
I have got telnet server running on a bsd target. I want to connect to this target from multiple other machines. Surprisingly it does not allow more connections.
I checked why and found it is not listening(listen) in a loop. So, I kinda fixed it.…

agent.smith
- 9,134
- 9
- 37
- 49
-1
votes
1 answer
How to clean system memory in iOS?
In MacOs, you can see free, wired, active, inactive memory status by Activity Monitor. And, you can use commandline like "purge" to purge the memory.
Then, Can I do this in iOS? I am not familiar with Mach/BSD. And, Can someone else help me?
In Mac…

Magic fish
- 78
- 11
-2
votes
1 answer
What are some non Linux-Based operating systems?
I need to install a VM of an operating systems that is not based on Linux/Unix, Windows or Mac.
I tried to use NetBSD and FreeBSD, but both seem to be too simple, since I need to run applications and write something about the system's…

Lucas Lisboa
- 85
- 1
- 13
-2
votes
1 answer
Why does Openbsd doesn't keep my inet6 routes?
I have a router.
This router has two interfaces - one into my LAN with a static IP (xl1 with fd01::1/64) and one with a dynamic IP ( xl0 with autoconf ).
My desktop has fd01::2/64. If I ping from fd01::2 to fd01::1 it works just…

User0815
- 7
- 1
- 5
-5
votes
1 answer
why I am not getting results from my uncompressing?
I am using a Dragonfly BSD system and I need to uncompress a folder for configuration purpose. I could not find results, the compressed file was still there without the uncompressed folder I should find. To test if the problem was something more…

Jeferson Lemos
- 19
- 4
-5
votes
1 answer
String manipulation in C, syntactically correct , but it does not work with MacOS or freeBSD
OK for Linux 32/64 Windows 32/64 compiled with GCC, DOS and OS2 with MS compiler
on Mac OS o BSD compiled with GCC, go to infinity loop
char *b,p[]={'0','1','2','3','4','5','6','7','8','9','\0'};
for (b=p;(*(b++)=*b););
printf("p=%s\n",p);
//…

Blindonet
- 1
- 1
-5
votes
1 answer
Are there any BSD Libraries that will find the length of an mp3?
I would like any BSD libraries I would prefer python but any language is great.

Ben Fossen
- 997
- 6
- 22
- 48