Re: int64_t and printf

2011-06-05 Thread Sean C. Farley
On Sun, 5 Jun 2011, Ben Laurie wrote: So, for example int64_t has no printf modifier I am aware of. Likewise its many friends. In the past I've handled this by having a define somewhere along the lines of... #if # define INT_64_T_FMT "%ld" #else # define INT_64_T_FMT "%lld" #endif but I h

Re: who is in swap?

2011-05-20 Thread Sean C. Farley
On Fri, 20 May 2011, Julian Elischer wrote: On 5/20/11 5:32 AM, Bill Moran wrote: In response to Daniel Braniss: no, Who's on 3rd No. I Don't Know is on 3rd. Who's on 1st. Sean -- s...@freebsd.org ___ freebsd-hackers@freebsd.org mailing list ht

Re: getting a list of open files versus PID nos.?

2010-12-09 Thread Sean C. Farley
On Thu, 9 Dec 2010, Chuck Robey wrote: Ahh, the procstat -a -f output was more clearly readable than even the suggested lsof. I found that enlightenment was opening 2,672 different /dev/apm devices. Man apm tells me it's to do with Advanced Power Mgm't, nearly all of these huge lumps of

Re: bad RAM? prove it with a crash dump?

2010-05-06 Thread Sean C. Farley
On Thu, 6 May 2010, Atom Smasher wrote: i suspect i've got bad RAM but memtest has run through several dozen iterations without a problem. my (3 year old) laptop will run for a few days or weeks and then crash/freeze/hang. i've enabled crash dumps and i'm wondering if/how the dump might be abl

Re: Strange problem with 8-stable, VMWare vSphere 4 & AMD CPUs (unexpected shutdowns)

2010-02-10 Thread Sean C. Farley
On Wed, 10 Feb 2010, Ivan Voras wrote: It looks like I've stumbled upon a bug in vSphere 4 (recent update) with FreeBSD/amd64 8.0/8-stable (but not 7.x) guests on Opteron(s). In this combination, everything works fine until a moderate load is started - a buildworld is enough. About five minute

Re: How to troubleshoot why ath0 can't connect to a passwordless wireless network?

2009-02-10 Thread Sean C. Farley
On Mon, 9 Feb 2009, Yuri wrote: I have a several wireless networks without password that my linux box easily connects to. What version of wpa_supplicant does the Linux box run? On FreeBSD 'ifconfig ath0 up scan' command shows it. 'ifconfig ath0 ssid up' brings interface to 'associated' stat

Re: Small change to 'ps'

2009-01-07 Thread Sean C. Farley
On Wed, 7 Jan 2009, Ulrich Spoerlein wrote: On Tue, 06.01.2009 at 11:52:39 -0800, Sheldon Givens wrote: Hello everyone, It occurs to me that FreeBSD ps lacks the ability to disable header. This seems like a really obvious feature, and I may have simply missed it's existence (despite my relen

Re: lzma compression/decompression in bsdtar/libarchive?

2008-11-25 Thread Sean C. Farley
On Tue, 25 Nov 2008, Tim Kientzle wrote: Where is the announcement of this change? I haven't downloaded the code yet, but the sourceforge project pages all still say GPL. It is on the SDK page: http://www.7-zip.org/sdk.html bf wrote: Tim: There is good news: Igor Pavlov, the primary auth

Re: strftime's %c warning?

2008-10-08 Thread Sean C. Farley
On Wed, 8 Oct 2008, Ivan Voras wrote: I'm trying to use the %c formatter in strftime(3), documented as: " %cis replaced by national representation of time and date. " ... which looks useful, except that in code in which WFORMAT is defined as "1" I get this error: str.c: In function 'l

Re: strange issue reading /dev/null

2008-08-07 Thread Sean C. Farley
On Thu, 7 Aug 2008, Jeremy Chadwick wrote: On Thu, Aug 07, 2008 at 11:54:10AM -0500, Sean C. Farley wrote: On Thu, 7 Aug 2008, Gabor Kovesdan wrote: Sean C. Farley ha scritto: You are testing c which has not been set. It works OK if you set c then do the test: + c = fgetc(f

Re: strange issue reading /dev/null

2008-08-07 Thread Sean C. Farley
On Thu, 7 Aug 2008, Gabor Kovesdan wrote: Sean C. Farley ha scritto: You are testing c which has not been set. It works OK if you set c then do the test: + c = fgetc(f); if (c != EOF) - printf("%c\n", fgetc(f)); + printf("%c\n"

Re: strange issue reading /dev/null

2008-08-07 Thread Sean C. Farley
On Thu, 7 Aug 2008, Gabor Kovesdan wrote: Hello, I'm wondering why fgetc() returns 0xff if called with /dev/null: #include #include int main(void) { int c; FILE*f; f = fopen("/dev/null", "r"); if (c != EOF) printf("%c\n", fgetc(f)); } gcc f

Re: Pls sanity check my semtimedop(2) implementation

2008-07-18 Thread Sean C. Farley
On Thu, 17 Jul 2008, Michael B Allen wrote: *snip* But I'll keep it in mind for the future. I don't recall why I chose System V semaphores originally. I think process-shared semantics in the POSIX implementations where not mature at the time. I would love to move away from System V semaphores.

Re: command-line bittorrent utility

2008-06-26 Thread Sean C. Farley
On Fri, 27 Jun 2008, Kris Kennaway wrote: I am looking for a command-line utility that can fetch via bittorrent that a) doesn't use curses. It must be usable in a script and without a tty! b) doesn't use X11. Must be a command-line utility! c) Must be able to inform the script when the tran

Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

2008-06-18 Thread Sean C. Farley
On Mon, 16 Jun 2008, Dag-Erling Smørgrav wrote: Doug Barton <[EMAIL PROTECTED]> writes: Andrey Chernov <[EMAIL PROTECTED]> writes: Please note that BSD grep is not localized (and can't be per design) and works only with standard C locale. It may not affect ports system processing but shurely a

Re: Transferring ports

2008-03-13 Thread Sean C. Farley
On Thu, 13 Mar 2008, Ivan Voras wrote: *snip* The details: imagine there are two or more full FreeBSD installation trees in the file system (e.g. complete jails). The utility would transfer (installed) packages from one tree to the other. The easy, brute-force way would be to generate package f

Re: BSD license compatible hash algorithm?

2007-12-28 Thread Sean C. Farley
On Fri, 28 Dec 2007, Ivan Voras wrote: On 28/12/2007, Aryeh M. Friedman <[EMAIL PROTECTED]> wrote: All hashs have issues with pooling see http://www.burtleburtle.net/bob/hash/index.html... Here's a more direct link: http://www.burtleburtle.net/bob/hash/doobs.html This one is much better

Re: Linux executable picks up FreeBSD library over linux one and breaks

2007-12-03 Thread Sean C. Farley
On Sat, 1 Dec 2007, Greg Troxel wrote: I had a Linux shared library problem on NetBSD that I think it might be helpful to mention. thunderbird (and firefox) set LD_LIBRARY_PATH to pick up their own modules. When acroread is invoked to display a pdf attachment, LD_LIBRARY_PATH is still set, and

Re: Australian cvs repository

2007-08-17 Thread Sean C. Farley
On Fri, 17 Aug 2007, Dag-Erling Smørgrav wrote: "Sean C. Farley" <[EMAIL PROTECTED]> writes: On Fri, 17 Aug 2007, Dave Horsfall wrote: Has anyone noted that the Australian cvs repository seems to be so hopelessly out of sink that you cannot do a clean build using a clean cv

Re: Australian cvs repository

2007-08-17 Thread Sean C. Farley
On Fri, 17 Aug 2007, Dave Horsfall wrote: Has anyone noted that the Australian cvs repository seems to be so hopelessly out of sink that you cannot do a clean build using a clean cvsup. Because we are so far away it is hard to keep things sinkronized. We really need to plug those holes. sinkh

Re: Setting up development environment

2007-07-16 Thread Sean C. Farley
On Mon, 16 Jul 2007, Tom Evans wrote: On Wed, 2007-05-30 at 08:21 +0200, Dag-Erling Smørgrav wrote: ... Emacs setup (for both C and C++): (defun des-knf () (interactive) ;; Basic indent is 8 spaces (make-local-variable 'c-basic-offset) (setq c-basic-offset 8) ;; Continuation lines

Re: FBSD 5.5 and software timers

2006-07-28 Thread Sean C. Farley
On Fri, 28 Jul 2006, M. Warner Losh wrote: In message: <[EMAIL PROTECTED]> "Michael Scheidell" <[EMAIL PROTECTED]> writes: : > -Original Message- : > From: M. Warner Losh [mailto:[EMAIL PROTECTED] : > Sent: Thursday, July 27, 2006 9:39 PM : > To: Michael Scheidell : > Cc: free