Compile issues on 7.0-p5

2008-11-05 Thread Steve Clement
Hi List, I have the following altq issue: /usr/src/sys/netinet/tcp_usrreq.c: In function 'tcp_fill_info': /usr/src/sys/netinet/tcp_usrreq.c:1232: error: 'struct tcp_info' has no member named 'tcpi_rcv_nxt' it seems that tcp.h has either been updated or something else has changed. the following

Asynchronous pipe I/O

2008-11-05 Thread rihad
Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to never block: sh prog1 | buffer | sh prog2 I first thought that the aptly named

preallocate files without (posix_)fallocate or fcntl's F_PREALLOCATE?

2008-11-05 Thread Jeremy Messenger
Hello folks, At first, I don't really know C that well so... It's more of request or suggest if anyone is bored or interest to port on FreeBSD. :-) Recently, Transmission has added preallocate files to prevent disk fragmentation but FreeBSD does not has any of (posix_)fallocate or fcntl's

Re: Asynchronous pipe I/O

2008-11-05 Thread Nate Eldredge
On Wed, 5 Nov 2008, rihad wrote: Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to never block: sh prog1 | buffer | sh prog2 [and

Re: Asynchronous pipe I/O

2008-11-05 Thread Peter Jeremy
On 2008-Nov-05 17:40:11 +0400, rihad [EMAIL PROTECTED] wrote: Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to never block: sh prog1 |

Re: preallocate files without (posix_)fallocate or fcntl's F_PREALLOCATE?

2008-11-05 Thread Ed Schouten
Hello, Not entirely related to this topic, but looking at the standards, it seems we don't implement posix_fadvise() either. It seems we could implement this as a no-op for now. It has no real advantage if we do, but say, one day we gain real posix_fadvise() support, we already have a bunch of

Re: Asynchronous pipe I/O

2008-11-05 Thread rihad
Nate Eldredge wrote: On Wed, 5 Nov 2008, rihad wrote: Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to never block: sh prog1 | buffer

Re: Asynchronous pipe I/O

2008-11-05 Thread rihad
Peter Jeremy wrote: On 2008-Nov-05 17:40:11 +0400, rihad [EMAIL PROTECTED] wrote: Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to

Re: converting strings from utf8

2008-11-05 Thread Tim Kientzle
Maksim Yevmenkin wrote: can i use wcstombs(3) to convert a string presented in utf8 into current locale? basically i'm looking for something like iconv from ports but included into base system. This isn't as easy as it should be, unfortunately. First, UTF-8 is itself a multibyte encoding, so

Re: preallocate files without (posix_)fallocate or fcntl's F_PREALLOCATE?

2008-11-05 Thread John Baldwin
On Wednesday 05 November 2008 12:08:11 pm Jeremy Messenger wrote: Hello folks, At first, I don't really know C that well so... It's more of request or suggest if anyone is bored or interest to port on FreeBSD. :-) Recently, Transmission has added preallocate files to prevent disk