Re: syscalls implementation

2004-08-27 Thread Terry Lambert
Mmaist wrote: Hi! I was wondering were syscalls implementation is in the FreeBSD source tree. I would like to know, especially, where int kldload(const char*); is located. sys/kern/kern_linker.c contains int kldload(struct thread *, struct kldload_args *) and I need to watch at

Re: api for sharing memory from kernel to userspace?

2004-05-21 Thread Terry Lambert
Alfred Perlstein [EMAIL PROTECTED] writes: I need to share about 100megs of memory between kernel and userspace. The memory can not be paged and should appear contig in the process's address space. Any suggestions? I need a way to either: map user memory into the kernel's address space.

Re: FreeBSD VFS System?

2003-12-19 Thread Terry Lambert
Ryan Sommers wrote: Are there any good web resources or books on the VFS system that the FreeBSD kernel uses? I'm guessing it might have originated from the 4.4BSD(?) interface. I've been attempting to read through the source code for different system calls (ie mkdir, rmdir, mount/umount) and

Re: Machines with = 4GB of RAM

2003-12-19 Thread Terry Lambert
Andrew Kinney wrote: On 17 Dec 2003 at 15:44, Julian Elischer wrote: snip options KVA_PAGES=512 may be a start, but is it still required, and do I have to change anything else to match it? (where does the Makefile work out where to link the kernel for?) Is a value of 512 enough

Re: question about _exit() function

2003-11-28 Thread Terry Lambert
rmkml wrote: is the _exit() function safe for a thread ? my program use vfork() and then execve in a thread context. The documentation mentions that the process has to call _exit() in case of failure. But this _exit() is really safe for the parent thread ? The behaviour is undefined in the

Re: question about _exit() function

2003-11-28 Thread Terry Lambert
rmkml wrote: Thanks a lot for the answer. I will change vfork() with fork(). An another question: in the man page of vfork() it is mentionned that the fork() function has to use _exit(0) too when something wrong with the execve() happens! I can see how you might read it this way, but that's

Re: getpwnam with md5 encrypted passwds

2003-11-27 Thread Terry Lambert
Clifton Royston wrote: If you will need to do authentication after your program drops privileges, your best course is probably to go through PAM, to install a separate daemon which implements a PAM-supported protocol and which runs with privileges, and then to enable that protocol as a PAM

Re: getpwnam with md5 encrypted passwds

2003-11-27 Thread Terry Lambert
Peter Pentchev wrote: On Wed, Nov 26, 2003 at 02:21:04PM +0100, Kai Mosebach wrote: Looks interesting ... is this method also usable, when i dropped my privs ? I think Terry meant pam_authenticate() (not pan), but to answer your question: no, when you drop your privileges, you do not have

Re: NFS Flags Oddity

2003-11-27 Thread Terry Lambert
Kris Kirby wrote: FreeBSD (4.9-RC) doesn't appear to export schg flags over NFS. You've got to shell in locally to the machine to move the schg flags; ls -lao doesn't report them over NFS, but does list them locally. Non-local flags are not defined, so they are not permitted to be exported

Re: getpwnam with md5 encrypted passwds

2003-11-26 Thread Terry Lambert
[EMAIL PROTECTED] wrote: i am trying to validate a given user password against my local passwd-file with this piece of code : if (!( pwd = getpwnam ( user ))) { log(ERROR,User %s not known,user); stat=NOUSER; } if (!strcmp(

Re: secure file flag?

2003-11-25 Thread Terry Lambert
Wes Peters wrote: On Tuesday 18 November 2003 16:31, Rayson Ho wrote: e.g. when deleting a secure file, the OS will overwrite the file with random data. Better to overwrite it with a more secure pattern. See ports/ sysutils/obliterate for references. It has been mentioned before that

Re: Library libgcc_pic.a missing on 5.1?

2003-11-25 Thread Terry Lambert
Jim Durham wrote: Is liibgcc_a not supposed to be on 5.1? Is the one in /usr/lib not good enough for you? 8-) 8-). -- Terry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: Conflict between sys/sysproto.h stdio.h ... ?

2003-11-20 Thread Terry Lambert
lucy loo wrote: I am writing a kernel loadable module to reimplement some system calls. I have included sys/sysproto.h, sys/systm.h, etc. -- very standard header files for kld implmentation. So far... I also want to do file i/o in this module, therefore I need to include stdio.h. But it

Re: non-root process and PID files

2003-11-15 Thread Terry Lambert
Jos Backus wrote: On Fri, Nov 14, 2003 at 01:45:45AM -0800, Terry Lambert wrote: OK. We already have one of those. We call it init. 8-). Feature-wise init and svscan/supervise don't quite match; svscan has more features, one of which being that it doesn't use a single control file which

Re: non-root process and PID files

2003-11-14 Thread Terry Lambert
Jos Backus wrote: On Thu, Nov 13, 2003 at 02:45:18AM -0800, Terry Lambert wrote: Why use pid files at all if you could be using a process supervisor instead? Who supervises the supervisor? Heh. The supervisor should be small and robust, like init. Has init died on you recently? Do you

Re: non-root process and PID files

2003-11-13 Thread Terry Lambert
Jos Backus wrote: On Mon, Oct 27, 2003 at 10:31:18AM -0500, Dan Langille wrote: If a process starts up and does a setuid, should it be writing the PID file before or after the setuid? Two methods exists AFAIK: 1 - write your PID immediately, and the file is chown root:wheel 2 -

Re: kqueue, NOTE_EOF

2003-11-13 Thread Terry Lambert
Jaromir Dolecek wrote: marius aamodt eriksen wrote: in order to be able to preserve consistent semantics across poll, select, and kqueue (EVFILT_READ), i propose the following change: on EVFILT_READ, add an fflag NOTE_EOF which will return when the file pointer *is* at the end of the file

Re: Confused about HyperThreading and Performance

2003-11-13 Thread Terry Lambert
Daniel Ellard wrote: Can someone point me at some non-marketing documentation about hyperthreading on the latest Intel chips? I'm seeing some strange performance measurements and I would like to figure out what they mean. Go out to Intel's web site's developer section, and look for SMT.

Re: Kylix in FreeBSD

2003-11-07 Thread Terry Lambert
Rod Person wrote: On Thursday 06 November 2003 09:09 am, It was written: If you futs with getting Kylix to run under FreeBSD, don't forget the special glibc requirements that some versions of Kylix have. Maybe you should probably simply replace the entire /compat userland with the

Re: FreeBSD 5.1-p10 reproducible crash with Apache2

2003-11-07 Thread Terry Lambert
Mike Silbersack wrote: On Wed, 5 Nov 2003, [ISO-8859-1] Branko F. Grac(nar wrote: I tried today with yesterday's -CURRENT. Same symptoms. No kernel panic, just lockup. Ok, submit a PR with clear details on how to recreate the problem, and we'll see if someone can take a look into it. I'm

Re: spambouncer tags much freebsd list mail as spam

2003-11-03 Thread Terry Lambert
C. Kukulies wrote: I installed the spambouncer.org procmail script and before I was switching the behaviour from SILENT to COMPLAIN I took a look at my spam.incoming folder and found a lot of messages from freebsd-bugs and freebsd-mobile in there. Both lists are not directed to folders prior

Re: O_NOACCESS?

2003-11-01 Thread Terry Lambert
andi payn wrote: Now hold on. The standard (by which I you mean POSIX? or one of the UNIX standards?) doesn't say that you can't have an additional flag called O_NOACCESS with whatever value and meaning you want. A strictly conforming implementation can not expose things into the namespace

Re: O_NOACCESS?

2003-11-01 Thread Terry Lambert
M. Warner Losh wrote: Rewind units on tape drives? If there's no access check done, and I open the rewind unit as joe-smoe? The close code is what does the rewind, and you don't have enough knowledge to know if the tape was opened r/w there. Which brings up the idea of passing fp-fd_flags

Re: O_NOACCESS?

2003-10-31 Thread Terry Lambert
andi payn wrote: As far as I can tell, FreeBSD doesn't have anything equivalent to linux's O_NOACCESS (which is not in any of the standard headers, but it's equal to O_WRONLY | O_RDWR, or O_ACCMODE). In linux, this can be used to say, give me an fd for this file, but don't try to open it for

Re: kevent and related stuff

2003-10-31 Thread Terry Lambert
andi payn wrote: First, let me mention that I'm not nearly as experienced coding for *BSD as for linux, so I may ask some stupid questions. I've been looking at the fam port, and this has brought up a whole slew of questions. I'm not sure if all of them are appropriate to this list, but I

Re: non-root process and PID files

2003-10-31 Thread Terry Lambert
Nielsen wrote: Christopher Vance wrote: May I suggest a different feature: the ability to mark an open file (not just its fd) 'remove on close', with permission checked at mark time rather than close time (this status forgotten if not permitted when set) and the unlink actually done at

Re: freeing data segment

2003-10-30 Thread Terry Lambert
Vinod R. Kashyap wrote: I have this huge data structure in the data segment of my scsi driver. This data structure is initialized at driver build time, and is used only during driver initialization. I am trying to find out if I can free-up the memory it occupies, once I am done with the

Re: non-root process and PID files

2003-10-30 Thread Terry Lambert
Christopher Vance wrote: You can already mark a fd 'close on exec'. May I suggest a different feature: the ability to mark an open file (not just its fd) 'remove on close', with permission checked at mark time rather than close time (this status forgotten if not permitted when set) and the

Re: Fine grained locking (was: FreeBSD mail list etiquitte)

2003-10-28 Thread Terry Lambert
Robert Watson wrote: On Sat, 25 Oct 2003, Matthew Dillon wrote: It's a lot easier lockup path then the direction 5.x is going, and a whole lot more maintainable IMHO because most of the coding doesn't have to worry about mutexes or LORs or anything like that. You still have

Re: non-root process and PID files

2003-10-28 Thread Terry Lambert
Leo Bicknell wrote: Dan Langille wrote: Any suggestions? Here's a slightly backwards concept. We're all familar with how you can open a file, remove it from the directory, and not have it go away until the application closes it. Well, extend those semantics to the namespace. That

Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-25 Thread Terry Lambert
Ted Unangst wrote: On Fri, 24 Oct 2003, Michel TALON wrote: What is more interesting is to look at the actual benchmark results in http://bulk.fefe.de/scalability/ in particular the section about mmap benchmarks, the only one where OpenBSD shines. However as soon as touching pages is

Re: FreeBSD mail list etiquette

2003-10-25 Thread Terry Lambert
John-Mark Gurney wrote: Wes Peters wrote this message on Thu, Oct 23, 2003 at 01:43 -0700: Kip Macy, other DragonFlyBSD developers, and anyone else wishing to contribute are invited to join and participate in the open FreeBSD mail lists, sharing code, design information, research and test

Re: Benchmarking kqueue() performance?

2003-10-17 Thread Terry Lambert
Lev Walkin wrote: One of the most comprehensive sites about that problem is: http://www.kegel.com/c10k.html That's about scaling to a large number of connections, not about kqueue() vs. select performance. The biggest problem with a large number of connections, at least as far as FreeBSD is

Re: GEOM Gate.

2003-10-15 Thread Terry Lambert
Wilko Bulte wrote: On Tue, Oct 14, 2003 at 10:44:14PM +0200, Oldach, Helge wrote: From: Richard Tobin [mailto:[EMAIL PROTECTED] Ok, GEOM Gate is ready for testing. For those who don't know what it is, they can read README: Aaargh! It's the return of nd(4) from SunOS. Excuse

Re: Dynamic reads without locking.

2003-10-09 Thread Terry Lambert
Harti Brandt wrote: You need to lock when reading if you insist on consistent data. Even a simple read may be non-atomic (this should be the case for 64bit operations on all our platforms). So you need to do mtx_lock(foo_mtx); bar = foo; mtx_unlock(foo_mtx); if foo is a datatype that is

Re: Dynamic reads without locking.

2003-10-09 Thread Terry Lambert
Frank Mayhar wrote: The other thing is that the unlocked reads about which I assume Jeffrey Hsu was speaking can only be used in very specific cases, where one has control over both the write and the read. If you have to handle unmodified third-party modules, you have no choice but to do

Re: Recovery from mbuf cluster exhaustion

2003-10-09 Thread Terry Lambert
Peter Bozarov wrote: [ ... ] What I can't seem to figure out is how to flush out the stale mbufs/clusters. I can close down all network interfaces, and kill/restart most of the processes that I presume use up the mbufs. At a given point, there can't possibly be any processes that are hogging

Re: HZ = 1000 slows down application

2003-10-08 Thread Terry Lambert
Luigi Rizzo wrote: On Tue, Oct 07, 2003 at 06:17:04PM -0400, [EMAIL PROTECTED] wrote: We did some intensive profiling of our application. It does not seem like we are depending on clock ticks for any calculations. On the other hand we notice that our slow iterations happen almost at the

Re: netisr

2003-10-08 Thread Terry Lambert
Giovanni P. Tirloni wrote: I'm studying the network stack and now I'm confronted with something called netisr. It seems ether_demux puts the packet in a netisr queue instead of passing it directly to ip_input (if that was the packet's type). Is this derived from LRP ? No. NETISR is a

Re: Changing the NAT IP on demand?

2003-10-07 Thread Terry Lambert
Julian Elischer wrote: On Mon, 6 Oct 2003, Leo Bicknell wrote: In a message written on Sun, Oct 05, 2003 at 08:11:05PM -0600, Nick Rogness wrote: In addition to keeping your NAT translations (as suggested by Wes), you need to also keep routes for those entries as well, so

Re: Why is PCE not set in CR4?

2003-10-02 Thread Terry Lambert
Bruce M Simpson wrote: Now that I think on this a bit more, a sysctl might be a better place to put this, but it seemed to belong with the i386_vm86() bits, rather than polluting initcpu.c right away. The important thing is to allow the kernel to intermediate and control allocation of counters

Re: Why is PCE not set in CR4?

2003-10-02 Thread Terry Lambert
Bruce M Simpson wrote: On Wed, Oct 01, 2003 at 11:39:36AM +0200, Grumble wrote: However, I am not allowed to use the RDPMC instruction from ring 3 because the PCE (Performance-monitoring Counters Enable) bit is not set. You can do it with /dev/perfmon. man 4 perfmon. I have read the

Re: has anyone installed 5.1 from a SCSI CD?

2003-09-30 Thread Terry Lambert
Peter Jeremy wrote: On Sun, Sep 28, 2003 at 06:14:25PM -0400, Sergey Babkin wrote: BTW, I have another related issue too: since at least 4.7 all the disk device nodes have charcater device entries in /dev. 'block' vs 'character' has nothing to do with random or sequential access and any

Re: user malloc from kernel

2003-09-30 Thread Terry Lambert
earthman wrote: how to allocate some memory chunk in user space memory from kernel code? how to do it correctly? If your intent is to allocate a chunk of memory which is shared between your kernel and a single process in user space, the normal way of doing this is to allocate the memory to a

Re: user malloc from kernel

2003-09-30 Thread Terry Lambert
Pawel Jakub Dawidek wrote: On Mon, Sep 29, 2003 at 06:56:13PM +0300, Peter Pentchev wrote: + I mean, won't the application's memory manager attempt to allocate the + next chunk of memory right over the region that you have stolen with + this brk(2) invocation? Thus, when the application tries

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-09-19 Thread Terry Lambert
Daniel Eischen wrote: If you are using libkse or libthr, you will get a partial byte count and not zero because the tape driver returns the (partial) bytes written. So exiting the loop in libc_r and returning 0 would only seem to correct the problem for libc_r. If there is a

Re: TCP information

2003-09-19 Thread Terry Lambert
Dan Nelson wrote: These types of statistics aren't kept. They usually do not make it into commercial product distributions for performance reasons, and because every byte added to a tcpcb structure is one byte less that can be used for something else. In practice, adding 134 bytes of

Re: TCP information

2003-09-19 Thread Terry Lambert
Deepak Jain wrote: If the tcpcb struct were expanded/changed and the various increments were added in the appropriate packet pushing code, this would work right? Is there something non-obvious that one would need to worry about to undertake such a project? Your overhead would be slightly

Re: TCP information

2003-09-18 Thread Terry Lambert
Deepak Jain wrote: Is there a utility/hack/patch that would allow a diligent sysadmin to obtain which specific TCP connections are generating retransmits and receiving packet drops? netstat will show me drops on an interface, but not on a specific source/dest pair? I am guessing something

Re: Machine wedges solid after one serial-port source-lineaddition...

2003-09-18 Thread Terry Lambert
Barry Bouwsma wrote: You see, what I'm attempting to do, without knowing what I'm doing, is to implement the TIOCMIWAIT ioctl that apparently exists in Linux, to notify a userland program that there's been a status change on one or more of the modem status lines, and eliminate the need to poll

Re: Any workarounds for Verisign .com/.net highjacking?

2003-09-17 Thread Terry Lambert
Clifton Royston wrote: For those who don't know what I'm talking about, try executing host thisdomainhasneverexistedandneverwill.com, or any other domain you'd care to make up in .com or .net. Verisign has abused the trust placed in them to operate a root name server, by creating wildcard A

Re: pppoe - nmap - No buffer space available

2003-09-17 Thread Terry Lambert
[EMAIL PROTECTED] wrote: sendto in send_tcp_raw: sendto(3, packet, 40, 0, X.X.X.X, 16) = No buffer space available Your interface is down. This happens all the time. If you use PPP on a dialup modem with a normal net connection, and unplug the modem while you are doing a ping, you will see

Re: tty layer and lbolt sleeps

2003-09-17 Thread Terry Lambert
Mike Durian wrote: I'm trying to implement a serial protocol that is timing sensitive. I'm noticing things like drains and reads and blocking until the next kernel tick. I believe this is due to the lbolt sleeps in the tty.c code. It looks like I can avoid these sleeps if isbackground()

Re: Machine wedges solid after one serial-port source-line addition...

2003-09-16 Thread Terry Lambert
Barry Bouwsma wrote: Would anyone care to explain why the following simple patch could be enough to wedge my machine solid? (My original hack-patches without any console printf() debuggery did the same thing within seconds, as well...) All it does is notify the console whenever a serial port

Re: 20TB Storage System (fsck????)

2003-09-05 Thread Terry Lambert
Geoff Buckingham wrote: On Thu, Sep 04, 2003 at 01:12:45AM -0700, Terry Lambert wrote: Yes. Limit the number of CG bitmaps you examine simultaneously, and make the operation multiple pass over the disk. This is not that hard a modification to fsck, and it can be done fairly quickly

Re: 20TB Storage System

2003-09-05 Thread Terry Lambert
David Gilbert wrote: Poul-Henning == Poul-Henning Kamp [EMAIL PROTECTED] writes: Poul-Henning I am not sure I would advocate 64k blocks yet. Poul-Henning I tend to stick with 32k block, 4k fragment myself. That reminds me... has anyone thought of designing the system to have more than 8

Re: 20TB Storage System (fsck????)

2003-09-04 Thread Terry Lambert
Max Clark wrote: Ohh, that's an interesting snag. I was under the impression that 5.x w/ PAE could address more than 4GB of Ram. The kernel being able to address the RAM does not meant that the KVA+UVA space is larger than 4G. At best, you could take the uiomove/copyin/copyout performance hit,

Re: Ugly Huge BSD Monster

2003-09-01 Thread Terry Lambert
Denis Troshin wrote: Almost every package I install requires a few other packages. This 'idea of using dependent packages' turns FreeBSD (and other unix-systems) to an ugly monster. You're right. The authors of the offending software packages should not do that. It's going to

Re: Looking for detailed documentation: Install to existingfilesystem

2003-08-27 Thread Terry Lambert
Charles Howse wrote: I'm a hobbyist, and for my personal education, I would like to learn how to install FBSD from an existing filesystem, rather than from FTP or CD. My intention is to copy the files to a directory on the second HDD of my present FBSD system, and point sysinstall to that

Re: GEOM Gate.

2003-08-19 Thread Terry Lambert
Attila Nagy wrote: Terry Lambert wrote: It works on firewire and it works on a dual port RAID array (as a separate box containing the RAID array). What does 'it' means? I guess it's not UFS, but the pure ability of sharing a device on a bus, connected to more than one adapters

Re: GEOM Gate.

2003-08-16 Thread Terry Lambert
Attila Nagy wrote: Pawel Jakub Dawidek wrote: It'll be, but probably in read-write mode on one machine and read-only mode on rest machines, because you don't export file systems here, but disk devices. This doesn't work on a shared SCSI bus, so I suspect sharing the device on the net

Re: a.out binaries

2003-08-15 Thread Terry Lambert
S.Gopinath wrote: I'm required to run a.out binaries like foxplus in a recent Intel based hardware. I have chosen FreeBSD 5.1 and successfuly installed. But I could not run a.out binaries like Foxplus. I tried it by load ibcs modules and aout modules in /boot/kernel directory. My

Re: IP Network Multipathing failover on FreeBSD..??

2003-08-15 Thread Terry Lambert
maillist bsd wrote: Is it there have IP Network Multipathing failover on FreeBSD..?? how to do so?? Look for VRRP in /usr/ports/net. -- Terry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe,

Re: your mail

2003-08-15 Thread Terry Lambert
Kris Kennaway wrote: On Thu, Aug 14, 2003 at 03:14:27PM +0530, S.Gopinath wrote: I'm required to run a.out binaries like foxplus in a recent Intel based hardware. I have chosen FreeBSD 5.1 and successfuly installed. But I could not run a.out binaries like Foxplus. I tried it by

Re: Fw: your mail

2003-08-15 Thread Terry Lambert
S.Gopinath wrote: $ foxplus /usr/lib/foxplus/no87: 1: Syntax error: newline unexpected (expecting )) /usr/lib/foxplus/foxplus.pr: 1: Syntax error: word unexpected (expecting )) $ file /usr/lib/foxplus/no87 /usr/lib/foxplus/no87: Microsoft a.out separate pure segmented word-swapped

Re: Ultra ATA card doesn't seem to provide Ultra speeds.

2003-08-02 Thread Terry Lambert
John-Mark Gurney wrote: Ruben de Groot wrote this message on Fri, Aug 01, 2003 at 10:15 +0200: On Fri, Aug 01, 2003 at 04:33:08AM +0200, mh typed: The following comparison is probably bogus, but can anybody explain the huge difference? It's called micro optimization. Linux feels the

Re: [patch] Re: getfsent(3) and spaces in fstab

2003-08-02 Thread Terry Lambert
Simon Barner wrote: The attached patch will allow blanks and tabs for file systems and path names, as long as the are protected by a '\'. For the old fstab style, blanks and tabs are not allowed as delimiters (as it was in the old implementation). You need to add '\\' to the delimited list,

Re: Assembly Syscall Question

2003-08-02 Thread Terry Lambert
Matthew Dillon wrote: I think the ultimate performance solution is to have some explicitly shared memory between kerneland and userland and store the arguments, error code, and return value there. Being a fairly small package of memory multi-threading would not be an issue as

Re: Assembly Syscall Question

2003-08-01 Thread Terry Lambert
Ryan Sommers wrote: When making a system call to the kernel why is it necessary to push the syscall value onto the stack when you don't call another function? The stack is visible in both user space and kernel space; in general, the register space won't be, unless you are on an architecture

Re: getfsent(3) and spaces in fstab

2003-08-01 Thread Terry Lambert
Chris BeHanna wrote: What about test%201/mnt/test%201 ufs ro 0 0 ? Ugly, yes, but that's how a lot of tools escape spaces. % is almost infinitely more likely in a path than \; better to use the \ than the % mechanism. Also, the parser can b LALR single token

Re: usb (ucom) driver code comments..?

2003-07-31 Thread Terry Lambert
M. Warner Losh wrote: In message: [EMAIL PROTECTED] JacobRhoden [EMAIL PROTECTED] writes: : I am trying to get a device working which uses ucom, and the ucom code has no : comments whatsoever, I am able to work bits out, I was wondering if there was : any sort of documentation

Re: gcc segfault on -CURRENT (cvs yesterday)

2003-07-31 Thread Terry Lambert
Kai Mosebach wrote: Trying to compile sapdb fails on a -CURRENT system build yesterday. On a system from 22.July it compiled fine. Any ideas ? This is pretty ugly, but put a space before the ::'s on that line. -- Terry ___ [EMAIL PROTECTED]

Re: Console serial speed

2003-07-29 Thread Terry Lambert
Russell Cattelan wrote: On Sat, 2003-07-26 at 07:12, Daniel Lang wrote: Bruce M Simpson wrote on Sat, Jul 26, 2003 at 10:06:36AM +0100: On Fri, Jul 25, 2003 at 01:06:28PM -0500, Russell Cattelan wrote: How does one set the serial speed of the console. Does specifying

Re: vpo in ECP

2003-07-29 Thread Terry Lambert
Paulo Roberto wrote: Sorry hackers, I have posted this to [EMAIL PROTECTED], but got no answer... I did set my mainboard BIOS to use ECP transfer mode (dma 3 irq 7). I edited my kernel to: device ppc0 at isa? flags 0x8 irq 7 (is there a way to declare the dma I want to use? config

Re: BCM4401 Support for FreeBSD

2003-07-29 Thread Terry Lambert
Joe Marcus Clarke wrote: On Mon, 2003-07-28 at 12:18, Aeefyu wrote: i.e. Broadcom 440x NIC support for FreeBSD 4.x and 5.x (as found on latest Dell's Notebooks - mine is a 8500) Would anyone be so kind to enlighten me on the the current status? Last I heard of developments being made

Re: Probing for devices

2003-07-25 Thread Terry Lambert
Geoff Glasson wrote: I'm trying to port the Linux i810 Direct Rendering Interface ( DRI ) kernel module to FreeBSD. I have reached the point where the thing compiles, and I can load it as a kernel module, but it can't find the graphics device. Through a process of elimination I have come to

Re: Where / how to begin the FreeBSD development journey?

2003-07-23 Thread Terry Lambert
Shawn wrote: On Tue, 2003-07-22 at 02:04, Terry Lambert wrote: There's a wide range of options, from the expensive to the free online stuff. At the high end, we have: $1300 https://www.mckusick.com/courses/introorderform.html $1500 https://www.mckusick.com/courses/advorderform.html

Re: Where / how to begin the FreeBSD development journey?

2003-07-22 Thread Terry Lambert
Shawn wrote: I did peruse the bugs list at the FreeBSD web site curious as to what the current outstanding issue list was, and felt compelled to see if there was anything left open that I might put my hand to and felt a bit overwhelmed. I noticed that there are over 2,000 some entries with

Re: Communications kernel - userland

2003-07-21 Thread Terry Lambert
Robert Watson wrote: Of these approaches, my favorite are writing directly to a file, and using a psuedo-device, depending on the requirements. They have fairly well-defined security semantics (especially if you properly cache the open-time credentials in the file case). I don't really like

Re: running 5.1-RELEASE with no procfs mounted (lockups?)

2003-07-18 Thread Terry Lambert
Pawel Jakub Dawidek wrote: + trussRelies on the event model of procfs; there have been some + initial patches and discussion of migrating truss to ptrace() but + I don't think we have anything very usable yet. I'd be happy to + be

Re: complicated downgrade

2003-07-18 Thread Terry Lambert
Valentin Nechayev wrote: I need to downgrade a remote FreeBSD system from 5.1-release to 4.8-release remotely without any local help (except possible hitting Reset). Don't ask why the collocation provider is too ugly and too far from me; it's given and unchangeable. This system never was 4.*

Re: MSDOSFS patch of dirty flag (Darwin Import)

2003-07-18 Thread Terry Lambert
Jun Su wrote: I began to import some code from Darwin msdosfs. Here is my first patch about the dirty flag. I patched the msdosfs kernel module and fsck_msdos to enable the flag. Can someone test it and checked in? Must I submit a PR? From my own option, the new features of Darwin's

Re: Communications kernel - userland

2003-07-18 Thread Terry Lambert
Marc Ramirez wrote: I asked this in -questions, but got no response; sorry for the repost. I have a device driver that needs to make requests for data from a userland daemon. What's the preferred method for doing this in 4.8R and 5.1R? I'm assuming the answer is Unix-domain sockets... It

Re: running 5.1-RELEASE with no procfs mounted (lockups?)

2003-07-18 Thread Terry Lambert
John Baldwin wrote: Since ktrace logs all syscall entries and exits, it should seem that a kdump after the process had exited would show which syscall returned EAGAIN quite easily. This works if the process exits after the EAGAIN; that would only work for the specific error that people are

Re: USB device programming with ugen [Solved]

2003-07-15 Thread Terry Lambert
Martin wrote: Seems it was my fault. I found a solution in forums. I had to try out many things until someone has pointed me to BIOS settings and assigning interrupt to USB. I noticed it was off and enabled it. It works now. :) (E.a.: no delays while accessing ugen0 and no freeze with X11.)

Re: portupgrade

2003-07-12 Thread Terry Lambert
Andrew Konstantinov wrote: I've written a simple script to make my life easier, but there is a problem with that script and I can't figure out the source of that problem. [ ... ] The problem is simple. Whenever this script confronts a program which needs to be upgraded, portupgrade removes

Re: What ever happened with this? eXperimental bandwidthdelayproduct code

2003-07-10 Thread Terry Lambert
Dan Nelson wrote: In the last episode (Jul 09), Max Clark said: 600/8*.220 = 165Kbytes or 1.32Mbit/s I understand the BDP concept and the calculation to then generate the tcp window sizes. What I don't understand is this... How in the world is a windows 2000 box running

Re: What ever happened with this? eXperimental bandwidthdelayproduct code

2003-07-10 Thread Terry Lambert
Max Clark wrote: :) hehe... Okay, let's say how do I force my machine to think it doesn't have any latency and saturate a 6Mbit/s link even though the link has 220ms latency? See the recent discussion on the FreeBSD-performance mailing list. -- Terry

Re: raw socket programming SOLVED

2003-07-08 Thread Terry Lambert
David A. Gobeille wrote: Shouldn't the #included files themselves #include headers they are dependant on? With the use of #ifndef and #define in the headers to keep them from being #included more than once? It seems silly(more work) for the programmer to have to arrange everything in a

Re: 5 Advanced networking questions

2003-07-08 Thread Terry Lambert
Socketd wrote: Ok, anyway to prevent sending ICMP's when ttl = 0? Or do I need a firewall? I guess you want to do this so that you can break path MTU discovery and fail to properly exchange packets with the DF bit set in the headers, and which don't take into account intermediate links with

Re: kernel hacking

2003-07-08 Thread Terry Lambert
Sandeep Kumar Davu wrote: I was making changes to 4.5 source code. I tried to recompile the kernel. it compiles well but is not able to link it. I used the function inet_aton in uipc_socket.c This is the error i got. uipc_socket.o(.text+0xid8): undefined refernce to '__inet_aton' I added

Re: 5 Advanced networking questions

2003-07-08 Thread Terry Lambert
Socketd wrote: I guess you want to do this so that you can break path MTU discovery and fail to properly exchange packets with the DF bit set in the headers, and which don't take into account intermediate links with smaller MTUs, like VPNs or PPPOE links? What exactly are you getting

Re: Adding second-level resolution to cron(8).

2003-07-08 Thread Terry Lambert
Rich Morin wrote: I have a project for which I need a generalized time-based scheduling daemon. cron(8) is almost ideal, but it only has minute-level resolution. So, I'm thinking about modifying cron to add second-level resolution. Before I start, I thought I'd ask a few questions: *

Re: 5 Advanced networking questions

2003-07-08 Thread Terry Lambert
Socketd wrote: On Tue, 08 Jul 2003 04:17:04 -0700 Terry Lambert [EMAIL PROTECTED] wrote: I don't want to disable ICMP, just don't want to respond when ttl=0, meaning when my firewall/gateway is on a traceroute path. You should specifically modify the ICMP code to not respond to echo

Re: how to call a syscall in a kernel module?

2003-07-06 Thread Terry Lambert
zhuyi wrote: Dear all: How to call a syscall in a kernel module? In Linux, you can add two line into your source code. #define __KERNEL_SYSCALLS__ #include linux/unistd.h Most system calls call copyin or copyinstr or uiomove, which assumes that the data is in the user process that is

Re: recovering data from a truncated vn-file possible?

2003-07-06 Thread Terry Lambert
Josh Brooks wrote: Long story short, I have a 4gig vn-backed filesystem. The file backing it is now missing the last 750megs ... I can vnconfig it, but when I fsck it I see: Probably the first thing you'll want to do is write a small program to open the file and write a zero at the offset of

Re: recovering data from a truncated vn-file possible?

2003-07-06 Thread Terry Lambert
Paul Schenkeveld wrote: $ truncate -s original_size file Bah! Why use a utility, when you can write a program? -- Terry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: non-32bit-relocation

2003-06-28 Thread Terry Lambert
Andrew wrote: I wrote a small assembly program to send a string to the floppy. I'm not familiar with nasm, the assembly language compiler I'm using and even less familiar with the as program. basically, other code aside, the nasm compiler says, when using -f elf, that it does not support

Re: TODO list?

2003-06-28 Thread Terry Lambert
Simon L. Nielsen wrote: On 2003.06.27 16:10:13 -0700, Joshua Oreman wrote: I currently have a lot of free time and I was wondering whether there was a TODO list of some sort for bugs that need fixing in FreeBSD. I really want to help the project, and I think such a list would make it much

Re: Page Coloring Defines in vm_page.h

2003-06-25 Thread Terry Lambert
Bruce M Simpson wrote: Something occurred to me whilst I was re-reading the 'Design Elements' article over the weekend; our page coloring algorithm, as it stands, might not be optimal for non-Intel CPUs. Actually, it does very well for most architectures, and was originally developed into

  1   2   3   4   5   6   7   8   9   10   >