Re: change to ee.c

2008-11-30 Thread Bruce Cran
On Sat, 29 Nov 2008 23:21:48 -0500 Eitan Adler [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Xin LI wrote: Hi, Eitan, Tanks for interested in this but I'm afraid that your patch is incorrect. mkstemp returns a file descriptor rather than a string pointer,

Re: minor change to src/usr.bin/window/wwend.c

2008-11-30 Thread Roman Divacky
On Sat, Nov 29, 2008 at 10:47:25PM -0500, Eitan Adler wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fixes two errors when building with -ansi -Wall - --- wwend.c.backup 2008-11-29 22:41:42.0 -0500 +++ wwend.c 2008-11-29 22:46:08.0 -0500 @@ -40,12 +40,14 @@

Re: minor change to src/usr.bin/window/wwend.c

2008-11-30 Thread Eitan Adler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roman Divacky wrote: snip please use -current - src or list? I already fixed this in -current a week or so ago... Sorry - -- Eitan Adler GNU Key fingerptrint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1 -BEGIN PGP SIGNATURE- Version:

Re: change to ee.c

2008-11-30 Thread Eitan Adler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruce Cran wrote: snip The version of ee in FreeBSD is fairly old: the latest from http://mahon.cwx.net/ is 1.4.6. How difficult would it be to bring it up to date? How come it has not been updated so far? - -- Eitan Adler GNU Key fingerptrint:

Re: dd if=/dev/mem can hang a machine?

2008-11-30 Thread Gary Jennejohn
On Fri, 28 Nov 2008 15:28:35 +0200 Andriy Gapon [EMAIL PROTECTED] wrote: I have a new machine with DG33TL mainboard (ICH9/G33). In a course of some hacking I ran dd if=/dev/mem ... to scan all memory, this caused the machine to hang. I tried to reproduce and this is 100% reproducible. I

Re: change to make - error when Makefile doesn't exist

2008-11-30 Thread Hartmut Brandt
Eitan Adler wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I stupidly forgot to make a backup so I can't provide a diff but in src/usr.bin I changed TryReadMakefile(Makefile); to if (!TryReadMakefile(Makefile)) Fatal(Makefile could not be opened); That

Re: change to make - error when Makefile doesn't exist

2008-11-30 Thread Eitan Adler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hartmut Brandt wrote: snip It is perfectly valid to have no makefile yet to run make. Make has a number of builtin rules. If, for example, you have a file x.c then 'make x' or 'make x.o' make will cause make to compile x.c even without a makefile.

Re: keeping track of local modifications

2008-11-30 Thread Max Laier
On Sunday 30 November 2008 04:08:34 Eitan Adler wrote: ... As an aside can anyone point me to a relatively easy bug/feature that I can work on as a beginner C coder? Check http://www.freebsd.org/projects/ideas/ Most of these involve C coding beyond my skill level. generic-adviseFind a

Re: How to build kernel module spread on subdirectories?

2008-11-30 Thread Mel
On Saturday 29 November 2008 12:40:47 Nikola Knežević wrote: On 25 Nov 2008, at 15:20 , Nikola Knežević wrote: I tried to move from OBJS into SRCS (main BSDmakefile now has: SRCS+= $(ELEMENT_SRCS)), by using something like: # subdir0 ELEMENT_SRCS__x =\ subdir1/file0.cc \

Re: change to ee.c

2008-11-30 Thread Bruce Cran
On Sun, 30 Nov 2008 09:12:26 -0500 Eitan Adler [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruce Cran wrote: snip The version of ee in FreeBSD is fairly old: the latest from http://mahon.cwx.net/ is 1.4.6. How difficult would it be to bring it up to date?

Re: keeping track of local modifications

2008-11-30 Thread Tim Kientzle
Eitan Adler wrote: As an aside can anyone point me to a relatively easy bug/feature that I can work on as a beginner C coder? There are thousands of such; could you narrow it down a little bit? Are you interested in kernel hacking? Device support? Core libraries? Networking? Utilities?

Re: change to ee.c

2008-11-30 Thread Tim Kientzle
Eitan Adler wrote: Xin LI wrote: Tanks for interested in this but I'm afraid that your patch is incorrect. mkstemp returns a file descriptor rather than a string pointer, therefore, the subsequent open() would have undefined behavior. It looks like that we actually want fd = mkstemp() here.

Re: dd if=/dev/mem can hang a machine?

2008-11-30 Thread Julian Stacey
Gary Jennejohn wrote: On Fri, 28 Nov 2008 15:28:35 +0200 Andriy Gapon [EMAIL PROTECTED] wrote: I have a new machine with DG33TL mainboard (ICH9/G33). In a course of some hacking I ran dd if=/dev/mem ... to scan all memory, this caused the machine to hang. I tried to reproduce and

Re: How to build kernel module spread on subdirectories?

2008-11-30 Thread Nikola Knežević
On 30 Nov 2008, at 18:43 , Mel wrote: since there were no replies, I went into the various .mk's, and I found some inconsistencies when building modules. If you have a file in a different directory, below the directory where you BSDmakefile is, objects won't be linked nor cleaned properly. The

Re: Hardware support for AMD Geode CS5536 audio?

2008-11-30 Thread Lionel Flandrin
On Wed, Nov 26, 2008 at 07:30:41PM -0800, ancelgray wrote: To AMD CS5536 users: This is Andrew Gray. I have finished the audio driver for the AMD CS5536 companion chip. It is working on a PC Engines Alix 1C low power board under FreeBSD 7.0. It can be found at:

Re: How to build kernel module spread on subdirectories?

2008-11-30 Thread Tim Kientzle
Nikola Knežević wrote: As I described in my initial mail, I have to use two makefiles. One is the main Makefile, while the other has to be generated. In the generated .mk, I add to the SRCS, and I create the .PATH target with other (necessary) directories. Unfortunately, make depend doesn't

remapping kernel buffer in VMS of user process

2008-11-30 Thread Alexej Sokolov
Hello, I would like to remap some buffers allocated in kernel space to memory space of certain process. For Example, in attach function of driver: static int driver_attach { ... struct vmspace *vms = some_thread-td_proc-p_vmspace; bufp = malloc (PAGE_SIZE, M_DEVBUF,

Re: keeping track of local modifications

2008-11-30 Thread Eitan Adler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Kientzle wrote: Eitan Adler wrote: There are thousands of such; could you narrow it down a little bit? Are you interested in kernel hacking? Device support? Core libraries? Networking? Utilities? Porting? Utilities mostly for now. *

Re: keeping track of local modifications

2008-11-30 Thread Gonzalo Nemmi
On Sunday 30 November 2008 5:26:07 pm Tim Kientzle wrote: Eitan Adler wrote: As an aside can anyone point me to a relatively easy bug/feature that I can work on as a beginner C coder? There are thousands of such; could you narrow it down a little bit? Are you interested in kernel hacking?

tcsh loses the foreground process group?

2008-11-30 Thread Steve Watt
(Please don't cc: me on replies, I can usually keep up with -hackers.) I've run into this about 5 or 6 times recently, and it seems to have survived the last couple of world updates. I'm running 6-STABLE (6.4-PRE as of 24 Nov right now), tcsh 6.15.00, which shows tcsh 6.15.00 (Astron)

Re: keeping track of local modifications

2008-11-30 Thread Tim Kientzle
* Search the source code for TODO or XXX to find comments ... *slaps self for not thinking of this* Thanks for reminding me of this. I'm now working on * TODO: Make this better, so that ./a//b/./c/ == a/b/c part of src/usr.bin/tar/util.c I found a copy of abspath() in

Re: keeping track of local modifications

2008-11-30 Thread perryh
Tim Kientzle [EMAIL PROTECTED] wrote: ... most of us are volunteers who enjoy using and working on FreeBSD in our (often quite limited) spare time ... If I only have a couple of hours a week, I'd usually rather spend it coding ... Sounds familiar :) Getting back to the OP's original

Re: keeping track of local modifications

2008-11-30 Thread Tim Kientzle
[EMAIL PROTECTED] wrote: Tim Kientzle [EMAIL PROTECTED] wrote: ... most of us are volunteers who enjoy using and working on FreeBSD in our (often quite limited) spare time ... If I only have a couple of hours a week, I'd usually rather spend it coding ... Sounds familiar :) Getting back to

Re: keeping track of local modifications

2008-11-30 Thread Max Laier
On Monday 01 December 2008 07:07:00 [EMAIL PROTECTED] wrote: Tim Kientzle [EMAIL PROTECTED] wrote: ... most of us are volunteers who enjoy using and working on FreeBSD in our (often quite limited) spare time ... If I only have a couple of hours a week, I'd usually rather spend it coding