Questions tagged [bsd]

BSD is a family of Unix-like operating systems, including FreeBSD, NetBSD and OpenBSD.

510 questions
0
votes
7 answers

bash shell display first part of file using BSD head

Here's the file: line1 line2 ⋮ line10 Total Update time I want to have the first part of file except for the last 2 lines. The output should look like this: line1 line2 ⋮ line10 How can i achieve this using BSD head? or other oneliner? Thanks!
sbs
  • 4,102
  • 5
  • 40
  • 54
0
votes
1 answer

Is there a linux equivalent for fpsetmask()?

I'm porting some BSD code to CentOS, and I find that the standard function fpsetmask() found in ieeefp.h has been used in the code. I'm not yet aware of this function's behaviour, but is there a linux equivalent of this? Or should I create…
SidR
  • 2,964
  • 1
  • 18
  • 32
0
votes
1 answer

Comparative analysis between libkvm on linux and NetBSD

I want to build a sample program and as an initial step to learn KVM I started it from the link below. http://www.linuxjournal.com/magazine/linux-kvm-learning-tool?page=0,1 I see that this is quite an old post for KVM, but I realize that the very…
ultimate cause
  • 2,264
  • 4
  • 27
  • 44
0
votes
3 answers

Why BSD queue.h LIST called a list?

My "mothertongue" is Java, and I need to write a project in C in educational purposes. I try to understand the queue.h library. In Java by default you add() an item to the end of the List, however in queue.hthere is only LIST_INSERT_HEAD macro that…
eugen-fried
  • 2,111
  • 3
  • 27
  • 48
0
votes
4 answers

General sockets UDP programming question

I have an FPGA device with which my code needs to talk. The protocol is as follows: I send a single non-zero byte (UDP) to turn on a feature. The FPGA board then begins spewing data on the port from which I sent. Do you see my dilemma? I know…
Nate
  • 5,237
  • 7
  • 42
  • 52
0
votes
2 answers

BSD getmicrotime() output to Excel Date

What does C BSD getmicrotime() function returns?Does it returns epoch time in Unix? How to convert that to Excel Date Format?
Kallol
  • 302
  • 4
  • 16
0
votes
1 answer

Implementation of if_nametoindex

Where can I find the implementation of if_nametoindex? It seems to be externed in net/if.h but searching through the source code I cannot find any hint on the implementation. A better question is, how would I find what library it is defined in…
user2034614
  • 59
  • 1
  • 6
0
votes
1 answer

"file" program and fifos

file <(echo "abcdefghijk") It would be really cool if this could print something like "ASCII text", i.e. that file won't just give up and tell me it's a fifo.
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
0
votes
1 answer

Catching SIGCHLD using sigtimedwait() on BSD

I am having trouble using sigtimedwait() to catch SIGCHLD signals on FreeBSD. The following source works well on Debian GNU/Linux 7 but gives me a Resource temporarily unavailable on FreeBSD 9.1: #include #include #include…
pp3345
  • 31
  • 3
0
votes
1 answer

Why u_area is removed in FreeBSD and NetBSD

I had been heard that There is member called u_area in the proc structure on BSD. So I tried to find u_area, but only to fail. Anyone who knows why the u_area was removed on proc structure?
joejo
  • 111
  • 11
0
votes
1 answer

bsd or posix way get preferred domain controller?

Is there any way to get preferred domain controller name using BSD/POSIX C function calls? Please, advice if there are any functions that can be used to get preferred DC name under Mac OS X.
0
votes
1 answer

Someone copied my npm and released under different name. What do I do?

Someone took my npm and released a new npm with my code under a different name. It looks like he only altered a few lines. His readme file has most of my words. It's also under a BSD license. Should I care and ask him to take it down, or leave it…
kelly
  • 233
  • 1
  • 4
  • 6
0
votes
1 answer

How does man.cgi deal with cat vs. mdoc man pages?

I want to start a site with a collection of BSD man-pages, similar to man.cgi, but static HTML, and which includes all the stuff from the ports trees, too. I've tried unpacking man/ from all the OpenBSD packages for a recent release, and I've…
cnst
  • 25,870
  • 6
  • 90
  • 122
0
votes
1 answer

read()/write() calls on iOS seem to be limited by 2250 bytes

I am having a strange problem trying to read and write 9k bytes with open(), read() and write(). When I attempt to write 9k to a file and read it back, the data only goes up to 2250 bytes. After that everything is zeros. Here is my code (except for…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
0
votes
1 answer

Cleaning up after a failed BSD Ports Make Install Attempt?

I am trying to clean up after failed installs from ports of Emacs 21 and Emacs 23 as well as Git. I was trying to install Emacs and Git on an OpenBSD v5.2 install on a DEC VaxStation 4000 model 90. It has a staggering 32 megs of RAM and a 2.1 gig…
haziz
  • 12,994
  • 16
  • 54
  • 75