Re: /etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Dima Panov
name-servers; require subnet-mask, domain-name-servers; } And result is /etc/resolv.conf: # Generated by resolvconf nameserver 127.0.0.1 nameserver 4.4.4.4 nameserver 8.8.8.8 nameserver 192.168.1.1 -- Dima Panov (flu...@freebsd.org) (KDE, Office)@FreeBSD team Facebook: http://www.facebook.co

Patch for ping6 -o

2007-11-15 Thread Dima Dorfman
The ping(8) utility has an -o switch that tells it to exit after receiving the first reply. This is useful, but ping6(8) doesn't have it. Simple patch attached. Comments/reviews/whatnots? I'll commit to HEAD in a few days if I don't hear any objections. -- Dima Dorfman

Re: Using any network interface whatsoever

2006-04-08 Thread Dima Dorfman
Mike Meyer <[EMAIL PROTECTED]> wrote: > What do I want for that? I identify ethernet boards by which slot on > the back of the system I plug the cable into. Currently, I have to map > that to board types to and which board is plugged into which slot to > know which name to use. I want a name that t

Re: dumpon(8) obsolete

2002-03-10 Thread Dima Dorfman
so a program like dumpon would be useful > to embed this code in. Certainly. I wouldn't want to unnecessarily delay the integration of copy-on-write :-). Consider my proposal withdrawn. > In message <[EMAIL PROTECTED]>, Dima Dorfman writes: > >Since sysctl(8) grew supp

dumpon(8) obsolete

2002-03-10 Thread Dima Dorfman
Since sysctl(8) grew support for setting dev_t's, dumpon(8) can be reduced to: sysctl kern.dumpdev=$argument Since dumpon(8) is not a standard interface and only appears to be used in /etc/rc, I'd like to change the latter to use sysctl(8) directly and remove dumpon(8) from the tree. Th

Re: bin/34744: Add -a (same as -PpR) flag to cp(1)

2002-03-08 Thread Dima Dorfman
Jordan DeLong <[EMAIL PROTECTED]> wrote: > > >Number: 34744 > >Category: bin > >Synopsis: Add -a (same as -PpR) flag to cp(1) > >Description: > some other cp(1) implementations (such as GNU cp) provide a -a > flag, which just means -PpR. somewhat useful. Does any

Re: jail.c.patch (allowing to use hostnames when invoking jail(8))

2001-12-09 Thread Dima Dorfman
Dima Dorfman wrote: > Chris Costello <[EMAIL PROTECTED]> wrote: > >I'd rewrite the above (`i = inet_aton' all the way down) as > > > > hp = gethostbyname(argv[3]); > > if (hp == NULL) { > > errx(1, "%s: %s&

Re: jail.c.patch (allowing to use hostnames when invoking jail(8))

2001-12-09 Thread Dima Dorfman
Chris Costello <[EMAIL PROTECTED]> wrote: > On Saturday, November 24, 2001, Igor M Podlesny wrote: > > i = inet_aton(argv[3], &in); > > - if (!i) > > - errx(1, "Couldn't make sense of ip-number\n"); > > + if (!i) { > > + /* check if it is resolveable

Reducing syslogd output bloat (was: cvs commit: src/sys/conf Makefile.i386)

2001-11-24 Thread Dima Dorfman
Peter Wemm <[EMAIL PROTECTED]> wrote: > Bruce Evans wrote: > > - syslogd: the name of the kernel file is used as a prefix. If I kept > > kernels in the standard place, then I would have complained about the > > bloatage of syslogd output caused by renaming the kernel from /kernel > > to /bo

Re: error in man page kvm_nlist(3) ?

2001-09-15 Thread Dima Dorfman
"Sansonetti Laurent" <[EMAIL PROTECTED]> wrote: > Hi, > > I think there's an error in man page for kvm_nlist(3): a reference to > kldsym(2) which doesn't exist in the manual... > > pinux@arrakis ~> man kvm_nlist | grep kldsym > kldsym(2) is used to locate the symbol. This is a less than pe

Re: ipfw and access

2001-09-07 Thread Dima Dorfman
Chad David <[EMAIL PROTECTED]> wrote: > I was just wondering about the caveat in that access(2) man page > that says that access is a potential security hole and should > never be used, and the fact that ipfw calls it on line 2435. > > I seem to recall a discussion about this a few months ago, bu

Outdated comment in namei.h

2001-09-03 Thread Dima Dorfman
The following is from namei.h, around line 116 in -current (r1.30): /* * Namei parameter descriptors. * * SAVENAME may be set by either the callers of namei or by VOP_LOOKUP. * If the caller of namei sets the flag (for example execve wants to *

syslogd bound to a specific address?

2001-08-27 Thread Dima Dorfman
Is there a compelling reason why syslogd doesn't have an option to make it bind to a specific address? Most daemons have one, but syslogd does not. I'm asking because jail(8) explicitly mentions that syslogd doesn't support this, which either means the author knows why it can't reasonably suppor

Re: problem with unloading device driver

2001-08-27 Thread Dima Dorfman
"Eugene L. Vorokov" <[EMAIL PROTECTED]> wrote: > Hello, > > I have a module which adds new device. It does make_dev() and then simulates > mknod() syscall, so that /dev/name is always automatically created. > Also I have a daemon which reads from and writes to this device. The daemon > opens the

Re: can't generate vnode_if.h automatically

2001-08-12 Thread Dima Dorfman
Rohit Grover <[EMAIL PROTECTED]> writes: > Interestingly, when I executed the command 'make depend', > vnode_if.h was correctly created for me. I'd like to know why I don't > need to do a 'make depend' for modules like 'vn' or 'nfs' before > building them. Perhaps because it was done before? C

Re: Accessing /dev/klog and similar

2001-08-01 Thread Dima Dorfman
Peter Pentchev <[EMAIL PROTECTED]> writes: > Or rather, do not try this while syslogd is running. > > src/sys/kern/subr_log.c defines the operation of the /dev/klog > device, and there is an upper limit on the number of processes > that can simultaneously open the log device - the limit is one. >

Re: portmap_enable vs. rpcbind_enable

2001-07-31 Thread Dima Dorfman
David Malone <[EMAIL PROTECTED]> writes: > On Tue, Jul 31, 2001 at 08:33:59AM -0700, Dima Dorfman wrote: > > Dan Nelson <[EMAIL PROTECTED]> writes: > > > In the last episode (Jul 31), Dima Dorfman said: > > > > Does anybody know (remember?) why portma

Re: portmap_enable vs. rpcbind_enable

2001-07-31 Thread Dima Dorfman
Dan Nelson <[EMAIL PROTECTED]> writes: > In the last episode (Jul 31), Dima Dorfman said: > > Does anybody know (remember?) why portmap_enable (the rc.conf knob) > > wasn't renamed to rpcbind_enable when portmap became rpcbind? It > > seems odd to have a knob cal

portmap_enable vs. rpcbind_enable

2001-07-31 Thread Dima Dorfman
Does anybody know (remember?) why portmap_enable (the rc.conf knob) wasn't renamed to rpcbind_enable when portmap became rpcbind? It seems odd to have a knob called portmap_enable that actually starts something called rpcbind (not to mention violating POLA). To Unsubscribe: send mail to [EMAIL P

Re: Wanted: swapped backed disk on a diskless machine

2001-07-28 Thread Dima Dorfman
David Gilbert <[EMAIL PROTECTED]> writes: > >>>>> "Dima" == Dima Dorfman <[EMAIL PROTECTED]> writes: > Dima> Only the `malloc' md type (as much as the name suggests > Dima> otherwise, it can be configured not to use malloc as a backing

Re: Wanted: swapped backed disk on a diskless machine

2001-07-27 Thread Dima Dorfman
David Gilbert <[EMAIL PROTECTED]> writes: > I have somewhat of an interesting problem: I have applications that > write arbitrarily large files (as much as 6 gig) and I find that the > best performance for these disks is to use something like MFS. > > However, mfs has a maximum size of 512M. >

Re: your mail

2001-07-23 Thread Dima Dorfman
Alfred Perlstein <[EMAIL PROTECTED]> writes: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [010723 19:47] wr > ote: > > Hello > > I am experimenting with kernel modules and am trying to write to a file. > > This is the syscall function (sorry of my terminology is messed up) > > > > static int write_f

Re: A full source-tour somewhere?

2001-07-23 Thread Dima Dorfman
Julian Elischer <[EMAIL PROTECTED]> writes: > At one stage at whistle we had the kernel fully cross-referenced > using the 'global' program (now in ports) which produced > a website that could be browsed to find > 'all the callers of xxx()' etc. > > does anyone have such a site online at the mome

Proper way for *config(8) to load corresponding modules

2001-07-20 Thread Dima Dorfman
ve headaches later if the kld interface is changed so that neither of these methods work without modification (with a kldmaybeload, it'd be sufficient just to modify the library function). Thanks for any insight. Dima Dorfman To Unsubscribe: send

Re: ypbind broken...

2001-07-19 Thread Dima Dorfman
Harti Brandt <[EMAIL PROTECTED]> writes: > > Hi, > > The last commit to ypbind (1.34) breaks parsing of the -S option. > The following patch should fix this. Oops, my fault; I've applied a variant of this. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the

Re: Weird problem in 4.3-STABLE

2001-07-18 Thread Dima Dorfman
Sheldon Hearn <[EMAIL PROTECTED]> writes: > static inline void > xdaemonwarn(char *fmt, ...) > { > va_list ap; > > va_start(ap, fmt); > if (!daemon_quiet) > warn(fmt, ap); ^^ Shouldn't this be `vwarn'? To Unsubscribe: send mail to [EMAIL PROTECT

Re: disabling reboot on kernel panic

2001-07-17 Thread Dima Dorfman
"Eugene L. Vorokov" <[EMAIL PROTECTED]> writes: > Hello, > > maybe it's a bit offtopic, but still: how can I disable reboot on kernel > panic in 15 seconds, so that it just hangs and I'm able to see what > happened when I come ? Set PANIC_REBOOT_WAIT_TIME to -1. > > Regards, > Eugene > > > T

Trailing newline in panic() calls

2001-07-11 Thread Dima Dorfman
these calls? panic() OpenBSD and NetBSD also prints a newline for the user, so there are no portability issues. Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-ha

DDB 'kill' command

2001-07-10 Thread Dima Dorfman
k on the allproc list. There is similar code in db_trace.c, and it doesn't call sx_slock(), either; I asked jhb about this a while ago, and all he said was that it is intentional. Comments? Suggestions? Thanks, Dima Dorfman

Re: panic when returning error on MOD_LOAD

2001-07-09 Thread Dima Dorfman
"Eugene L. Vorokov" <[EMAIL PROTECTED]> writes: > Hello, > > I'm pretty confused with the fact that kernel panics when my module's > event handler returns something greater than zero on MOD_LOAD. I wanted > module to refuse to load when it can't find it's config file, so I > thought I can return

Re: ifmcstat(8) setgidness

2001-06-27 Thread Dima Dorfman
Ruslan Ermilov <[EMAIL PROTECTED]> writes: > On Wed, Jun 27, 2001 at 01:29:28AM -0700, Dima Dorfman wrote: > > Ruslan Ermilov <[EMAIL PROTECTED]> writes: > > > On Tue, Jun 26, 2001 at 03:04:07PM -0700, Dima Dorfman wrote: > > > > Hi folks, > > >

Re: ifmcstat(8) setgidness

2001-06-27 Thread Dima Dorfman
Ruslan Ermilov <[EMAIL PROTECTED]> writes: > On Tue, Jun 26, 2001 at 03:04:07PM -0700, Dima Dorfman wrote: > > Hi folks, > > > > Is there a particular reason, other than the desire for more setgid > > programs, that ifmcstat(8) is setgid kmem? It seems that ther

ifmcstat(8) setgidness

2001-06-26 Thread Dima Dorfman
ollow suit? Thanks, Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: "include" directive in config(8) (was: Two Junior Kernel Hacker tasks..)

2001-06-24 Thread Dima Dorfman
and devices is a simple linked list (mind you, it's a home-grown one, not queue(3)); it shouldn't be too hard to implement "unoption" and "undevice" directives. Dima Dorfman [EMAIL PROTECTED

"include" directive in config(8) (was: Two Junior Kernel Hacker tasks..)

2001-06-23 Thread Dima Dorfman
[ peter@ cc'd because he's done a lot of work with config(8) ] John Baldwin <[EMAIL PROTECTED]> writes: > On 22-Jun-01 Dima Dorfman wrote: > > John Baldwin <[EMAIL PROTECTED]> writes: > >> 1) Split sys/i386/conf/NOTES up into MI and MD parts. The MI por

Re: Two Junior Kernel Hacker tasks..

2001-06-22 Thread Dima Dorfman
86 ... include "../../../conf/GENREIC" # <-- MI config file ... I think this is much more general than just splitting NOTES. Is there any reason we shouldn't do this? I'd be willing to implement 'incl

Re: strangeness in web interface of send-pr

2001-06-13 Thread Dima Dorfman
Giorgos Keramidas <[EMAIL PROTECTED]> writes: > I have a few hours to spare tonight, and I was using the > query-pr-summary.cgi script to view the open PRs. > > The query URL was (wrapped to avoid terminal silliness): > > 1 http://www.FreeBSD.org/cgi/query-pr-summary.cgi?\ > 2 category=&se

Re: FreeBSD Monthly Development Status Report, June 2001

2001-06-13 Thread Dima Dorfman
riting something if nobody knows about it ;-) ), so it has a much better chance of succeeding. I don't know if it's worth putting the first issue up not knowing if there will be more; anybody else have an opinion on this? Dima Dorfman

mount_mfs-like program for md

2001-06-12 Thread Dima Dorfman
thing that can be used separately. So, is there any reason not to do this? I've attached a sharball of the sources. Regards, Dima Dorfman [EMAIL PROTECTED] # This is a shell archive. Save it in a file, remove

Re: MFC'ing new md(4) functionality?

2001-06-06 Thread Dima Dorfman
fashion. I > don't think there's a lot of good sense in pulling it out at an arbitrary > point, though, any more than there was in pulling 'wd' like it was. FWIW, this thread wasn't (originally) about EOL'ing mfs, but rather making the replacement of MF

Re: MFC'ing new md(4) functionality?

2001-06-06 Thread Dima Dorfman
Warner Losh <[EMAIL PROTECTED]> writes: > In message <70325.991758797@critter> Poul-Henning Kamp writes: > : In message <[EMAIL PROTECTED]>, "David O'Brien" writes: > : >On Mon, Jun 04, 2001 at 07:46:18PM -0700, Dima Dorfman wrote: > : >> Is t

Re: MFC'ing new md(4) functionality?

2001-06-06 Thread Dima Dorfman
Poul-Henning Kamp <[EMAIL PROTECTED]> writes: > In message <[EMAIL PROTECTED]>, "David O'Brien" writes: > >On Mon, Jun 04, 2001 at 07:46:18PM -0700, Dima Dorfman wrote: > >> Is there any reason not to MFC the new md(4) functionality > > > &

MFC'ing new md(4) functionality?

2001-06-04 Thread Dima Dorfman
. mdconfig(8) and mdioctl.h aren't in -stable so those can be brought over verbatim, and the only changes to md.c itself are bio->buf stuff, and some added spl's. I've put the diff for the latter against -stable at http://www.unixfreak.org/~dima/home/mdmfc.diff. If someone wants a

Re: Fixing documented bug in env(1)

2001-06-01 Thread Dima Dorfman
ng with it.) Thanks, Dima Dorfman [EMAIL PROTECTED] [EMAIL PROTECTED] (Peter Seebach) writes: > In message <[EMAIL PROTECTED]>, Dima Dorfman writes: > >But this isn't terminating the end of a series of "options"; it's

Re: Fixing documented bug in env(1)

2001-06-01 Thread Dima Dorfman
[EMAIL PROTECTED] (Peter Seebach) writes: > In message <[EMAIL PROTECTED]>, "David O'Brien" writes: > >On Thu, May 31, 2001 at 09:29:38PM -0700, Dima Dorfman wrote: > >> Although this is a documented shortcoming, it's quite unnecessary > >&g

Fixing documented bug in env(1)

2001-05-31 Thread Dima Dorfman
x27;--' to mean "end of env. variable assignments"? Patch attached below. Thanks, Dima Dorfman [EMAIL PROTECTED] Index: env/env.c === RCS

Re: Problem with find -fstype local ?

2001-05-30 Thread Dima Dorfman
Doug Barton <[EMAIL PROTECTED]> writes: > Gang, > > This may be my lack of understanding, but doing 'find / -fstype local' > is > definitely traversing nfs mounted directories for me in -current and > -stable. The man page isn't 100% clear, but it seems to me that it should > not be doing

background_fsck rc.conf option

2001-05-20 Thread Dima Dorfman
/etc/rc conditional on ${background_fsck}. The patch leaves background fsck on by default, but now that can be easily changed; I'm sure there will be a long thread about what the default should be later. Comments? Suggestions? Thanks, Dima Do

Re: De-setgid-ifying ipcs(1)

2001-05-20 Thread Dima Dorfman
well inialize it to 1 in the DATA segment and replace > !use_sysctl with just 0. Point taken. I've done as you suggested in the patch I just posted to -audit for review. Thanks again, Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

De-setgid-ifying ipcs(1)

2001-05-17 Thread Dima Dorfman
articuarly, I'd like comments on whether I exported everything correctly. Thanks in advance, Dima Dorfman [EMAIL PROTECTED] Index: sys/kern/sysv_msg.c ===

Re: xargs(1) "replstr" patch

2001-05-14 Thread Dima Dorfman
delta is +30 -6, and most of those +30 are simple things like defining or initializing variables. I guess that adding -I would mean adding on the order of 100 or 150 lines; again, not hard, but not something one can do in 10 minutes. Just food for thought, I guess. I'm sure Garance wouldn't

Making snp(4) a module

2001-05-14 Thread Dima Dorfman
e disciplines this way, but I think it's a lot better than the above code, and it has the fortunate sideaffect that snp(4) can be built as a module. If this gets accepted I'll submit patches to remove the aforementioned tty hacks. Comments? Thanks,

MIN()/MAX() definitions in sys/param.h

2001-05-13 Thread Dima Dorfman
Any reason this isn't already done this way, or should I come up with a patch to fix that? Thanks for any insight, Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubsc

Re: xargs(1) "replstr" patch

2001-05-11 Thread Dima Dorfman
Garance A Drosihn <[EMAIL PROTECTED]> writes: > At 6:03 PM -0700 5/11/01, Dima Dorfman wrote: > >+For example, the following command will copy the list of files and > >+directories which start with an uppercase letter in the current > >+directory to > >+.Pa dest

xargs(1) "replstr" patch

2001-05-11 Thread Dima Dorfman
Folks, The attached patch adds a "replacement string" feature to xargs(1). There's a full description in the man page update (also attached), but the following should demonstrate the new functionality: dima@spike% ./xargs -J [] echo CMD LINE [] ARGS < test CM

Re: Who's cleaning up after disk_clone?

2001-05-10 Thread Dima Dorfman
Poul-Henning Kamp <[EMAIL PROTECTED]> writes: > In message <[EMAIL PROTECTED]>, Dima Dorfman writes: > > - what should be destroying /dev/md0c? > > The disk-minilayer. > > We need some to keep track of cloned dev_t's so we can nuke them > at variou

Who's cleaning up after disk_clone?

2001-05-10 Thread Dima Dorfman
disk_clone is set as the dev_clone handler by the disk minilayer to create /dev/disk0sXY devices; however, as far as I can tell, those devices are never destroyed. For example (/dev is devfs here): dima@spike# mdconfig -a -t swap -s 32m md0 dima@spike# disklabel -r -w

Re: Getting peer credentials on a unix domain socket

2001-05-08 Thread Dima Dorfman
s found an existing way to meet condition 2. If you can change this (i.e., describe a way to do this for the list), great. Otherwise, I have a patch[1] that implements this as a socket option, and William Baxter has a patch to implement it as a system call.

Man page for struct ucred/xucred

2001-05-05 Thread Dima Dorfman
m a struct ucred. Should there be one? I think so. Perhaps something with an API of void crxucred(struct ucred *cr, struct xucred *xcr); would be useful. Diff against /dev/null for the man page attached. Comments? Suggestions? Thanks,

Re: Getting peer credentials on a unix domain socket

2001-05-04 Thread Dima Dorfman
Alfred Perlstein <[EMAIL PROTECTED]> writes: > * Dima Dorfman <[EMAIL PROTECTED]> [010504 20:22] wrote: > > > > Just to expand on that a little more (for others on the list), > > consider crontab(1). It's setuid root right now. Obviously that's &g

Re: Getting peer credentials on a unix domain socket

2001-05-04 Thread Dima Dorfman
"William E. Baxter" <[EMAIL PROTECTED]> writes: > On Fri, May 04, 2001 at 05:07:38PM -0700, Alfred Perlstein wrote: > > * Dima Dorfman <[EMAIL PROTECTED]> [010504 16:06] wrote: > > > Is there a reliable method of obtaining the credentials (uid/gid) o

Getting peer credentials on a unix domain socket

2001-05-04 Thread Dima Dorfman
mers don't help, either; think of TCP SYN flood-like attacks. Thanks, Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Port-related C++ question

2001-04-28 Thread Dima Dorfman
Jos Backus <[EMAIL PROTECTED]> writes: > On Sat, Apr 28, 2001 at 09:32:51PM -0700, Dima Dorfman wrote: > > Jos Backus <[EMAIL PROTECTED]> writes: > > > void stdin(const Config& config); <-=== line 99 > > > > `stdin' is a global variable

Re: Port-related C++ question

2001-04-28 Thread Dima Dorfman
Jos Backus <[EMAIL PROTECTED]> writes: > void stdin(const Config& config); <-=== line 99 `stdin' is a global variable which, surprisingly enough, refers to the standard input stream. Don't name a function after it and your problem should go away. To Unsubscribe: send mail to [EMAIL PROTECTE

Getting a list of users logged in at a certain time (patch)

2001-04-25 Thread Dima Dorfman
(1) still looks nothing like theirs, and the delta is larger than it should've been: surprisingly, our last(1) is quite a bit more mature (e.g., internationalization). Comments? Suggestions? Thanks, Dima Dorfman

allscreens_flags for kbdcontrol (patch)

2001-04-24 Thread Dima Dorfman
nskbd_flags="-h 200"' in rc.conf and automatically have the scrollback buffer size set to 200 lines for all the virtual terminals. Comments? Thanks, Dima Dorfman [EMAIL

cut(1) and long lines

2001-04-20 Thread Dima Dorfman
(e.g., the -f option) still isn't supported, but at least cut(1) doesn't choke when you want the second token but feed it a couple thousand characters in one line. Comments? Thanks, Dima Dorfman [EMAIL PRO

Re: Restricting the console to one vty (patch)

2001-04-20 Thread Dima Dorfman
Dan Nelson <[EMAIL PROTECTED]> writes: > In the last episode (Apr 18), Dima Dorfman said: > > Attached is a patch that makes it possible to restrict (``freeze'') > > the console to a single vty (the active one). This can be used in > > conjunction wi

Restricting the console to one vty (patch)

2001-04-18 Thread Dima Dorfman
one of the other umpteen things one can do with physical access to a computer. Instead, this is intended to protect things like ssh-agent sessions where rebooting destroys the cached credentials. Comments? Suggestions? Thanks in advance,

Re: Patch to make snp(4) devfs-friendly

2001-04-17 Thread Dima Dorfman
t kind of defeats the purpose of making it a module. Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Patch to make snp(4) devfs-friendly

2001-04-17 Thread Dima Dorfman
tached (although I didn't test it in the non-devfs case). Thanks! Dima Dorfman [EMAIL PROTECTED] Index: tty_snoop.c === RCS file: /st/src/FreeBSD/src/sys/kern/tty_snoop.c,v retrievi

Patch to make snp(4) devfs-friendly

2001-04-17 Thread Dima Dorfman
vance, Dima Dorfman [EMAIL PROTECTED] Index: tty_snoop.c === RCS file: /st/src/FreeBSD/src/sys/kern/tty_snoop.c,v retrieving revision 1.52 diff -u -r1.52 tty_snoop.c --- tty_snoop.c 2001/03/

Re: question on kvm_getprocs

2001-04-13 Thread Dima Dorfman
and paste it into your code. That will get rid of the warning. If your program seg faults when you try to run it, you'll know I was right. Regards, Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Displaying options for current NFS mounts

2001-03-25 Thread Dima Dorfman
d, but that can be easily solved (I just didn't know where to put them). With it, mount(8) outputs stuff like this: dima@spike% /sbin/mount -vt nfs pid295@spike:/host on /host (nfs, v2, udp, hard, intr) pid295@spike:/st on /st (nfs, v2, udp, hard, intr) bazooka:/a on /.amd/bazooka/host/a (nfs,

Re: Displaying options for current NFS mounts

2001-03-24 Thread Dima Dorfman
t does work. If some other people display intrest in this, and someone can suggest a less ugly way of getting the definitions of _args into mount.h (the only other way I can think of is to just move all of them from /.h to mount.h permamently), I'll implement this stuff in the other

Minor (cosmetic) ps(1) fixes

2001-03-19 Thread Dima Dorfman
ps -j ps: sess: keyword not found [ normal ps(1) output follows ] Attached is a patch that fixes this bug, and updates the man page. Comments? If this is okay, could someone please commit at least the source part? Thanks Dima Do

sysctl_kern_proc doesn't handle the case when no procs match given criteria

2001-03-16 Thread Dima Dorfman
l(3)). Comments? Suggestions? Thanks Dima Dorfman [EMAIL PROTECTED] P.S. libkvm and/or ps(1) should probably be taught to check for this condition and react more gently (on -stable, ps just prints the column labels when th

Patch to fix panic when detaching a mounted md device

2001-03-12 Thread Dima Dorfman
een opened. Comments? Thanks Dima Dorfman [EMAIL PROTECTED] Index: md.c === RCS file: /st/src/FreeBSD/src/sys/dev/md/md.c,v retrieving revision 1.26 diff -u -r1.26 md.c --- md.c

Re: Inheriting the nodump flag

2001-02-28 Thread Dima Dorfman
eing a reference to the English grammar and spelling, not their technical accuracy). > > I'd certainly like to see this committed - I'm sick of backing up > release directories, cvs repositories and /usr/obj :-) Yes, this was my motivation for porting this, too. :-) Thanks

Re: Inheriting the nodump flag

2001-02-26 Thread Dima Dorfman
int is well taken. I will send this to -audit in a few days barring any objections here. Thanks again Dima Dorfman [EMAIL PROTECTED] > > However, the general idea sounds very useful, and something that I'

Re: Why does a named pipe (FIFO) give me my data twice ???

2001-02-26 Thread Dima Dorfman
None of my Stevens books explain this. Hope this helps Dima Dorfman [EMAIL PROTECTED] > > hello! > > I've got a program that creates a named pipe, and then spawns a > thread > which sits in a

Inheriting the nodump flag

2001-02-26 Thread Dima Dorfman
very similar to the one they applied, I doubt it significantly breaks anything. Comments? Thanks in advance Dima Dorfman [EMAIL PROTECTED] Index: traverse.c =

Re: Listing configured md(4) devices

2001-02-24 Thread Dima Dorfman
> The "md" problem should really be solved by adding > #define MD_NAME "md" > to and using this in both the driver and the mdconfig > program. > > Can I get you to incorporate that in your patch ? Certainly! The updated patch is at http://www.unixfr

Re: Listing configured md(4) devices

2001-02-22 Thread Dima Dorfman
that assumption probably isn't all that easy, either. Assuming that a device name must consist of letters (which I suspect is the case), it's fairly trivial; just check that what follows 'md' is a number. Here's a patch against what I sent in previously to do that. The origi

Listing configured md(4) devices

2001-02-22 Thread Dima Dorfman
onfig -d -u ` will print information on the device specified. Comments? Suggestions? Thanks Dima Dorfman [EMAIL PROTECTED] Index: sys/dev/md/md.c === RCS file

Re: An example script for creating a bootable floppy

2001-02-03 Thread Dima Dorfman
[ dropping -doc ] > On 3 Feb 2001, at 18:02, Dima Dorfman wrote: > > Wild guess: try sticking ``options COMPAT_43'' in the config file. > > This smells of missing 4.3BSD compatibility structures or something. > > That got me quite a bit further. Any ideas abou

Re: An example script for creating a bootable floppy

2001-02-03 Thread Dima Dorfman
n the config file. This smells of missing 4.3BSD compatibility structures or something. Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: mount_md (was: mdconfig config file (was: cvs commit: src/sys/i386/conf GENERIC))

2001-02-03 Thread Dima Dorfman
possible, softupdate sshould > probably be enabled by default. Okay. Now the -S flag is used to disable softupdates. You can find the updated code at the same place (for your convenience, it is: http://www.unixfreak.org/~dima/home/mount_md.c). Also, the only reason mount_md runs tunefs is to enab

Re: mount_md (was: mdconfig config file (was: cvs commit: src/sys/i386/conf GENERIC))

2001-02-02 Thread Dima Dorfman
x27;s acceptable to write > :a C program to parse the arguments, build command lines to > :appropriately invoke disklabel, newfs, maybe tunefs, and mount, then > :call system(3) to execute them? > : > : Dima Dorfman > :

Re: mdconfig config file (was: cvs commit: src/sys/i386/conf GENERIC)

2001-02-01 Thread Dima Dorfman
aving two blocks doing the same thing, so I've decided not to attach it not to bother the uninterested parties. If you could take a minute or two and comment on it I'd appreciate it. You can find it at http://www.unixfreak.org/~dima/mdconfig1.diff The current format of the config file is:

Re: startx /dev/mem problem

2001-01-19 Thread Dima Dorfman
er (in short). Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Patch to fix "make buildkernel requires full obj directory" mistake

2001-01-19 Thread Dima Dorfman
users with two ways to achieve the same task. Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Patch to fix "make buildkernel requires full obj directory" mistake

2001-01-18 Thread Dima Dorfman
kernel you're building is of the same version that's currently running, trying to explain two different methods to new users should be avoided. Thanks Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Protections on inetd (and /sbin/* /usr/sbin/* in general)

2001-01-16 Thread Dima Dorfman
y, I'm in the latter boat (i.e., I see no reason to do this). Dima Dorfman [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: waiting for new files in a directory

2000-12-27 Thread Dima Dorfman
filter with the NOTE_EXTEND event/flag (notifies you when the file descriptor specified was extended) looks promising. Then again, I'm not a filesystem whiz, so this may all be nonsense. Hopefully I've at least interpreted your question correctly. Regards

Re: Bugfixes, security fixes, versions

2000-10-08 Thread Dima Dorfman
> On Sun, Oct 08, 2000 at 12:53:16AM -0700, a little birdie told me > that Dima Dorfman remarked > > > > Why not just use a date? I do this on most of my systems. My `uname > > -r` reads: > > > > 4.1-2916-STABLE > > > > I started doing th

Re: Bugfixes, security fixes, versions

2000-10-08 Thread Dima Dorfman
ed above--to know when I updated the system. It does clutter the `uname -a` output a bit, so it could be done similar to the way you suggested with the flag: "4.1-STABLE 2916". Just a thought. Regards -- Dima Dorfman <[EMAIL PROTECTED]> Finger [EMAIL PROTECTED] for my publi

Limiting speed of the Network Ethernet Card.

1999-11-10 Thread Dima
Is there any possibility to limit speed of the Network Card (I have Intel Ether Express card - fxp driver)? I need to limit speed with only 19200 Kbps, not 10Mbps. Or if it is not posible at all, what I have to do if I have LAN and want to limit speed of the part of this LAN with only 19200? T

icmp raw sockets

1999-08-30 Thread Dima Dorfman
to the raw sockets? i'm looking for a solution that doesnt involve kernel modifications. thanks in advance, --dima -- Dima Dorfman /-\ | irc: ecli...@efnet/dalnet | whois: dd10...@internic | | email: d...@unixf

icmp raw sockets

1999-08-30 Thread Dima Dorfman
to the raw sockets? i'm looking for a solution that doesnt involve kernel modifications. thanks in advance, --dima -- Dima Dorfman /-\ | irc: eclipze@efnet/dalnet | whois: DD10140@internic | | email: [EMAIL PR

  1   2   >