Questions tagged [netbsd]

NetBSD 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 NetBSD 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.

101 questions
15
votes
3 answers

Unix screen utility error: Cannot find termcap entry for 'xterm-256color'

I work on a NetBSD system through an ssh connection from my Mac and I want to use the screen utility so that I can start processes and come back to them after my terminal connection has been interrupted. When I type screen I get the error…
Gregory
  • 4,147
  • 7
  • 33
  • 44
11
votes
5 answers

Why does the measured network latency change if I use a sleep?

I'm trying to determine the time that it takes for a machine to receive a packet, process it and give back an answer. This machine, that I'll call 'server', runs a very simple program, which receives a packet (recv(2)) in a buffer, copies the…
bsmartins
  • 278
  • 1
  • 13
9
votes
3 answers

Bloated echo command

Look at the following implementations of the "echo" command: http://bxr.su/o/bin/echo/echo.c (OpenBSD) http://bxr.su/d/bin/echo/echo.c (DragonFly) http://bxr.su/n/bin/echo/echo.c (NetBSD) http://bxr.su/f/bin/echo/echo.c…
Joe
  • 181
  • 1
  • 5
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
1 answer

Buffer overflow exploit : segfault on function ret to stack code

I'm trying to exploit a buffer overflow in a test program to execute arbitrary code. I'm on NetBSD 6 i386. Here is the C code: int checkPassword(char *password) { char savePassword[64] = {0}; char *logMessage; …
lesenk
  • 793
  • 1
  • 8
  • 22
3
votes
3 answers

Which processor would execute hardware interrupt in a muticore system

In general hardware interrupts need to be processed immediately, at least so as to acknowledge it and do some first level of processing. As I understand this is not scheduled activity. Please correct me. So the question is how to choose a processor…
3
votes
2 answers

NetBSD long double trouble

I have simple code: #include int main() { //char d[10] = {0x13, 0x43, 0x9b, 0x64, 0x28, 0xf8, 0xff, 0x7f, 0x00, 0x00}; //long double rd = *(long double*)&d; long double rd = 3.3621e-4932L; printf("%Le\n", rd); …
sibnick
  • 3,995
  • 20
  • 20
3
votes
3 answers

Apache POI missing dynamic library libfreetype.so

I use Apache POI to write out a spreadsheet. The problematic line is where I invoke Sheet#autoSizeColumn(int column). If I run it on a unix shell with no graphical environment, the following exception appears: Exception in thread "Thread-3"…
Danny Lo
  • 1,553
  • 4
  • 26
  • 48
2
votes
1 answer

netbsd version of openssh has support for "diffie-hellman-group-exchange-sha256" but not for SHA256 for macs

I have an old version of netbsd which I am using. I wanted to configure the openssh to use strong ciphers and macs, but when saw the available macs it did not have support for SHA256 and higher. macs supported are macs[] = { { "hmac-sha1", …
Haris
  • 12,120
  • 6
  • 43
  • 70
2
votes
1 answer

How to build a cross compile NetBSD toolchain using NetBSD

I have a NetBSD VM that I created using qemu, and I am trying to compile a simple Hello World.c program with the cross compiled toolchain that I built using the build.sh script that comes with the NetBSD source. However, I can not get the program…
ipatch
  • 3,933
  • 8
  • 60
  • 99
2
votes
1 answer

casting operations on vnode (in NetBSD)

In NetBSD system file usr/src/sys/sys/vnode.h defines structure of a vnode. However, I see that sometime while performing an operation (lets say ufs_getattr) a vnode* is passed as a void* to the called operation. Each such operation has its…
ultimate cause
  • 2,264
  • 4
  • 27
  • 44
2
votes
1 answer

Implementation of copyout() in FreeBSD

Where is the definition of function copyout() in FreeBSD for AMD64? (http://www.unix.com/man-page/FreeBSD/9/copyout/) The only place I can find is in sys/sys/systm.h. The definition/declaration is: int copyout(const void * __restrict kaddr, void…
WindChaser
  • 960
  • 1
  • 10
  • 30
2
votes
1 answer

libmagic close file descriptor on NetBSD

I’m writing a FastCGI for providing zlib compression on static content for web providers which doesn’t, and I’m experiencing problems withmmap()on NetBSD. #include #ifndef MADV_DONTFORK #define MADV_DONTFORK 0 #endif #ifndef…
user2284570
  • 2,891
  • 3
  • 26
  • 74
2
votes
1 answer

Unsafe to delete items from DB_File tied hash while iterating with `each`?

The Problem I'm using NetBSD 6.1, Perl v5.18.1, and DB_File v1.818. If I iterate over a DB_File-tied hash using each and delete each item from the hash, not all items are deleted. Here is a script demonstrating the problem: use strict; use…
Richard Hansen
  • 51,690
  • 20
  • 90
  • 97
2
votes
1 answer

NetBSD: Dynamic lib error after compiling cwm

I compiled the original cwm tgz package (not the netbsd one) with ./configure make which works without error. After starting cwm with ./cwm the error Shared object "libX11.so.7" not found appears. The ldd output is: -lXft.2 =>…
user3224237
  • 448
  • 6
  • 12
1
2 3 4 5 6 7