Re: Summary: Re: Spin down HDD after disk sync or before power off

2010-09-15 Thread Garrett Cooper
On Wed, Sep 15, 2010 at 5:49 PM, Alexander Best arun...@freebsd.org wrote: On Wed Sep 15 10, Oliver Fromme wrote: Warren Block wbl...@wonkity.com wrote:   [...]   8. Alexander Motin has an updated CAM version of the ATA system which   will eventually replace the existing one.  In -CURRENT,

Re: How to disallow logout

2010-09-10 Thread Garrett Cooper
On Thu, Sep 9, 2010 at 8:27 PM, Aryeh Friedman aryeh.fried...@gmail.com wrote: I have a directory that must not exist on logout and rm -rf is not sufficent to do it because the contents need to be processed by our version control system.   The real life scenario is our version control system

Re: Why I can't trace linux process's childs with truss?

2010-09-10 Thread Garrett Cooper
On Fri, Sep 10, 2010 at 12:07 PM, Yuri y...@rawbw.com wrote: I am trying to get the log of all system calls that skype makes with truss -f /usr/local/share/skype/skype For some reason the resulting log only has the leading process calls and nothing from it's 8 childs. Truss doesn't show any

Re: /etc/rc.d/mountcritremote

2010-08-31 Thread Garrett Cooper
On Tue, Aug 31, 2010 at 11:32 AM, Sean Bruno sean...@yahoo-inc.com wrote: On Tue, 2010-08-31 at 09:29 -0700, N.J. Mann wrote: In message 1283271393.3665.13.ca...@home-yahoo,       Sean Bruno (sean...@yahoo-inc.com) wrote: An issue in testing came up where we were trying to mount NFS

Re: System freezes unexpectly

2010-08-30 Thread Garrett Cooper
On Mon, Aug 30, 2010 at 7:10 AM, Andriy Gapon a...@icyb.net.ua wrote: on 30/08/2010 00:13 do...@freebsd.org said the following: On 08/29/2010 09:33 AM, Davide Italiano wrote: Can you run firefox from xterm and check for any errors that might be  generated?  Cheers,  --  Glen Barber

Re: System freezes unexpectly

2010-08-30 Thread Garrett Cooper
On Mon, Aug 30, 2010 at 9:24 AM, Davide Italiano davide.itali...@gmail.com wrote: removing ~/.mozilla works fine. I think that problem's related to add-on Xmarks I've been installer or to Restore session functionality It would have been interesting to capture what `froze' the machine, in

Re: hexdump(1)/od(1) skip function off-by-one when offset == file length

2010-08-29 Thread Garrett Cooper
On Sun, Aug 29, 2010 at 9:27 AM, Alexander Best arun...@freebsd.org wrote: just discovered this issue while going through some linux mailinglists: otaku% dd if=/dev/urandom of=testfile bs=1 count=42 42+0 records in 42+0 records out 42 bytes transferred in 0.000393 secs (106894 bytes/sec)

Re: System freezes unexpectly

2010-08-29 Thread Garrett Cooper
On Sun, Aug 29, 2010 at 9:33 AM, Davide Italiano davide.itali...@gmail.com wrote: On Sun, Aug 29, 2010 at 6:29 PM, Glen Barber glen.j.bar...@gmail.com wrote: On 8/29/10 10:18 AM, Davide Italiano wrote: Hi. I'm running 8.1 on my Sony Vaio laptop, with dwm as window manager on lastest Xorg on

Re: System freezes unexpectly

2010-08-29 Thread Garrett Cooper
On Sun, Aug 29, 2010 at 2:11 PM, Davide Italiano davide.itali...@gmail.com wrote: On Sun, Aug 29, 2010 at 10:06 PM, Garrett Cooper gcoo...@freebsd.org wrote: On Sun, Aug 29, 2010 at 9:33 AM, Davide Italiano davide.itali...@gmail.com wrote: On Sun, Aug 29, 2010 at 6:29 PM, Glen Barber

Re: Question about printcpuinfo in sys/amd64/amd64/indentcpu.c

2010-08-23 Thread Garrett Cooper
On Mon, Aug 23, 2010 at 5:07 AM, John Baldwin j...@freebsd.org wrote: On Friday, August 20, 2010 10:14:46 am Garrett Cooper wrote: Hi,     Currently the code in identcpu.c does a check for a specific cpu value extension. This is set to 0x8004 (even though the corresponding code below

Question about printcpuinfo in sys/amd64/amd64/indentcpu.c

2010-08-20 Thread Garrett Cooper
Hi, Currently the code in identcpu.c does a check for a specific cpu value extension. This is set to 0x8004 (even though the corresponding code below iterates through 0x8002:0x8005): /* Check for extended CPUID information and a processor name. */ if (cpu_exthigh =

Re: kld modules remain loaded if MOD_LOAD handler returns an error

2010-08-20 Thread Garrett Cooper
On Fri, Aug 20, 2010 at 10:13 AM, Ryan Stone ryst...@gmail.com wrote: Consider the following modules: /* first.c */ static int *test; int test_function(void) {    return *test; } static int first_modevent(struct module *m, int what, void *arg) {        int err = 0;        switch

Re: intel i5 - core? or core2?

2010-08-20 Thread Garrett Cooper
On Fri, Aug 20, 2010 at 5:19 PM, Atom Smasher a...@smasher.org wrote: hardware:  MACH:  x86_64 (LENOVO, 4313CTO, ThinkPad T510)  CPU:   x86_64 (Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz) FreeBSD 8.1-RELEASE #0 (amd64) in /etc/make.conf i tried setting CPUTYPE=core but as soon as i start

Re: Why doesn't ppc(4) check non-ENXIO failures during probe?

2010-08-17 Thread Garrett Cooper
On Tue, Aug 17, 2010 at 6:07 AM, John Baldwin j...@freebsd.org wrote: On Monday, August 16, 2010 7:23:54 pm Garrett Cooper wrote: On Mon, Aug 16, 2010 at 1:19 PM, John Baldwin j...@freebsd.org wrote: On Sunday, August 15, 2010 1:33:38 am Garrett Cooper wrote:     One thing that's puzzling me

Re: Why doesn't ppc(4) check non-ENXIO failures during probe?

2010-08-16 Thread Garrett Cooper
On Mon, Aug 16, 2010 at 1:19 PM, John Baldwin j...@freebsd.org wrote: On Sunday, August 15, 2010 1:33:38 am Garrett Cooper wrote:     One thing that's puzzling me about the ppc(4) driver's ISA routines is that it only checks to see whether or not the device has an IO error: Your patch would

Why doesn't ppc(4) check non-ENXIO failures during probe?

2010-08-15 Thread Garrett Cooper
One thing that's puzzling me about the ppc(4) driver's ISA routines is that it only checks to see whether or not the device has an IO error: (from sys/dev/ppc/ppc_isa.c) @@ -121,8 +121,8 @@ parent = device_get_parent(dev); error = ISA_PNP_PROBE(parent, dev, lpc_ids);

mount(2) not returning EINVAL with invalid filesystems

2010-08-15 Thread Garrett Cooper
mount(2) says it should fail with EINVAL if the magic block is wrong: [EINVAL] The super block for the file system had a bad magic number or an out of range block size. This doesn't appear to be the case with a nmount layer though :/. I didn't find

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Garrett Cooper
On Sat, Aug 14, 2010 at 5:03 PM, Paul Thornton p...@prt.org wrote: Ed Schouten wrote: * Paul Thornton p...@prt.org wrote: I'm using 8.0-RELEASE with uftdi and ucom driving the serial port. Somewhat unrelated question: have you ever tried running the this code on 7.x? If so, did it work?

Re: Why is TUNABLE_INT discouraged?

2010-08-12 Thread Garrett Cooper
2010/8/9 Dag-Erling Smørgrav d...@des.no: Garrett Cooper gcoo...@freebsd.org writes: Why would someone express a tunable in a memory address (not being sarcastic... I just don't see why it makes sense right now, but if there's a valid reason I'm more than happy to be educated :)..)? A few

Re: Why is TUNABLE_INT discouraged?

2010-08-08 Thread Garrett Cooper
2010/8/7 Ivan Voras ivo...@freebsd.org: 2010/8/8 Dag-Erling Smørgrav d...@des.no: Garrett Cooper gcoo...@freebsd.org writes: Dag-Erling Smørgrav d...@des.no writes: Perhaps.  I don't remember all the details; I can't find a discussion in the list archives (other than me announcing

Re: Why is TUNABLE_INT discouraged?

2010-08-08 Thread Garrett Cooper
On Sun, Aug 8, 2010 at 11:14 AM, M. Warner Losh i...@bsdimp.com wrote: In message: 20100808130624.gb40...@sandvine.com            Ed Maste ema...@freebsd.org writes: : On Sun, Aug 08, 2010 at 01:30:19AM +0200, Ivan Voras wrote: : : 2010/8/8 Dag-Erling Sm??rgrav d...@des.no: : Garrett

Why is TUNABLE_INT discouraged?

2010-08-07 Thread Garrett Cooper
Hi Hackers, Poking around the sound(4) drivers, I looked into converting one of the TUNABLE_INTs to an unsigned tunable for testing purposes. I looked in kernel.h and I saw the following comment: /* * int * please avoid using for new tunables! */ I found the commit where it was made

Re: Why is TUNABLE_INT discouraged?

2010-08-07 Thread Garrett Cooper
2010/8/7 Dag-Erling Smørgrav d...@des.no: Garrett Cooper gcoo...@freebsd.org writes:    I found the commit where it was made (by des@ -- cvs revision 1.120), but unfortunately I lack the context as to why that suggestion is made; the commit isn't very explicit as to why integers tunables

Re: Why is TUNABLE_INT discouraged?

2010-08-07 Thread Garrett Cooper
2010/8/7 Dag-Erling Smørgrav d...@des.no: Ivan Voras ivo...@freebsd.org writes: Ok, but still - if the underlying value really is declared as int, doesn't it make perfect sense to have something like TUNABLE_INT for it? Perhaps.  I don't remember all the details; I can't find a discussion in

Re: behaviour changes in mdconfig? or something related?

2010-08-04 Thread Garrett Cooper
On Wed, Aug 4, 2010 at 5:40 AM, Samuel Martín Moro faus...@gmail.com wrote: Hi, ... So, is it possible to / how could I make ${dev}c appear on 8.1, like it was in previous releases? It's a geom(4) change. Try ${dev} instead of ${dev}c (this should work on all releases, but I could be wrong).

Re: nanosleep - does it make sense with tv_sec 0?

2010-08-02 Thread Garrett Cooper
On Wed, Jul 28, 2010 at 11:01 PM, Garrett Cooper yaneg...@gmail.com wrote: Hi Hackers,    I ran into an oddity with the POSIX spec that seems a bit unrealistic: [EINVAL]    The rqtp argument specified a nanosecond value less than zero or greater than or equal to 1000 million.    Seems like

nanosleep - does it make sense with tv_sec 0?

2010-07-29 Thread Garrett Cooper
Hi Hackers, I ran into an oddity with the POSIX spec that seems a bit unrealistic: [EINVAL] The rqtp argument specified a nanosecond value less than zero or greater than or equal to 1000 million. Seems like it should also apply for seconds 0. We current silently pass this argument

Deterministic failure to meet sysconf(_SC_TIMER_MAX) for CLOCK_REALTIME

2010-07-29 Thread Garrett Cooper
Hi, Running the following noted test [1], I always run into issues on the 29th iteration and EAGAIN: $ conformance/behavior/timers/1-1.run-test timer_create() did not return success for iteration 29: Resource temporarily unavailable $ conformance/behavior/timers/1-1.run-test timer_create()

Re: Intel TurboBoost in practice

2010-07-24 Thread Garrett Cooper
On Sat, Jul 24, 2010 at 9:18 AM, Rui Paulo rpa...@lavabit.com wrote: On 24 Jul 2010, at 14:53, Alexander Motin wrote: Hi. I've make small observations of Intel TurboBoost technology under FreeBSD. This technology allows Intel Core i5/i7 CPUs to rise frequency of some cores if other cores

Re: Chasing down bugs with access(2)

2010-07-21 Thread Garrett Cooper
On Wed, Jul 21, 2010 at 1:40 AM, Bruce Evans b...@optusnet.com.au wrote: On Tue, 20 Jul 2010, Garrett Cooper wrote: ... This seems wrong for directories.  It should say ... unless the file is 'executable'.  'executable' means searchable for directories, and the above shouldn't apply

Chasing down bugs with access(2)

2010-07-20 Thread Garrett Cooper
Hi Hackers, I ran into an issue last night where apparently several apps make faulty assumptions w.r.t. whether or not access(2) returns functional data when running as a superuser. POSIX says: In early proposals, some inadequacies in the access() function led to the creation of an

Re: [PATCH] Catch errors with sigaddset(3) in sigaddset (sighold)

2010-07-20 Thread Garrett Cooper
On Mon, Jul 19, 2010 at 5:09 AM, Kostik Belousov kostik...@gmail.com wrote: On Sun, Jul 18, 2010 at 10:46:25PM -0700, Garrett Cooper wrote:     sighold(3) doesn't determine whether or not the signal added is valid today (and sigprocmask doesn't verify that either). This fixes that. Thanks

[PATCH] Catch errors with sigaddset(3) in sigaddset (sigrelse)

2010-07-18 Thread Garrett Cooper
sigrelse has the same problem as (*sigset) as far as not catching sigaddset(3) errors is concerned. Thanks, -Garrett Index: compat-43/sigcompat.c === --- compat-43/sigcompat.c (revision 210226) +++ compat-43/sigcompat.c

Fwd: [PATCH] Catch errors with sigaddset(3) in sigaddset (*sigset)

2010-07-18 Thread Garrett Cooper
CCing hack...@. -- Forwarded message -- From: Garrett Cooper yaneg...@gmail.com Date: Sun, Jul 18, 2010 at 10:06 PM Subject: [PATCH] Catch errors with sigaddset(3) in sigaddset (*sigset) To: Kostik Belousov kostik...@gmail.com    None of the sigprocmask(2) code actually checks

Re: [PATCH] Fix sigismember(3) manpage ambiguity

2010-07-18 Thread Garrett Cooper
CCing hack...@. On Sun, Jul 18, 2010 at 9:52 PM, Garrett Cooper yaneg...@gmail.com wrote:    The following patch resolves a missing requirement that's defined by POSIX 2001.3 for sigismember(3) (the tort follows more of what's stated in the POSIX spec [1]). Index: libc/gen/sigsetops.3

[PATCH] sigpause(2) doesn't check signal validity before setting mask

2010-07-18 Thread Garrett Cooper
The following patch fixes the case where the value for sigmask specified is invalid (to match the requirements stated in the manpage and POSIX), and also converts the parameter name -- mask -- to match the manpage. Thanks, -Garrett Index: compat-43/sigcompat.c

[PATCH] Make xsi_sigpause prototype match manpage

2010-07-18 Thread Garrett Cooper
Looks like kib@ checked in a version with the sigdelset fixes for xsi_sigpause(3). This goes one step further by changing the prototype to follow the declaration in the manpage. Thanks, -Garrett Index: compat-43/sigcompat.c ===

[PATCH] Catch errors with sigaddset(3) in sigaddset (sighold)

2010-07-18 Thread Garrett Cooper
sighold(3) doesn't determine whether or not the signal added is valid today (and sigprocmask doesn't verify that either). This fixes that. Thanks, -Garrett Index: sigcompat.c === --- sigcompat.c (revision 210226) +++ sigcompat.c

Re: [PATCH] allow empty files creation with install

2010-07-17 Thread Garrett Cooper
On Sat, Jul 17, 2010 at 6:34 AM, joris dedieu joris.ded...@gmail.com wrote: This patch add a -t switch to install(3). This is a small feature for lazy sysadmins. before : touch /usr/home/foo/.history /usr/home/foo/.bash_history chown foo /usr/home/foo/.history /usr/home/foo/.bash_history

Re: [PATCH] Fix typos in bsd.port.mk and minor logic improvements

2010-07-13 Thread Garrett Cooper
On Mon, Jul 12, 2010 at 12:09 PM, Doug Barton do...@freebsd.org wrote: On 07/09/10 08:11, Garrett Cooper wrote: -# UNAUTHORISED CHANGES WILL BE UNCONDITIONALLY REVERTED! +# UNAUTHORIZED CHANGES WILL BE UNCONDITIONALLY REVERTED! Couple of comments. The above is not a typo, that's the British

Re: [PATCH] Fix typos in bsd.port.mk and minor logic improvements

2010-07-13 Thread Garrett Cooper
On Tue, Jul 13, 2010 at 2:35 PM, b. f. bf1...@googlemail.com wrote: So I'm taking it that the only change of benefit is the attached patch. While you are there, you might also: line 150: s/supercede/supersede/ line 764: s/dependancies/dependencies/ line 2982: s/everthing/everything/ line

[PATCH] Use _SIG_VALID macro in ddb/db_command.c

2010-07-12 Thread Garrett Cooper
Spotted this really minor item that I figured could be converted over to _SIG_VALID in ddb: Index: ddb/db_command.c === --- ddb/db_command.c(revision 206173) +++ ddb/db_command.c(working copy) @@ -633,7 +633,7 @@ if

[PATCH] Use _SIG_VALID macro in lib/libthr/thread/thr_sig.c

2010-07-12 Thread Garrett Cooper
Found another item that could be converted over to _SIG_VALID in libthr's thr_sig.c this time. Thanks, -Garrett Index: lib/libthr/thread/thr_sig.c === --- lib/libthr/thread/thr_sig.c (revision 206173) +++

[PATCH] Fix typos in bsd.port.mk and minor logic improvements

2010-07-12 Thread Garrett Cooper
This is a change I made locally that I figured would be helpful because it: a. Fixes typos. b. Improves branch flow in a few spots. c. Doesn't assume that all strings that come back from pkg_install are empty (this is what's assumed today). Thanks, -Garrett ---

*sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
So, long story short... I've basically ported the open posix testsuite to FreeBSD, and one of the tests tests out sigpause. Unfortunately the sucker hangs on my dev box at home. I've written a short testcase that demonstrates this. It prints out: $ ~/test_sigpause 0 And proceeds to be

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
On Sun, Jul 11, 2010 at 2:08 PM, Kostik Belousov kostik...@gmail.com wrote: On Sun, Jul 11, 2010 at 12:39:39PM -0700, Garrett Cooper wrote: So, long story short... I've basically ported the open posix testsuite to FreeBSD, and one of the tests tests out sigpause. Unfortunately the sucker hangs

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
2010/7/11 Kostik Belousov kostik...@gmail.com: On Sun, Jul 11, 2010 at 02:30:01PM -0700, Garrett Cooper wrote: On Sun, Jul 11, 2010 at 2:08 PM, Kostik Belousov kostik...@gmail.com wrote: On Sun, Jul 11, 2010 at 12:39:39PM -0700, Garrett Cooper wrote: So, long story short... I've basically

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
On Sun, Jul 11, 2010 at 3:35 PM, Garrett Cooper yaneg...@gmail.com wrote: 2010/7/11 Kostik Belousov kostik...@gmail.com: On Sun, Jul 11, 2010 at 02:30:01PM -0700, Garrett Cooper wrote: On Sun, Jul 11, 2010 at 2:08 PM, Kostik Belousov kostik...@gmail.com wrote: On Sun, Jul 11, 2010 at 12:39

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
2010/7/11 Alexander Kabaev kab...@gmail.com: On Sun, 11 Jul 2010 15:59:05 -0700 Garrett Cooper yaneg...@gmail.com wrote: +       if (!_SIG_VALID(how)) +               return (-EINVAL); -EINVAL? Smells too much of Linux, try returning EINVAL instead. Wow, I'm batting 1,000 today. Please

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
On Sun, Jul 11, 2010 at 4:19 PM, Garrett Cooper yaneg...@gmail.com wrote: 2010/7/11 Alexander Kabaev kab...@gmail.com: On Sun, 11 Jul 2010 15:59:05 -0700 Garrett Cooper yaneg...@gmail.com wrote: +       if (!_SIG_VALID(how)) +               return (-EINVAL); -EINVAL? Smells too much

Re: [patch] SUBDIR_OVERRIDE `optimization'

2010-07-09 Thread Garrett Cooper
(Let's try this again with the right email address)    Something simple that I noticed a while back when I was reviewing the Makefile.inc1 code. The SUBDIR_OVERRIDE code is executed after the conditional feature checks, which sets the value of SUBDIRS to the user defined value. So instead of

RFT: pkg_install patches

2010-07-09 Thread Garrett Cooper
Hi hackers, There are a series of patches that I'd like to get reviewed before jumping onto another project that would clean up and move pkg_install forward. portmgr has been kind of busy lately (mostly flz), so I don't think that these have been reviewed by him:

Re: Using lex in a shared library

2010-07-02 Thread Garrett Cooper
On Fri, Jul 2, 2010 at 2:51 PM, Matthew Fleming mdf...@gmail.com wrote: I have the following Makefile for a shared library at $work: ISI_TOP=        ../.. LIB=            isi_date SHLIB_MAJOR=    1 SHLIB_MINOR=    0 SRCS=           date.c date_parser.new.c lex.yy.c INCS=           date.h

Re: Using lex in a shared library

2010-07-02 Thread Garrett Cooper
On Fri, Jul 2, 2010 at 3:53 PM, Philip Herron redbr...@gcc.gnu.org wrote: On 2 July 2010 23:31, Matthew Fleming mdf...@gmail.com wrote: On Fri, Jul 2, 2010 at 2:54 PM, Philip Herron redbr...@gcc.gnu.org wrote: Although maybe not helpful but have you considered using automake/libtool instead

Re: kernel patch needed for wine?

2010-06-30 Thread Garrett Cooper
On Wed, Jun 30, 2010 at 8:43 AM, Sam Fourman Jr. sfour...@gmail.com wrote: Which patch ? icebp generates the SIGTRAP on latest 8-stable, verified by the following trivival assembler program:        .text        .globl  main main:        .byte   0xf1        xorl    %edi,%edi        call    

Non-POSIX compliant pmake with secondary expansion?

2010-06-30 Thread Garrett Cooper
Hi guys, I currently set: .POSIX= In a Makefile thinking that it would enable only POSIX functionality, and was fidgeting around with the Makefile trying to get it to work. In short, I used secondary expansion, it worked, then compared the output from gmake and it failed (because they

Re: kernel patch needed for wine?

2010-06-30 Thread Garrett Cooper
On Wed, Jun 30, 2010 at 2:22 PM, Sam Fourman Jr. sfour...@gmail.com wrote: On Wed, Jun 30, 2010 at 11:26 AM, Garrett Cooper yanef...@gmail.com wrote: On Wed, Jun 30, 2010 at 8:43 AM, Sam Fourman Jr. sfour...@gmail.com wrote: Which patch ? icebp generates the SIGTRAP on latest 8-stable, verified

Re: kernel patch needed for wine?

2010-06-30 Thread Garrett Cooper
On Wed, Jun 30, 2010 at 4:03 PM, Uffe Jakobsen u...@uffe.org wrote: Garrett writes: Also, is there perhaps a sideeffect dealing with the size of a char on FreeBSD vs Linux? That's a pretty badass way to load assembler instructions on the stack :). I may be totally wrong here - but could

Re: kernel patch needed for wine?

2010-06-30 Thread Garrett Cooper
2010/6/30 Alexander Kabaev kab...@gmail.com: On Wed, 30 Jun 2010 14:42:47 -0700 Garrett Cooper yanef...@gmail.com wrote: On Wed, Jun 30, 2010 at 2:22 PM, Sam Fourman Jr. sfour...@gmail.com wrote: On Wed, Jun 30, 2010 at 11:26 AM, Garrett Cooper yanef...@gmail.com wrote: On Wed, Jun 30

Set default pxeboot vfs.root.mountfrom to nfs?

2010-06-29 Thread Garrett Cooper
Hi Hackers, I realize this is a trivial patch, but it's a minor item that I found kind of fascinating (and not thoroughly documented elsewhere because many examples are booting mfsroots instead of directly booting off nfs roots), but I'm proposing that pxeboot default to vfs.root.mountfrom=nfs

[PATCH] Build error with buildworld and -j1 on a memory backed /usr/obj

2010-06-26 Thread Garrett Cooper
The build for r209530 failed with a clean workspace and a clean /usr/obj/scratch. I was building with a memory-disk backed /usr/obj. Here's the error: === usr.bin/ar (depend) lex -t /scratch/freebsd/current/usr.bin/ar/acplex.l acplex.c yacc -d /scratch/freebsd/current/usr.bin/ar/acpyacc.y

Re: [PATCH] Build error with buildworld and -j1 on a memory backed /usr/obj

2010-06-26 Thread Garrett Cooper
On Sat, Jun 26, 2010 at 2:14 PM, Garrett Cooper yanef...@gmail.com wrote:    The build for r209530 failed with a clean workspace and a clean /usr/obj/scratch. I was building with a memory-disk backed /usr/obj. Here's the error: === usr.bin/ar (depend) lex -t  /scratch/freebsd/current/usr.bin

Re: [RFC] mtree improvements

2010-06-25 Thread Garrett Cooper
On Fri, Jun 25, 2010 at 9:52 AM, David Naylor naylor.b.da...@gmail.com wrote: Hi, I've created a patch that increases the performance of mtree.  This is of particular use during a port install.  In an extreme case I have experienced a ~20% increase [1]. For a full discussion see PR

Re: Are POSIX mqueues supposed to be functional on FreeBSD?

2010-06-23 Thread Garrett Cooper
On Wed, Jun 23, 2010 at 2:56 AM, Ivan Voras ivo...@freebsd.org wrote: On 06/21/10 02:25, Garrett Cooper wrote: For whatever reason my source tree wasn't prebuilt, so I reran buildkernel and everything was fine once again. So, do the tests pass now? :) Not 100%, but that might be a problem

Are POSIX mqueues supposed to be functional on FreeBSD?

2010-06-20 Thread Garrett Cooper
Err... I ran an mqueue test and it popped up with ENOSYS. Which makes me wonder, are POSIX mqueues implemented 100% on FreeBSD? I looked into sys/kern/uip_mqueue.c and it _appears_ functional, but I could be misreading the code. Another test written which tests mqueue appears to be broken as

Re: Are POSIX mqueues supposed to be functional on FreeBSD?

2010-06-20 Thread Garrett Cooper
On Sun, Jun 20, 2010 at 3:06 PM, Stathis Kamperis ekamp...@gmail.com wrote: 2010/6/21 Garrett Cooper yanef...@gmail.com:    Err... I ran an mqueue test and it popped up with ENOSYS. Which makes me wonder, are POSIX mqueues implemented 100% on FreeBSD? I looked into sys/kern/uip_mqueue.c

Re: Are POSIX mqueues supposed to be functional on FreeBSD?

2010-06-20 Thread Garrett Cooper
On Sun, Jun 20, 2010 at 4:41 PM, Andrew Thompson thom...@freebsd.org wrote: On 21 June 2010 10:11, Garrett Cooper yanef...@gmail.com wrote: On Sun, Jun 20, 2010 at 3:06 PM, Stathis Kamperis ekamp...@gmail.com wrote: 2010/6/21 Garrett Cooper yanef...@gmail.com:    Err... I ran an mqueue test

Resolving lib build dependencies in src a non-race condition prone way?

2010-06-13 Thread Garrett Cooper
I might be completely missing the boat as to what needs to be done here, but the current code in Makefile.inc1, and lib/Makefile appears very race condition prone: From Makefile.inc1: _prebuild_libs= ${_kerberos5_lib_libasn1} ${_kerberos5_lib_libheimntlm} \

Re: GSoC: registration of optional kernel features via sysctl: a question to the community

2010-06-09 Thread Garrett Cooper
On Jun 9, 2010, at 6:25 AM, Kostik Belousov wrote: On Wed, Jun 09, 2010 at 09:13:56AM -0400, jhell wrote: On 06/09/2010 04:14, Ilya Bakulin wrote: Hi hackers! While discussing my project's implementation details with my mentor, Alexander Leidinger, we've found that one of the ideas needs

Re: Announcing PathDB

2010-05-29 Thread Garrett Cooper
2010/5/29 C. Bergström cbergst...@pathscale.com: PathScale is slowly open sourcing and porting some of our core software technology and thought the BSD community might be interested in PathDB.  Months ago we gave a few FBSD developers private access to the source, but never received any

Re: Custom USB layout sysinstall (Starting FIXIT)

2010-05-27 Thread Garrett Cooper
On Thu, May 27, 2010 at 3:53 PM, none none rank1see...@gmail.com wrote: Still no answer? Hey, there is also a thread: http://forums.freebsd.org/showthread.php?t=14059 Hate to say but you're doing something unsupported, so unless you walk through the process by yourself to figure out where

Re: Exposing Zone Sleeps

2010-05-26 Thread Garrett Cooper
On Tue, May 25, 2010 at 11:26 AM, jhell jh...@dataix.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/25/2010 10:01, jhell wrote: On 05/24/2010 18:26, Sean Bruno wrote: Find attached a patch against -CURRENT. This update exposes a counter that indicates the number of times

Re: Exposing Zone Sleeps

2010-05-26 Thread Garrett Cooper
On Wed, May 26, 2010 at 11:51 AM, Garrett Cooper yanef...@gmail.com wrote: On Tue, May 25, 2010 at 11:26 AM, jhell jh...@dataix.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/25/2010 10:01, jhell wrote: On 05/24/2010 18:26, Sean Bruno wrote: Find attached a patch against

Re: Common OS/kernel code between freebsd and linux

2010-05-22 Thread Garrett Cooper
On Sat, May 22, 2010 at 5:09 AM, Anjali Kulkarni anj...@juniper.net wrote: Hi Folks, I am not sure the right forum to ask this question - is there any effort done to find portable code between different OSes, particularly freebsd and linux? Specifically, the networking layer could be

Re: /dev/null zero inside chroot for make release

2010-05-13 Thread Garrett Cooper
On May 13, 2010, at 2:06 PM, Jilles Tjoelker wrote: On Thu, May 13, 2010 at 07:44:58PM +0200, Julian H. Stacey wrote: Problem with /dev/null /dev/zero inside a chroot: I wanted to build a release from inside a chroot What sort of null zero should be in chroot ? man mknod ... deprecated

argv offset -- doesn't make sense...

2010-05-12 Thread Garrett Cooper
Hi Hackers, Ignoring the compiler warning (yes, I know...), why is the offset for the argv[0] (program name) in the following program off by one? It doesn't make sense why the fstat would work, but the printf would fail (and in fact segfault if I remove the 1 argc guard statement and

Re: argv offset -- doesn't make sense...

2010-05-12 Thread Garrett Cooper
On May 12, 2010, at 6:54 PM, Mike Meyer wrote: On Wed, 12 May 2010 17:30:48 -0400 Garrett Cooper yanef...@gmail.com wrote: Hi Hackers, Ignoring the compiler warning (yes, I know...), why is the offset for the argv[0] (program name) in the following program off by one? It doesn't

Re: Converting pointer to vm_offset_t

2010-05-07 Thread Garrett Cooper
2010/5/6 Fernando Apesteguía fernando.apesteg...@gmail.com: 2010/5/7 Garrett Cooper yanef...@gmail.com: 2010/5/5 Fernando Apesteguía fernando.apesteg...@gmail.com: Hi all, Is there a way to convert a (char *) pointer (or in general any pointer) to a vm_offset_t type? Be wary that char

Re: Ptrace segfault

2010-04-29 Thread Garrett Cooper
On Thu, Apr 29, 2010 at 12:06 PM, Gunnar Hinriksson tomt...@gmail.com wrote: Hello Im having a little problem using ptrace on my system. If I use ptrace to attach to another process the child process segfaults once I detach. For example using this simple program. #include stdio.h #include

Re: regenerating /var/db/pkg

2010-04-26 Thread Garrett Cooper
2010/4/25 Doug Barton do...@freebsd.org: On 04/25/10 19:44, Garrett Cooper wrote: On Thu, Apr 22, 2010 at 10:05 AM, Eitan Adler eitanadlerl...@gmail.com wrote: Same as before - if all is good I'll send a PR #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/210.backup-aliases,v 1.6.36.1.2.1

Re: Building kernels broken under AMD64 Releng 8

2010-04-26 Thread Garrett Cooper
On Mon, Apr 26, 2010 at 2:54 PM, Stephen Hocking stephen.hock...@gmail.com wrote: Hi all, Am noticing the following when attempting to build a kernel: [r...@blurfl /usr/src]# make buildkernel -- Kernel build for GENERIC started on

Re: Building kernels broken under AMD64 Releng 8

2010-04-26 Thread Garrett Cooper
On Mon, Apr 26, 2010 at 4:51 PM, Stephen Hocking stephen.hock...@gmail.com wrote: On Tue, Apr 27, 2010 at 9:19 AM, M. Warner Losh i...@bsdimp.com wrote: In message: g2i7d6fde3d1004261613h44c1631fj3b52fbb9bf4f7...@mail.gmail.com            Garrett Cooper yanef...@gmail.com writes: : On Mon, Apr

Re: regenerating /var/db/pkg

2010-04-25 Thread Garrett Cooper
On Thu, Apr 22, 2010 at 10:05 AM, Eitan Adler eitanadlerl...@gmail.com wrote: Same as before - if all is good I'll send a PR #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/210.backup-aliases,v 1.6.36.1.2.1 2009/10/25 01:10:29 kensmith Exp $ # # If there is a global system configuration

Error checking in ioctl(2)?

2010-04-22 Thread Garrett Cooper
Hi hackers, I realize that this isn't 100% userland code, so the checks should be minimalized, but when looking at the ioctl(2) syscall code (at least I think it is... there's another dupe hanging around in sys/dev/hptmv/ioctl.c), I had some questions related to the error handling not being

Re: Error checking in ioctl(2)?

2010-04-22 Thread Garrett Cooper
On Thu, Apr 22, 2010 at 4:36 PM, Matthew Fleming matthew.flem...@isilon.com wrote: Hi hackers,     I realize that this isn't 100% userland code, so the checks should be minimalized, but when looking at the ioctl(2) syscall code (at least I think it is... there's another dupe hanging around in

Re: Error checking in ioctl(2)?

2010-04-22 Thread Garrett Cooper
On Thu, Apr 22, 2010 at 5:51 PM, Xin LI delp...@delphij.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2010/04/22 17:45, Garrett Cooper wrote: On Thu, Apr 22, 2010 at 4:36 PM, Matthew Fleming matthew.flem...@isilon.com wrote: Hi hackers,     I realize that this isn't 100

Re: Fwd: mkuzip and/or geom_uzip changes?

2010-04-19 Thread Garrett Cooper
On Mon, Apr 19, 2010 at 7:06 AM, Andriy Gapon a...@icyb.net.ua wrote: on 18/04/2010 13:21 Garrett Cooper said the following: On Sun, Apr 18, 2010 at 12:52 AM, Andriy Gapon a...@icyb.net.ua wrote: on 18/04/2010 06:11 Yoshihiro Ota said the following: If you want to make a bootable FreeBSD CD

Re: Fwd: mkuzip and/or geom_uzip changes?

2010-04-18 Thread Garrett Cooper
On Sun, Apr 18, 2010 at 12:52 AM, Andriy Gapon a...@icyb.net.ua wrote: on 18/04/2010 06:11 Yoshihiro Ota said the following: If you want to make a bootable FreeBSD CD, take a look at freesbie in ports.  That's what the software does. I that doesn't satisfy you, you can start look into

Re: I want to participate in some FreeBSD project

2010-04-12 Thread Garrett Cooper
On Mon, Apr 12, 2010 at 5:18 AM, Robert Huff roberth...@rcn.com wrote: Alexander Leidinger writes:  In the OSS world people to not get included (getting invited),  they more attach themself to something (seeing a warm welcome  when providing help).        For someone who wants to get up to

Re: make pkg_install suite reusable, please

2010-04-12 Thread Garrett Cooper
On Mon, Apr 12, 2010 at 9:07 AM, Leinier Cruz Salfran salfrancl.lis...@gmail.com wrote: On Sun, Apr 11, 2010 at 8:34 PM, Marcin Wisnicki mwisnicki+free...@gmail.com wrote: On Sun, 11 Apr 2010 12:37:27 +0100, Robert Watson wrote: On Fri, 9 Apr 2010, Alexander Churanov wrote: 2010/4/9 Leinier

Re: make pkg_install suite reusable, please

2010-04-09 Thread Garrett Cooper
On Fri, Apr 9, 2010 at 10:38 AM, Leinier Cruz Salfran salfrancl.lis...@gmail.com wrote: On Fri, Apr 9, 2010 at 10:38 AM, Alexander Churanov alexanderchura...@gmail.com wrote: Leinier, I forgot to mention that character-mode IO also resolves all binary compatibility issues and makes possible

Re: make pkg_install suite reusable, please

2010-04-09 Thread Garrett Cooper
On Fri, Apr 9, 2010 at 11:51 AM, Charlie Kester corky1...@comcast.net wrote: On Fri 09 Apr 2010 at 07:36:17 PDT Alexander Churanov wrote: 2010/4/9 Leinier Cruz Salfran salfrancl.lis...@gmail.com i want to ask you one thing: can you make the 'pkg_install' suite reusable .. means install

Re: [RFC] The official logo for logo_saver?

2010-04-07 Thread Garrett Cooper
On Wed, Apr 7, 2010 at 2:19 AM, Peter Pentchev r...@ringlet.net wrote: On Wed, Apr 07, 2010 at 09:18:09AM +0200, Dag-Erling Sm??rgrav wrote: Jung-uk Kim j...@freebsd.org writes: Although I really like logo_saver with Beastie, we have the official FreeBSD logo and I think it is time to say

Re: Compiling kernel with gcc43

2010-03-26 Thread Garrett Cooper
On Fri, Mar 26, 2010 at 9:17 AM, jhell jh...@dataix.net wrote: On Fri, 26 Mar 2010 09:01, Jille Timmermans wrote: In Message-Id: 4bacb021.9000...@quis.cx Op 25-3-2010 18:31, Garrett Cooper schreef: -Wno-error . -Garrett I tried building world with it; but it doesn't seem to work :( [q

Re: Compiling kernel with gcc43

2010-03-25 Thread Garrett Cooper
On Thu, Mar 25, 2010 at 10:18 AM, Mario Lobo l...@bsd.com.br wrote: 2010/3/25 Ryan Stone ryst...@gmail.com If you just want to try it out you could disable -Werror for your own build.  The reason that gcc 4.3 fails where 4.2 works fine is that the gcc developers are adding new warnings with

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread Garrett Cooper
On Wed, Mar 24, 2010 at 6:11 AM, Ivan Voras ivo...@freebsd.org wrote: On 03/23/10 16:08, John Baldwin wrote: [snip - looks like a good utility, will probably use it instead of mergemaster if it gets committed, like the idea about automated updates] To that end, I wrote a new tool that I

Re: Another tool for updating /etc

2010-03-23 Thread Garrett Cooper
On Tue, Mar 23, 2010 at 8:08 AM, John Baldwin j...@freebsd.org wrote: I have tried a few approaches (and looked at another) for updating /etc after world upgrades over the past several years.  All of these approaches have various tradeoffs of pros and cons.  However, none of them fully fit what

Re: kenv - output needed

2010-03-23 Thread Garrett Cooper
On Tue, Mar 23, 2010 at 12:06 PM, Atom Smasher a...@smasher.org wrote: On Wed, 24 Mar 2010, Andrew Thompson wrote: On Tue, Mar 23, 2010 at 05:12:47PM +1300, Atom Smasher wrote: i'm trying to figure out what might be reasonable output from kenv. on the three machines that i have access to i'm

Re: kenv - output needed

2010-03-23 Thread Garrett Cooper
On Tue, Mar 23, 2010 at 6:42 PM, Andrew Thompson thom...@freebsd.org wrote: On Wed, Mar 24, 2010 at 02:09:41PM +1300, Atom Smasher wrote: On Tue, 23 Mar 2010, Garrett Cooper wrote: Are you looking for data represented similar to sysctl(8)? it doesn't quite have

Re: Logical CPUs cannot be disabled via W3520

2010-03-22 Thread Garrett Cooper
On Mar 22, 2010, at 6:47 AM, John Baldwin j...@freebsd.org wrote: On Sunday 21 March 2010 6:40:17 pm Garrett Cooper wrote: Someone on the forums [1] noticed that machdep.hlt_logical_cpus was unavailable on their system, and I did some poking around and noticed that it was as well. Should

<    1   2   3   4   5   6   7   >