BSD is a family of Unix-like operating systems, including FreeBSD, NetBSD and OpenBSD.
Questions tagged [bsd]
510 questions
0
votes
1 answer
kqueue watch size change on directory
I'm trying to watch for size change on directory using kqueue, is this possible? The reason for this because I am watching directories and whenever an event triggers, I stat the directory and compare last mod times etc to figure out if…

Noitidart
- 35,443
- 37
- 154
- 323
0
votes
1 answer
kqueue on directory not trigger when file within is modified
I have used kquque to monitor desktop with:
flags - EV_ADD | EV_CLEAR
fflags - NOTE_DELETE | NOTE_WRITE | NOTE_EXTEND | NOTE_ATTRIB | NOTE_LINK | NOTE_RENAME | NOTE_REVOKE
filter - EVFILT_VNODE
However when I edit a .js file on desktop with…

Noitidart
- 35,443
- 37
- 154
- 323
0
votes
2 answers
make[1]: exec(f77) failed (No such file or directory) on DragonFly BSD
I get this error when trying to compile html-xml-utils-6.9 on DragonFly BSD. Funny thing is, when doing grep -r f77 in the source directory, the result is empty. So no such option is in the constructed Makefile after ./configure.
This is my…

Olle Härstedt
- 3,799
- 1
- 24
- 57
0
votes
1 answer
How to correctly reuse a socket for sending UDP packets?
I have a function that gets called each time I want to send a UDP packet.
Things work great if I take these steps:
Create the socket
Set the socket options
Send the packet
Close the socket
However, I don't want to incur the overhead of constantly…

Runcible
- 7,006
- 12
- 42
- 62
0
votes
1 answer
Is it possible to use distcc in osx for openbsd box?
I found the only one simillar question but that's for linux and xcode only...
Is it possible to set up a Linux box with distcc to build my XCode projects?
im really interested to use OSX GCC for OPENBSD BOX. because my server is really slow, and all…

holms
- 9,112
- 14
- 65
- 95
0
votes
1 answer
information regarding Binutils for bsd cross compilers in linux machine?
i need some information regarding binutils. 1) what doe this do for a cross compilation for BSD ? 2) why does this package needed ? how it helps in making corss compilers for BSD in Linux Ubuntu system? kindly provide your valuable answers

gkreddy
- 23
- 5
0
votes
1 answer
BSD checksum and bits operations explanation
I try understand BSD checksum calulcation algorithm, writed in Java language.
Wiki writed:
byte checksum(byte[] input) {
byte checksum = 0;
for (byte cur_byte: input) {
checksum = (byte) (((checksum & 0xFF) >>> 1) + ((checksum & 0x1) << 7)); //…

wukkie
- 127
- 1
- 2
- 12
0
votes
3 answers
Web server statics repository -or- ZFS vs. NTFS
My goal is to maintain a web file server separately from my main ASP.NET application server for better scalability. The web file server will store a lot of files downloaded by users.
So the question is: Is it worth to adopt FreeBSD + Apache + ZFS,…

Artem Tikhomirov
- 21,497
- 10
- 48
- 68
0
votes
1 answer
PF, load balanced gateways, and Squid
So I have a FreeBSD router running PF and Squid, and it has three network interfaces: two connected to upstream providers (em0 and em1 respectively), and one for LAN (re0) that we serve. There is some load balancing configured with PF. Basically, it…

Santa
- 11,381
- 8
- 51
- 64
0
votes
1 answer
When to use blocking and non-blocking functions?
I am making a python module to help manage some tasks in Linux (and BSD) - namely managing Linux Containers. I'm aware of a couple of the ways to run terminal commands from python, such as Popen(), call(), and check_call(). When should I use these…

galois
- 825
- 2
- 11
- 31
0
votes
1 answer
Rewriting Sysctl output to a file in NetBSD
I am writing a script, while alloting a kernel memory thro' kmem_zalloc() the return address is a pointer and I can't able to capture in any mode. Redirecting to standard output didn't work. how to write this into a file, or to some environment…

paavaanan
- 49
- 3
0
votes
1 answer
Is it not possible to use the CLI, bash in this case, to find a set, take a set, move it, and not have to write a library to do so
I thought this would be more of a one liner to be honest.
Pretty simple in notion:
using find on Mac OS X, locate files that meet a criteria, in my case:
all file and directories in a directory:
find ~/Downloads +time1000s
That finds what I need,…

Scott
- 571
- 1
- 4
- 12
0
votes
2 answers
Determine what exactly returns parameter
In some OS, like Ubuntu, Debian, etc. cal return current calendar with highlighting of today. And cal -h turns off highlighting of today:
But in some OS, like Arch Linux -h param displays the help of a calendar.
I'm doing a small script with…

serghei
- 3,069
- 2
- 30
- 48
0
votes
2 answers
can't get to understand the 'n' command of sed
I am trying to understand how the 'n' command of sed operates.
I am on Mac OS X, so it is sed from BSD
Let's consider this example :
$ seq 5 | sed -e 'n;p'
1
2
2
3
4
4
5
According to the Apple manpage here (see the quote below) and my…

hymced
- 570
- 5
- 19
0
votes
2 answers
GNU `ls` has `--quoting-style` option, what's the equivalent in BSD `ls`
I will use ls output for pipe input, so I need to escape the file name. when I use GNU ls, It works well. what's the equivalent in BSD ls? I hoping the output is like this.
$ gls --quoting-style escape t*1
text\ 1 text1

lutaoact
- 4,149
- 6
- 29
- 41