Re: Simple kernel attack using socketpair.

2010-11-27 Thread Ed Schouten
related to some kind of stack overflow in close(), where each close() on a socket generates an additional close() call of the inflight sockets. -- Ed Schouten WWW: http://80386.nl/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freeb

Re: State of FreeBSD/xbox

2011-04-03 Thread Ed Schouten
t mind seeing it go, as long as it's left the way it is in the stable branches. -- Ed Schouten WWW: http://80386.nl/ pgpg2NnM0Etlr.pgp Description: PGP signature

Re: [PATCH] build config(8) on GNU systems

2011-07-03 Thread Ed Schouten
/* Skip non-headers */ > if (dp->d_name[i] != '.' || dp->d_name[i + 1] != 'h') > continue; Why not simply use strlen() unconditionally? -- Ed Schouten WWW: http://80386.nl/ pgpjq8GSwsoLs.pgp Description: PGP signature

Re: [PATCH] build config(8) on GNU systems

2011-07-03 Thread Ed Schouten
* Zhihao Yuan , 20110703 22:22: > Programmers always want to make things "cooler". Just leave the > ->d_namlen there :) Portability isn't achieved by adding #ifdefs, but by writing portable code. ;-) -- Ed Schouten WWW: http://80386.nl/ pgpbqUUDWhNbF.pgp Description: PGP signature

Re: [PATCH] build config(8) on GNU systems

2011-07-03 Thread Ed Schouten
Fixed in r223744. Thanks! -- Ed Schouten WWW: http://80386.nl/ pgpBp8MHciKH9.pgp Description: PGP signature

Re: [PATCH] avoid assuming MAXPATHLEN in config(8)

2011-07-07 Thread Ed Schouten
r code conform to standards as much as possible, do keep in mind that your patch also causes a lot of regressions in that area. The code now uses asprintf(), which is not part of POSIX. I also think the use of __GLIBC__ is frowned upon. -- Ed Schouten WWW: http://80386.nl/ pgpSZpTBufHTD.pgp De

Re: [PATCH] avoid assuming MAXPATHLEN in config(8)

2011-07-07 Thread Ed Schouten
gt; #else > // assume canonicalize_file_name() is present > #endif Considering that the function is rather small anyway, why not compile it in unconditionally (though having a different name). -- Ed Schouten WWW: http://80386.nl/ pgpCxVFvPVCKF.pgp Description: PGP signature

Re: BUG: 'glabel label' name's lenght, is truncated without err/warn

2011-11-08 Thread Ed Schouten
d_label, label, sizeof(md.md_label)); > md.md_provsize = g_get_mediasize(name); > if (md.md_provsize == 0) { Why not simply perform the strlcpy and check whether if (strlcpy(...) >= sizeof(md.md_label) ? -- Ed Schouten WWW: http://80386.nl/ pgpiTKtTnUUyN.pgp Description: PGP signature

Re: BUG: 'glabel label' name's lenght, is truncated without err/warn

2011-11-08 Thread Ed Schouten
ey tried to create. For strlcpy() that means the length of src. For strlcat() that means the initial length of dst plus the length of src. While this may seem somewhat confusing, it was done to make trunca‐ tion detection simple. -- Ed Schouten WWW: http://80386.nl/ pgp3k0

Re: Communication between kernel and userspace via local socket

2011-11-16 Thread Ed Schouten
ocket opened from kernel and userspace processes connecting to it. What's wrong with a character device? -- Ed Schouten WWW: http://80386.nl/ pgpdZgbXYqVSE.pgp Description: PGP signature

Re: dup3 syscall - atomic set O_CLOEXEC with dup2

2012-01-12 Thread Ed Schouten
ing this as > a supported syscall? I suspect that not long after we add dup3(), some random person asks us to implement F_DUP3FD. Any chance you can implement this without using a system call, but through fcntl()? Thanks, -- Ed Schouten WWW: http://80386.nl/ pgpk2dytKI6SM.pgp Description: PGP signature

Re: dup3 syscall - atomic set O_CLOEXEC with dup2

2012-01-12 Thread Ed Schouten
* Ed Schouten , 20120112 10:56: > I suspect that not long after we add dup3(), some random person asks us > to implement F_DUP3FD. Any chance you can implement this without using a > system call, but through fcntl()? Never mind. This seems to be non-trivial, as fcntl() just takes

Re: dup3 syscall - atomic set O_CLOEXEC with dup2

2012-01-12 Thread Ed Schouten
This is because the parameters itself are const -- not the objects they point to. e.g: int foo(int); int foo(const int i) { /* code here */ } -- Ed Schouten WWW: http://80386.nl/ pgpKSAVj4LrZi.pgp Description: PGP signature

Small tool: fixwhite(1)

2012-02-06 Thread Ed Schouten
k manually. It should be useful especially when copy-pasting code between terminals. As mentioned in the commit message, you can just use :%!fixwhite if you're a vi(1) user. Other editors probably support a similar construct. Have fun! -- Ed Schouten WWW: http://80386.nl/ - Forward

Re: [RFC] last(1) with security.bsd.see_other_uids support

2012-06-05 Thread Ed Schouten
     buf = realloc(buf, (amount + 128) * sizeof *ut); >                        if (buf == NULL) > Though not a common case, this code will not work properly when multiple users share the same uid. Consider comparing against the username of the logged in user (see getlogin(2)), or resolving the ui

Re: [RFC] last(1) with security.bsd.see_other_uids support

2012-06-07 Thread Ed Schouten
ach would be that it's a lot easier to change the file format then. There's only one application that interacts with these files. -- Ed Schouten ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hac

Re: [RFC] last(1) with security.bsd.see_other_uids support

2012-06-07 Thread Ed Schouten
7;t _that_ big. On FreeBSD, utx.log only stores entries for the last month. Especially if you implement getutxid()/getutxuser() as separate calls, much of the filtering is already done by the daemon. -- Ed Schouten ___ freebsd-hackers@freebsd.org mailing lis

Re: [ANN] unionfs patchset-18 release, improvements are going step by step

2007-03-01 Thread Ed Schouten
ut policy patch? http://g-rave.nl/junk/freebsd-unionfs-prevent-whiteout.diff Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpiKHAoLjPqO.pgp Description: PGP signature

Re: investigation of Giant usage in kernel

2007-03-04 Thread Ed Schouten
t from uipc_domain.c. Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpLjozkLVRJf.pgp Description: PGP signature

Re: Moving applications from to

2007-03-17 Thread Ed Schouten
Hello, * Ed Schouten <[EMAIL PROTECTED]> wrote: > Last year Kris made a list of applications that still make use of > : > > http://lists.freebsd.org/pipermail/freebsd-current/2006-June/064010.html I took a look at all the ports in the list, except the internationalized o

Re: Moving applications from to

2007-03-19 Thread Ed Schouten
* Ed Schouten <[EMAIL PROTECTED]> wrote: > When all the PR's are closed, I guess most people can live without > COMPAT_43TTY as well. Maybe we should add a permanent #warning to > to warn people that they shouldn't use it and that it depends > on COMPAT_43TT

Re: Mac OS underlying FreeBSD - does it run Linux emulation?

2007-04-04 Thread Ed Schouten
orts or Fink. Those are package managers for Mac OS X which contain a lot of applications you normally see on Linux and FreeBSD. If you mean running Linux executables on Mac OS X, you cannot. Linux uses a different binary format as Mac OS X. -- Ed Schouten <[EMAIL PROTECTED]> WWW

Re: any plans to enhance 'locate'?

2007-04-13 Thread Ed Schouten
Hello, Just wanted to say that I think we should at least add this one to the ideas page when there's no-one who's going to do this in the nearby future. :-) -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgp1AnHzzg6mp.pgp Description: PGP signature

Re: Multiple IP Jail's patch for FreeBSD 6.2

2007-05-11 Thread Ed Schouten
information about this can be found at: http://www.tel.fer.hr/zec/vimage/ http://imunes.net/ Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpvwGa3wEFSi.pgp Description: PGP signature

Re: Multiple IP Jail's patch for FreeBSD 6.2

2007-05-14 Thread Ed Schouten
http://g-rave.nl/junk/freebsd-jail-multi-inet46.diff Feedback (and help) is very welcome! :-) Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpngsfhbfFG8.pgp Description: PGP signature

Re: issue with net/if_ppp.h

2007-05-15 Thread Ed Schouten
incomplete type > /usr/include/net/if.h:368: error: field `addr' has incomplete type > /usr/include/net/if.h:369: error: field `dstaddr' has incomplete type Use the following lines: #include #include #include Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpr1ufb9ScJO.pgp Description: PGP signature

Re: Reason for doing malloc / bzero over calloc (performance)?

2007-06-13 Thread Ed Schouten
pages that are zero'd by the kernel, so I suspect the calloc performance for big allocations on -CURRENT is a lot better than on FreeBSD 6. As with FreeBSD 6, it wouldn't matter if you calloc 10 pieces of 10 MB or one piece of 100 MB. Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpk3IoTh9vfe.pgp Description: PGP signature

Re: add closefrom() call

2007-07-06 Thread Ed Schouten
er to just implement it through fcntl() and implement closefrom() in libc? -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpTwA4yjX2Zw.pgp Description: PGP signature

Re: add closefrom() call

2007-07-15 Thread Ed Schouten
* Julian Elischer <[EMAIL PROTECTED]> wrote: > Ed Schouten wrote: >> Wouldn't it be better to just implement it through fcntl() and implement >> closefrom() in libc? > > that's a possibility but I personally thing the huge difference in > efficiency &

Re: add closefrom() call

2007-07-15 Thread Ed Schouten
* Julian Elischer <[EMAIL PROTECTED]> wrote: > Ed Schouten wrote: >> Woops! Sorry for responding this late, but it looks like I didn't >> explain myself good enough. Sorry. :) To rephrase myself: >> Wouldn't it be better to just implement fcntl(..., F_C

Re: How to enable more than 256 pty's?

2007-10-02 Thread Ed Schouten
s.c 1.16. Can be easily reproduced by killing the sshd while apps are still running in the shell. I thought we weren't able to destroy the device there, because you can't destroy a TTY when it is used by an application (i.e. when it's the controlling terminal). -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpuvEtLMzJFq.pgp Description: PGP signature

Re: How to enable more than 256 pty's?

2007-10-02 Thread Ed Schouten
* Ed Schouten <[EMAIL PROTECTED]> wrote: > * Vlad GALU <[EMAIL PROTECTED]> wrote: > > On 10/2/07, Dag-Erling Smørgrav <[EMAIL PROTECTED]> wrote: > > > "Vlad GALU" <[EMAIL PROTECTED]> writes: > > > > The symptoms were exhibited even wi

Inner workings of turnstiles and sleepqueues

2007-10-16 Thread Ed Schouten
Hello, I asked the following question on questions@, but as requested, I'll forward this question to this list, because of its technical nature. - Forwarded message from Ed Schouten <[EMAIL PROTECTED]> - > Date: Mon, 15 Oct 2007 23:13:01 +0200 > From: Ed Schouten <[EM

Re: Inner workings of turnstiles and sleepqueues

2007-10-18 Thread Ed Schouten
m willing to write manpages for them. Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpgdCQ717HoE.pgp Description: PGP signature

Three questions about FreeBSD kernel internals

2008-01-13 Thread Ed Schouten
en it may be unsafe to call malloc(). | */ My question is whether the bottom three lines of the comment are still accurate. If I believe the manpage, it's safe to call malloc() in interrupt handlers, if you use M_NOWAIT. I'm not really familiar with older xBSD implementations, but is it true

Re: mutex lock for filesystem list.

2008-01-13 Thread Ed Schouten
e freebsd kernel programming > (apart of the code itself)? You're probably looking through the mountlist? Then you need to make sure you lock the mountlist_mtx. See src/sys/kern/vfs_mount.c. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpGDJHYOuLMX.pgp Description: PGP signature

Re: mutex lock for filesystem list.

2008-01-13 Thread Ed Schouten
n the freebsd kernel programming > (apart of the code itself)? I guess most people would say "The Design and Implementation of the FreeBSD Operating System", by McKusick and Neville-Neil: http://www.amazon.com/Design-Implementation-FreeBSD-Operating-System/dp/0201702452

Re: vmstat layout

2008-02-01 Thread Ed Schouten
flipping the rows and columns? That will also give us more space to add better descriptions. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgp8mbvZq8IEf.pgp Description: PGP signature

Re: sort(1) memory usage

2008-02-03 Thread Ed Schouten
y doing *nothing*. > > (roughly half that on a 32-bit box) > > Something is rotten in the state of GNU... On my i386 box it spends 27M, but when I replace `sort' with `sed', without any arguments, it's only 1.4 MB. I tried this on RELENG_6. I can also reproduce this on Lin

Re: sort(1) memory usage

2008-02-03 Thread Ed Schouten
miss, namely numeric sorting (-g). I don't know anything about NetBSD's implementation or how hard it is to add. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpPh9FyQ7a2f.pgp Description: PGP signature

Re: uma_zcreate and number of items to create

2008-02-07 Thread Ed Schouten
our specific situation (i.e. another lock already protects it). -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpY1jKN977UZ.pgp Description: PGP signature

Re: non-blocking io, EINTR

2008-02-27 Thread Ed Schouten
tines, which it won't do, because the O_NONBLOCK flag disables that. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpjMwC0P1ZwB.pgp Description: PGP signature

Re: readahead(2) - Linux

2008-03-03 Thread Ed Schouten
* carlos neira <[EMAIL PROTECTED]> wrote: > is there an equivalent of readahead syscall in linux , for freebsd ?. > i was looking at http://preload.sourceforge.net/ , and it needs this . Maybe a mmap(), followed by a madvise()? -- Ed Schouten <[EMAIL PROTECTED]> WWW

Re: readahead(2) - Linux

2008-03-04 Thread Ed Schouten
e cache with data from a file so that subsequent reads from that file will not block on disk I/O." This isn't guaranteed, of course. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpQPUbH6FFHk.pgp Description: PGP signature

Re: loader and ficl/Forth help

2008-03-27 Thread Ed Schouten
Any news on this? I'm using this patch on my machines at the office. I would love to see it get committed. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpbiLxJ5LKlk.pgp Description: PGP signature

Perforce and `p4 diff2' against the origin

2008-04-05 Thread Ed Schouten
n the following command: p4 diff2 -b mpsafetty Unfortunately this command just does a braindead diff against the latest FreeBSD vendor source, which is not useful in my case. I just want it to generate a diff against the version I integrated. Is it possible to do this with Perforce? T

Re: Perforce and `p4 diff2' against the origin

2008-04-07 Thread Ed Schouten
a list of such relations internally to make integrations and such work. Is there a way for us to submit feature requests at Perforce? -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpziq53R1fOg.pgp Description: PGP signature

Re: Perforce and `p4 diff2' against the origin

2008-04-07 Thread Ed Schouten
* John Baldwin <[EMAIL PROTECTED]> wrote: > On Saturday 05 April 2008 10:50:38 am Ed Schouten wrote: > > Hello everyone, > > > > Because my mpsafetty project in Perforce is going quite well, I'm > > considering running some kind of cron job to gener

Re: utmp.h: UT_HOSTSIZE

2008-05-06 Thread Ed Schouten
16 as well. Using the UNIX 98 PTY naming, we can't go beyond pts/999, because it is eight bytes, including the null byte. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpMt7sUwwUTa.pgp Description: PGP signature

Re: making consmsgbuf_size a tunable?

2010-05-03 Thread Ed Schouten
Hello Matthew, * Matthew Jacob wrote: > Any thoughts about this? Looks good. Maybe we should make it a tunable only? Looking at the code, once the consbuf has been allocated, there is no way you can ever resize it. -- Ed Schouten WWW: http://80386.nl/ pgpvMZK9ULhdP.pgp Description:

Re: Moving from FreeBSD7 to FreeBSD8 (cdev, minor, dev2unit)

2010-05-10 Thread Ed Schouten
anged to do something similar to the following: cdev = make_dev(); cdev->si_drv1 = sc; Greetings, -- Ed Schouten WWW: http://80386.nl/ pgpfWd3nM8l93.pgp Description: PGP signature

Re: using cupsd instead of base lpr [was Re: [HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1 (solved)]

2010-06-24 Thread Ed Schouten
nicely > anyway. In theory, yes. In practice, no. Just for fun, remove your /usr/sbin/sendmail while having Postfix's /usr/local/sbin/sendmail installed. It simply won't work. If I remember correctly, you won't even receive the periodic(8) emails. Nowadays it's probably better, bu

Re: using cupsd instead of base lpr [was Re: [HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1 (solved)]

2010-06-24 Thread Ed Schouten
* Mike Meyer wrote: > Maybe it's time for /usr/sbin/lpwrapper, to do the same thing for > print systems? In my opinion, we should just rename mailwrapper to whateverwrapper and list the lpr programs in there as well. -- Ed Schouten WWW: http://80386.nl/ pgpn1LzLEWm9v.pgp Descr

Re: an alternative to powerpoint

2010-07-13 Thread Ed Schouten
* Bakul Shah wrote: > I went looking for a latex class and found 'Prosper'. Why not use the `beamer' class? http://bitbucket.org/rivanvx/beamer/wiki/Home This is what I always use to prepare my slides. Works great. -- Ed Schouten WWW: http://80386.nl/

Re: sysctl question

2010-07-13 Thread Ed Schouten
TL_INT declaration to denote that it's a temperature value. The sysctl(8) code on HEAD seems to suggest the type is "IK". Greetings, -- Ed Schouten WWW: http://80386.nl/ pgpN5VezoVfCk.pgp Description: PGP signature

Re: inet_* functions in kernel?

2010-07-13 Thread Ed Schouten
er without inet_* functions. Wouldn't it be possible to do the conversion in userspace and write something like a struct sockaddr_storage/in_addr_t/etc to the kernel? That way you can avoid the string handling in kernel space entirely. -- Ed Schouten WWW: http://80386.nl/ pgpADusBRjZe7.pgp Description: PGP signature

Re: sysctl way too slow

2010-07-14 Thread Ed Schouten
r. So what about other sysctls? Is it just these sysctls? It may be the case that these values are not simply read from some variable in the kernel, but really performs some hardware calls. Still, 436 msec is quite a lot of time. -- Ed Schouten WWW: http://80386.nl/ pgpcbRRsFxAZF.pgp Description: PGP signature

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Ed Schouten
* Paul Thornton 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? -- Ed Schouten WWW: http://80386.nl/ pgp1PRCv6Lq6n.pgp Description: PGP signature

Re: Data truncation on ptys

2010-08-19 Thread Ed Schouten
Very quick question. Does this problem still occur on FreeBSD 8.x? FreeBSD 8.x has an entirely new TTY layer, which includes a new pseudo-terminal driver. Greetings, -- Ed Schouten WWW: http://80386.nl/ pgpR8RWIRgJks.pgp Description: PGP signature

A simple and hopefully usable FreeBSD live CD

2010-08-22 Thread Ed Schouten
provided install media? Does it actually solve shortcomings of the existing media? If people think it's a nice CD to work with, I could consider integrating it into release(7). Thanks! -- Ed Schouten WWW: http://80386.nl/ freebsd-bootcd.tar.gz Description: Binary data pgpEq9MbOmBDP.pgp Description: PGP signature

Re: A simple and hopefully usable FreeBSD live CD

2010-08-22 Thread Ed Schouten
hen integrating it into the release(7) infrastructure. The current shellscript is just a mockup. -- Ed Schouten WWW: http://80386.nl/ pgpqpSStEb5hy.pgp Description: PGP signature

Re: A simple and hopefully usable FreeBSD live CD

2010-08-23 Thread Ed Schouten
* Lars Engels wrote: > could you please upload the resulting ISO so that people who don't > want to create it themselves can test your CD? Prrr... I have a horrible internet connection and the resulting ISO is about 600 MB big. I'll see what I can do. -- Ed Schouten WWW:

A simple and hopefully usable FreeBSD live CD -- now with images

2010-08-23 Thread Ed Schouten
Hi all, Per Lars's request I've uploaded an ISO of the FreeBSD live CD for amd64: URL:http://people.freebsd.org/~ed/FreeBSD-9.0-CURRENT-201008-amd64-ed.iso.xz Size: 422452056 bytes (403 MB) SHA256: e0b7ac8eac713ecd5ccdbf107c80563260e6000b27838b003ca11a42ae6ae700 Have fun

Re: A simple and hopefully usable FreeBSD live CD -- now with images

2010-08-24 Thread Ed Schouten
of the latest FreeBSD releases. If not, be sure to install /usr/ports/archivers/xz. Greetings, -- Ed Schouten WWW: http://80386.nl/ pgp7FCLPTM5t8.pgp Description: PGP signature

Re: Examining the VM splay tree effectiveness

2010-10-01 Thread Ed Schouten
Maybe it would be worth looking at other types of balanced trees? For example, another type of tree which has only $O(\log n)$ amortized insertion/removal/lookup time, but could already be a lot better in practice, is a Treap. Greetings, -- Ed Schouten WWW: http://80386.nl/ pgpcTegdy4WZ3.pgp Description: PGP signature

Tested wanted: BSD-licensed libgcc replacement, libcompiler_rt

2010-10-22 Thread Ed Schouten
with this branch, which should already give some coverage. Thanks! -- Ed Schouten WWW: http://80386.nl/ pgpxtVH6ehp5C.pgp Description: PGP signature

Re: Tested wanted: BSD-licensed libgcc replacement, libcompiler_rt

2010-10-22 Thread Ed Schouten
* Ed Schouten , 20101022 16:30: > - Rebuild all your software (yes, I know it's unfortunate). Right after I sent this, I thought I'd better clarify this. You don't need to rebuild your software. This change will not break the existing ABI. This step is just mentioned here,

Re: Tested wanted: BSD-licensed libgcc replacement, libcompiler_rt

2010-10-23 Thread Ed Schouten
Hi all, * Ed Schouten , 20101022 16:30: > At EuroBSDCon I was talking with some committers active in the area of > Clang (brooks, kwm, others) about replacing our libgcc shipped with GCC > 4.2.1 with a BSD-licensed version. The LLVM folks have a BSD licensed > implementation called li

FreeBSD and LLVM

2008-05-20 Thread Ed Schouten
atible with the original GCC> -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpOP2IxhshrC.pgp Description: PGP signature

Re: FreeBSD and LLVM

2008-05-21 Thread Ed Schouten
lly try that. Unfortunately I'm quite busy, hacking on the TTY layer. ;-) > You probably know about the clang project, which tries to completely > replace the gcc parts needed for llvm-gcc ... Yes. I haven't looked at it yet. It doesn't seem to be in Ports yet. Any takers? ;

Re: git problems

2008-06-03 Thread Ed Schouten
gt; When I try to do a gdb -c corefile on the resulting core image, all i get is a > couple of thousand empty stack frames. Any idea why that might be, also? I'm seeing this on HEAD, not RELENG_6. I don't have a backtrace nearby, but it seems to be crash inside free(). -- Ed Schouten

Re: git problems

2008-06-04 Thread Ed Schouten
ng) and/or flag freed data (ie > NULL pointers after freeing them). I just solved this on my systems by removing the call to free(). I know, it's awful, but it was good enough for me to live with on short term. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpMvsLv69Vm5.pgp Description: PGP signature

Re: moving FreeBSD installation disk1 to an USB stick

2008-06-19 Thread Ed Schouten
ew sh install.sh generic mv /boot/GENERIC/* /boot/kernel/ # create a /etc/fstab file vi /etc/fstab Good luck! -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpeEXop6scvZ.pgp Description: PGP signature

Re: Accessing char device from inside the kernel

2008-06-19 Thread Ed Schouten
think the code in sys/kern/tty_cons.c should be a good example of that. Search for '->d_write'. Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgp21ljNHfzB1.pgp Description: PGP signature

Re: Temp files in /etc

2008-09-06 Thread Ed Schouten
u could mount a unionfs on top. If the bottom mount is read-only, it will store modifications on the top mount. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpTTwDRV0IRB.pgp Description: PGP signature

[Testers wanted] /dev/console cleanups

2008-10-26 Thread Ed Schouten
st version. http://people.FreeBSD.org/~ed/mpsafetty/ The patchset also includes some other nice things, like some manual pages (not finished) and a port of snp(4) to the new TTY layer (also not finished). Thank you for your attention! -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgp5jhSTM0G8z.pgp Description: PGP signature

Re: [Testers wanted] /dev/console cleanups

2008-10-28 Thread Ed Schouten
be to just get rid of TIOCCONS and invent a better solution to capture syslog messages. I can't really understand why we want to abuse TTY's to do this. So I can't say we're working on this, but at least I can confirm the issue. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpe3Z4oSjMVU.pgp Description: PGP signature

Re: strange behaviour with /sbin/init and serial console

2008-10-31 Thread Ed Schouten
e it adds a real lot of complexity to the console code, especially related to polling and reading on /dev/console. This weekend I'm going to commit a replacement implementation of /dev/console, which also has this restriction. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpF88ru0nCzf.pgp Description: PGP signature

Re: strange behaviour with /sbin/init and serial console

2008-10-31 Thread Ed Schouten
ainly wrote the new /dev/console implementation, because it is a lot more simple than the existing one and removes ugly hacks from the TTY code (like recursive locking, etc). Maybe if I can find some more time I'll look into it more closely, but my todo list is very long right now. ;-) -- Ed Schouten &

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

2008-11-05 Thread Ed Schouten
ch of binaries that have these performance optimisations compiled in. Any comments? -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgp0WOOLvWPl6.pgp Description: PGP signature

Re: KLD loading, liking

2008-11-16 Thread Ed Schouten
I > guess it tell no all things that the macro does. MODULE_DEPEND is used to say: this kernel module also depends on another module (i.e. the USB printer module depends on the USB code). Tools like kldload can then automatically load the missing modules. -- Ed Schouten <[EM

Re: Ответ: KLD loading, liking

2008-11-17 Thread Ed Schouten
minutes, but it seemed like a book nice to have. It also shows some techniques on how to hide KLD's. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpWDDjidvjLc.pgp Description: PGP signature

Re: Giant lock, bce and uhc using the same irq

2008-11-17 Thread Ed Schouten
* Kris Kennaway <[EMAIL PROTECTED]> wrote: > P.S. In 8.0 there is a new USB stack that is Giant-free. I'm not sure this is completely true. Maybe HPS could explain it in more detail, but Giant still seems to be used pretty often. -- Ed Schouten <[EMAIL PROTECTED]>

Re: [Testers wanted] /dev/console cleanups

2008-11-18 Thread Ed Schouten
Hello Carlos, others, * Ed Schouten <[EMAIL PROTECTED]> wrote: > About the /dev/console issues: Robert Watson and I discussed this some > time ago on IRC and what I did in HEAD (not RELENG_7) was that I changed > TIOCCONS not to take a look at the permissions of /dev/console, but

Re: TCSBRK not implemented in linux compat

2008-12-02 Thread Ed Schouten
ough for now. I can't look into it right now, because I have to get up at 6:15 tomorrow. Sorry! :-/ -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpHUWMPMVbVk.pgp Description: PGP signature

Syscons with xterm emulation: one step closer to UTF-8 support?

2008-12-06 Thread Ed Schouten
nch in Perforce. Diffs are available at: http://people.FreeBSD.org/~ed/mpsafetty/ My question is if there are people out there who could help me implementing UTF-8 font rendering. I wouldn't have a clue where to start (yet). Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW:

Re: Syscons with xterm emulation: one step closer to UTF-8 support?

2008-12-07 Thread Ed Schouten
x27;ll see if I can find others. They are very good to monitor regressions. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpDHRDMOpkpr.pgp Description: PGP signature

[Testers wanted] vt100/xterm-support for syscons

2008-12-23 Thread Ed Schouten
This should work pretty good now. If no serious issues turn up that I've not been able to fix before the end of the year, I'll commit it one of the first days of January. Thanks! -- Ed Schouten WWW: http://80386.nl/ pgpZlilqopmDz.pgp Description: PGP signature

Re: [Testers wanted] vt100/xterm-support for syscons

2008-12-23 Thread Ed Schouten
* Giorgos Keramidas wrote: > On Tue, 23 Dec 2008 14:59:51 +0100, Ed Schouten wrote: > > Hello all, > > Some time ago I sent a message to the lists about vt100/xterm/UTF-8 > > support for syscons. I think the code is pretty stable now and after > > some minor impro

Re: [Testers wanted] vt100/xterm-support for syscons

2008-12-24 Thread Ed Schouten
eason why I didn't add support for 256 colors, is because it would require fundamental changes to all syscons drivers as well. I'll look in to it after I've committed this version. Thanks for testing the patch! -- Ed Schouten WWW: http://80386.nl/ pgpy9nwrTEa1d.pgp Description: PGP signature

Re: [Testers wanted] vt100/xterm-support for syscons

2008-12-24 Thread Ed Schouten
* Ed Schouten wrote: > * swel...@gmail.com wrote: > > Typing in `tcsh -f' (TERM=xterm) > > > > foo`^Abar > > > > results in > > > > rabfoo` > > > > with *characters* (not cursor) going from left to right. Cursor st

Re: [Testers wanted] vt100/xterm-support for syscons

2008-12-24 Thread Ed Schouten
* Ed Schouten wrote: > Never mind. Now I can. I forgot to punch in the `. foo^Abar works > correctly, while foo`^Abar does not. I'll see if I can find the bug this > afternoon. Done. Could you please try the latest mpsafetty patch (20081224)? The problem was that the cursor didn&#x

Re: panic: Going nowhere without my init!

2009-01-19 Thread Ed Schouten
* Garrett Cooper wrote: > I still don't understand why adding a [C, etc] `comment' would cause > these problems. I guess if you break getpid() to not return 1 in the case of init(8), it will just say "init: already running" and quit. This causes this panic to occur. --

Re: Mackbook pro nvidia based video backlight

2009-01-28 Thread Ed Schouten
is kind of > functionality. No. sysctl is good for doing stuff like this. An even better approach would be to integrate it to the X11 driver, but I guess it will be cold day in hell when this happens. -- Ed Schouten WWW: http://80386.nl/ pgp27BNLrmNeG.pgp Description: PGP signature

Re: Mackbook pro nvidia based video backlight

2009-01-28 Thread Ed Schouten
* Rui Paulo wrote: > Not really. The xorg intel driver is already able to deal with this. > I don't know about NVIDIA. Yes, but that's what I mean. It will be a cold day in hell when "nv" supports this. As far as I can tell, it's just a pile of obfuscated C code

Re: INTR_FILTER?

2009-01-29 Thread Ed Schouten
to only figure out whether the interrupt is spurious or not. After it has been determined it is not, an interrupt thread is scheduled to handle the interrupt. But as I said, I'm not sure. :-) -- Ed Schouten WWW: http://80386.nl/ pgpZnYO2BZE25.pgp Description: PGP signature

Re: Mackbook pro nvidia based video backlight

2009-01-29 Thread Ed Schouten
example. The ideal solution would be to integrate it into vidcontrol, calling some kind of ioctl on the TTY/consolectl, but syscons is too brainless to know anything about hardware specific features. -- Ed Schouten WWW: http://80386.nl/ pgpMgbBaYMZZ3.pgp Description: PGP signature

Re: Mackbook pro nvidia based video backlight

2009-01-30 Thread Ed Schouten
allow any permissions should be considered to be a defect of sysctl, not an advantage of devfs. The reason why I prefer consolectl, is because it already exists and allows related graphics parameters to be configured. -- Ed Schouten WWW: http://80386.nl/ pgpHpmCQvy4nL.pgp Description: PGP signature

Re: pahole - Finding holes in kernel structs

2009-02-12 Thread Ed Schouten
be a worthwhile effort ... IMHO. I guess it's also a wasted effort to reduce struct tty from 8xx to 7xx bytes, because it still allocates 1024 bytes of memory using malloc(9). I guess we should mainly focus on structures that are allocated using uma(9) or are slightly bigger than 2^n. --

Re: x11 status

2009-02-24 Thread Ed Schouten
xf86-*. It's pretty hard to remove all references to XFree86 in hundreds of megabytes of source code. -- Ed Schouten WWW: http://80386.nl/ pgpr1WDGCTIPF.pgp Description: PGP signature

  1   2   >