Re: i386 registers during a syscall

2006-07-24 Thread Divacky Roman
On Sun, Jul 23, 2006 at 11:18:56PM +0200, Attilio Rao wrote: 2006/7/23, Divacky Roman [EMAIL PROTECTED]: hi, I need to get content of %esi register as it was during a syscall. Should I get this info from td-td_pcb-pcb_esi or td-td_frame-tf_esi? Is it so that trapframe is content of

Re: i386 registers during a syscall

2006-07-24 Thread Julian Elischer
Divacky Roman wrote: On Sun, Jul 23, 2006 at 11:18:56PM +0200, Attilio Rao wrote: 2006/7/23, Divacky Roman [EMAIL PROTECTED]: hi, I need to get content of %esi register as it was during a syscall. Should I get this info from td-td_pcb-pcb_esi or td-td_frame-tf_esi? Is it so that

Re: Failing `make buildworld` with today's source

2006-07-24 Thread R. Tyler Ballance
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 freebsd-current: I figured out why this was failing on my machine, I did a clean `make buildworld` which succeeded without a hitch freebsd-hackers: After taking Warner's advice, I am building world with a different target arch, but I cannot

Re: Programs not accepting input?

2006-07-24 Thread Daniel O'Connor
On Sunday 23 July 2006 08:33, Greg 'groggy' Lehey wrote: One thing that IS a KDE problem is having it manage 2 distinct desktops (ie :0.0 [laptop LCD] and :0.1 [TV out]) - it occasionally decides to give the other display focus after a dialog has been closed.. Are you sure? This sounds

Re: A question about ipcperm() call?

2006-07-24 Thread Robert Watson
On Mon, 24 Jul 2006, Xin LI wrote: On 7/24/06, 李尚杰 [EMAIL PROTECTED] wrote: The code for ipcperm() call : 78 ipcperm(td, perm, mode) 79 struct thread *td; 80 struct ipc_perm *perm; 81 int mode; 82 { 83 struct ucred *cred = td-td_ucred; 84 int

Re: A question about ipcperm() call?

2006-07-24 Thread Robert Watson
On Mon, 24 Jul 2006, Xin LI wrote: why not directly return the error in line 94? I think it makes sense to remove the assignment and the 'error' variable. Let's see Robert's opinion. I'm sorry, my previous answer was based on a mis-reading of the question -- you're not suggesting

Re: A question about ipcperm() call?

2006-07-24 Thread Alexander Leidinger
Quoting Robert Watson [EMAIL PROTECTED] (from Mon, 24 Jul 2006 13:04:45 +0100 (BST)): also. I would be interested in seeing reasonable restructurings of this code, perhaps as a set of blocks that looks at each requested operation or set of related operations and authorizes them sequentially.

Re: WINE vs. FreeBSD

2006-07-24 Thread Tijl Coosemans
On Saturday 22 July 2006 19:14, Michael Nottebrock wrote: WINE does have certain requirements regarding memory allocation. In particular it (or Windows, rather) really wants a few memory ranges for itself: (from wine-0.9.17/loader/preloader.c): * 0x - 0x0011 the DOS area *

Re: WINE vs. FreeBSD

2006-07-24 Thread Daniel Eischen
On Mon, 24 Jul 2006, Tijl Coosemans wrote: On Saturday 22 July 2006 19:14, Michael Nottebrock wrote: WINE does have certain requirements regarding memory allocation. In particular it (or Windows, rather) really wants a few memory ranges for itself: (from wine-0.9.17/loader/preloader.c): *

FBSD 5.5 and software timers

2006-07-24 Thread Michael Scheidell
I had a 200ms software timer running in FBSD 5.4 that isn't working in 5.5 now. This software timer was resetting a 1 second hardware watchdog timer. Every 200ms, I sent a reset to the hardware WDT. Everything worked on 5.4, but I am getting failures on 5.5 It appears that something changed in

Re: [emulation] WINE vs. FreeBSD

2006-07-24 Thread Gerald Pfeifer
On Mon, 24 Jul 2006, Daniel Eischen wrote: See my response to this in a previous reply to this thread. libthr and libpthread use LDT's for TLS. WINE is stomping on them because it doesn't properly create LDTs. This is not a problem with either of the thread libraries and this issue has been

Re: WINE vs. FreeBSD

2006-07-24 Thread Tijl Coosemans
On Monday 24 July 2006 17:39, Daniel Eischen wrote: On Mon, 24 Jul 2006, Tijl Coosemans wrote: I've attached two patches that accomplish this, but this seems to trigger other problems, so use at your own risk. If you want to try them, place them in the port's files/ directory and add a line

Re: WINE vs. FreeBSD

2006-07-24 Thread Daniel Eischen
On Mon, 24 Jul 2006, Tijl Coosemans wrote: On Monday 24 July 2006 17:39, Daniel Eischen wrote: On Mon, 24 Jul 2006, Tijl Coosemans wrote: I've attached two patches that accomplish this, but this seems to trigger other problems, so use at your own risk. If you want to try them, place them in

Rebooting jails

2006-07-24 Thread Dirk Engling
Hello, I'm currently looking for a standardized way to 'reboot' jails from within. 'shutdown' is a simple one, just issue 'kill -TERM -1' and you're done. Now, rebooting generally involves starting up the jail afterwards. One way that works from a shell started via jexec would be to 'kill

Re: [emulation] WINE vs. FreeBSD

2006-07-24 Thread Julian Elischer
Gerald Pfeifer wrote: On Mon, 24 Jul 2006, Daniel Eischen wrote: See my response to this in a previous reply to this thread. libthr and libpthread use LDT's for TLS. WINE is stomping on them because it doesn't properly create LDTs. This is not a problem with either of the thread

kqueue doesn't see if_tun

2006-07-24 Thread David Gilbert
I have some code that sets up a tunnel device and registers a kqueue filter for it ... ending roughly in: EV_SET(kqev, cons-tunSocket, EVFILT_READ, EV_ADD | EV_ENABLE, 0, 0, cons-fsdkq); kevent(fsd-kq, kqev, 1, NULL, 0, NULL); This event never fires. In another part of a the code, I have a

Re: FBSD 5.5 and software timers

2006-07-24 Thread Michael Scheidell
Michael Scheidell wrote: I had a 200ms software timer running in FBSD 5.4 that isn't working in 5.5 now. This software timer was resetting a 1 second hardware watchdog timer. Every 200ms, I sent a reset to the hardware WDT. Everything worked on 5.4, but I am getting failures on 5.5 It appears

Re: kqueue doesn't see if_tun

2006-07-24 Thread John-Mark Gurney
David Gilbert wrote this message on Mon, Jul 24, 2006 at 15:19 -0400: I have some code that sets up a tunnel device and registers a kqueue filter for it ... ending roughly in: EV_SET(kqev, cons-tunSocket, EVFILT_READ, EV_ADD | EV_ENABLE, 0, 0, cons-fsdkq); kevent(fsd-kq, kqev, 1, NULL, 0,

Re: Failing `make buildworld` with today's source

2006-07-24 Thread M. Warner Losh
The problem is that gcc doesn't know how to map iguana onto something it groks. Maybe you need to have TARGET_ARCH be one of the supported CPUs? I'm unsure what iguana runs on, so I'm not sure which one you should pick. Warner ___

Just a question

2006-07-24 Thread Michael D. Norwick
The following warnings were generated by a GhostScript build during 'portmanager -u': ./src/gsfunc0.c: In function `function_Sd_enum_ptrs': ./src/gsfunc0.c:37: warning: traditional C rejects ISO C style function definitions ./src/gsfunc0.c: In function `function_Sd_reloc_ptrs':

Re: Just a question

2006-07-24 Thread Giorgos Keramidas
On 2006-07-24 19:22, Michael D. Norwick [EMAIL PROTECTED] wrote: The following warnings were generated by a GhostScript build during 'portmanager -u': ./src/gsfunc0.c: In function `function_Sd_enum_ptrs': ./src/gsfunc0.c:37: warning: traditional C rejects ISO C style function definitions

Re: WINE vs. FreeBSD

2006-07-24 Thread Tijl Coosemans
On Monday 24 July 2006 18:49, Daniel Eischen wrote: On Mon, 24 Jul 2006, Tijl Coosemans wrote: On Monday 24 July 2006 17:39, Daniel Eischen wrote: On Mon, 24 Jul 2006, Tijl Coosemans wrote: I've attached two patches that accomplish this, but this seems to trigger other problems, so use at

Re: Just a question

2006-07-24 Thread Michael D. Norwick
Giorgos Keramidas wrote: On 2006-07-24 19:22, Michael D. Norwick [EMAIL PROTECTED] wrote: The following warnings were generated by a GhostScript build during 'portmanager -u': ./src/gsfunc0.c: In function `function_Sd_enum_ptrs': ./src/gsfunc0.c:37: warning: traditional C rejects ISO C style