lock test from sh script

2008-10-17 Thread Igor Pokrovsky
Hi all! I need to check if file is locked or not (with flock) from a shell script. I remember there was something but cannot recall what exactly. And if possible I do not want to write my own test utility even it is several lines in length) Thanks, -ip ___

Re: Relative performance of swap-backed MFS vs. regular UFS?

2004-10-23 Thread Igor Pokrovsky
On Fri, Oct 22, 2004 at 12:32:40PM -1000, Clifton Royston wrote: > I have seen some conflicting information posted about this in the > past, and I figure this is the best place to get an authoritative > answer. > > For a large temporary file system which must hold short-lived files, > mostly s

Re: Relative performance of swap-backed MFS vs. regular UFS?

2004-10-23 Thread Igor Pokrovsky
On Sat, Oct 23, 2004 at 01:12:46PM -0500, Ryan Sommers wrote: > > > >You can also use md(4). In my case I use it for /tmp. > > > MFS is the same thing as md(4). mfs = Memory File System, md = Memory > Disk. Difference is only in the name. I thought mfs is allocated from virtual memory, while md -

"Could not find a spill register" error on alpha-4

2005-01-21 Thread Igor Pokrovsky
Hi, One of my ports refuses to build on alpha-4. Pointyhat gets the following error: rib.cpp:4130: Could not find a spill register (insn 4709 4708 4710 (set (reg:DI 15 $15) (plus:DI (reg:DI 15 $15) (cons

Re: Finding variables

2005-02-16 Thread Igor Pokrovsky
On Wed, Feb 16, 2005 at 06:24:08PM +0800, Kathy Quinlan wrote: > Hi all, > > I am using some code from http://home.flash.net/~bobgh/serial.htm > > It uses variables of ioctl like TCSETS, I have seen it in other FreeBSD > source code, but I can not find what I need to include to get it to work .

Re: Dynamically Linked Library Problem (maybe)

2005-03-02 Thread Igor Pokrovsky
On Mon, Feb 28, 2005 at 11:48:14PM +0200, Cole wrote: > Hey. > > I have a Freebsd server running freebsd-4.9-stable. > I cvsupped the ntop src last week for 3.1.1. > > I then had no problems what so ever building ntop, except for the xml plugin > saying it was not built, cause it cannot find > x

Re: Low level hardware access in FreeBSD

2005-03-13 Thread Igor Pokrovsky
On Sat, Mar 12, 2005 at 06:12:19PM +, Alex Burke wrote: > Hi, > > I am just wondering how I can access either BIOS calls, or preferably > registers under FreeBSD? > > I am trying to write a simple system capable of displaying graphics on > the screen, and I am pretty sure I can mmap the VGA m

Re: Bug in portupgrade

2005-07-15 Thread Igor Pokrovsky
On Wed, Jul 13, 2005 at 12:15:31AM +0200, Olivier Certner wrote: > Le Mardi 12 Juillet 2005 19:39, Florent Thoumie a ?crit : > > Le Mardi 12 juillet 2005 ? 12:55 -0400, Kris Kennaway a ?crit : > > > On Sun, Jul 10, 2005 at 11:13:12PM +0200, Olivier Certner wrote: > > > > Hi, > > > > > > > >

no sound in SDL apps

2005-07-19 Thread Igor Pokrovsky
Hi, Some time ago (unfortunatly I cannot say when) all sound had dissapeared from SDL apps. However soundcard itself is fine as xmms via /dev/dsp is working fine. I tried to recompile all sdl related stuff - no difference (even did portupgrade -R sdl). Is there anybody out there who is experienc

Re: Bug in portupgrade

2005-08-01 Thread Igor Pokrovsky
On Sun, Jul 31, 2005 at 11:34:49AM +0900, KOMATSU Shinichiro wrote: > Hello. > > Olivier Certner wrote: > >Le Mardi 12 Juillet 2005 19:39, Florent Thoumie a ?crit : > > > >>Le Mardi 12 juillet 2005 ? 12:55 -0400, Kris Kennaway a ?crit : > >> > >>>On Sun, Jul 10, 2005 at 11:13:12PM +0200, Olivier C

perl's tie problem

2005-08-12 Thread Igor Pokrovsky
Hi all, Consider the following except from a perl program: tie(%foodb, 'MLDBM', $BAR_FILE, O_CREAT | O_RDWR, 0666) or die("Cannot open $BAR_FILE: $!\n"); I expect it to create a new $BAR_FILE, if none existed, with 0666 permissions. But it doesn't. It creates a file with de

Re: perl's tie problem

2005-08-13 Thread Igor Pokrovsky
On Fri, Aug 12, 2005 at 01:34:51PM -0700, Steve Watt wrote: > In article <[EMAIL PROTECTED]> you write: > >Hi all, > > > >Consider the following except from a perl program: > > > >tie(%foodb, 'MLDBM', $BAR_FILE, O_CREAT | O_RDWR, 0666) > > or die("Cannot open $BAR_FILE: $!\n");

Re: Project BSDVISION Wants To Develop Native *BSD Console Desktop

2005-08-22 Thread Igor Pokrovsky
On Sun, Aug 21, 2005 at 01:39:20AM -0700, Kamal R. Prasad wrote: > > It will be running on a virtual console in text or > > graphics mode like > > TurboVision used to, but we are focusing on text > > mode for now. As I just > > wrote to someone else, the main idea is to enable > > BSD programs to h

Re: SB Live 7.1 soundcard trouble

2005-12-06 Thread Igor Pokrovsky
On Tue, Dec 06, 2005 at 09:59:02AM +, Vyacheslav Sotnikov wrote: > Hi list. > I've got trouble with drivers for my soundcard - they dont detect it. > pciconf brings that: > > [EMAIL PROTECTED]:9:0: class=0x040100 card=0x10061102 chip=0x00071102 rev=0x00 > hdr=0x00 > vendor = 'Creative La

pppd and DNS

2005-12-20 Thread Igor Pokrovsky
Hi, Looking through pppd sources I found that it doesn't know how to request DNS info from the server, while ppp can. Here I mean requesting DNS info and updating /etc/resolv.conf. Did anyone tried to make it possible with pppd? Since I used to pppd I'd like to teach him this useful functionality.

Re: FreeBSD VGA Framebuffer

2005-12-20 Thread Igor Pokrovsky
On Wed, Dec 21, 2005 at 09:51:24AM +1300, Dale DuRose wrote: > Hi > > I'm wondering if anyone knows if freebsd has a vga framebuffer? > and how to use it? Yes it has. It's sources are in /usr/src/dev/fb and there is no man page (at least on RELENG_4). Not sure it even exist in RELENG_[56]. -ip

[PATCH] pppd: added auto DNS configuration

2005-12-27 Thread Igor Pokrovsky
Hello, I've implemented DNS automatic negotiation and configuration in pppd (RFC1877). Since it is not a standard thing, I made it an optional feature of pppd. Some parts of the code were taken from ppp implementation. I would be greatful for testing of this patch and for any comments and suggesti

Re: User mounting take 2

2006-04-22 Thread Igor Pokrovsky
On Sat, Apr 15, 2006 at 01:05:45AM -0400, Joe Marcus Clarke wrote: > Based on feedback I received on my initial diff, I took another crack at > user mounting. To address Robert's concerns, I drop the setuid > permissions until needed. Therefore, all permission checks are now done > in the kernel.

Re: Minimalist FreeBSD 4.8

2003-08-27 Thread Igor Pokrovsky
On Wed, Aug 27, 2003 at 07:02:16PM +1000, Peter Jeremy wrote: > On Wed, Aug 27, 2003 at 10:53:38AM +1000, Greg Black wrote: > >On 2003-08-26, Diomidis Spinellis wrote: > >> You can use the system the way you intent to for two weeks, and then run > >> > >> find / -atime +2w -print0 | xargs -0 rm -f

Re: Ugly Huge BSD Monster

2003-09-01 Thread Igor Pokrovsky
On Mon, Sep 01, 2003 at 04:58:43PM +0700, 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. What you propose? > For example, I don't need Perl

Re: Ugly Huge BSD Monster

2003-09-02 Thread Igor Pokrovsky
On Tue, Sep 02, 2003 at 01:07:34PM +0200, Sten Daniel S?rsdal wrote: > > > > On Mon, Sep 01, 2003 at 12:38:34PM -0700, Greg Shenaut wrote: > > >Has it ever been suggested to create one or more "dependencies" > > >ports (or more to the point, packages)? I think it might be pretty > > >useful to ha

Re: Matrox Parhelia XFree86 Busmastering kernel module?

2003-10-11 Thread Igor Pokrovsky
On Thu, Oct 09, 2003 at 05:40:30PM +0200, Daniel Lang wrote: > Hiho, > > There seems no freebsd-xfree list, but this is only XFree related, > it's rather kernel oriented. > > Matrox offers a RedHat-Linux driver for their Parhelia based boards > (Parhelia, P650, P750). The XFree86 driver module mt

Re: two soundcards and realplayer

2003-10-24 Thread Igor Pokrovsky
On Sat, Oct 25, 2003 at 09:11:41PM +0200, Martin V??a wrote: > Hi, > I use two soundcards on my Freebsd5.1 box - Sb Live and SB AWE64, FreeBSD somehow > figured out that > Live is better than Awe and made it "primary" soundcard. The reason I have AWE still > in computer, is > it's amplyfing skill

Re: Determining a program's shared libraries at runtime

2004-03-31 Thread Igor Pokrovsky
On Wed, Mar 31, 2004 at 02:55:47PM -0500, Mike Heffner wrote: > > Is there a method in FreeBSD for a program to retrieve the current list of > dynamic shared libraries it is linked against or has dlopen()'d? Looks like ldd is doing exactly what you want, take a look at it's sources. -ip -- It'

Re: Setting Standby Mode for ATA Disks

2004-06-29 Thread Igor Pokrovsky
On Fri, Jun 25, 2004 at 06:38:51PM +0100, Markie wrote: > - Original Message - > From: "Arne Schwabe" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, June 25, 2004 5:51 PM > Subject: Setting Standby Mode for ATA Disks > > > | Hi, > | > | is there a way to set the standby mo

Re: Code review / Monitoring battery

2004-07-13 Thread Igor Pokrovsky
On Tue, Jul 13, 2004 at 03:51:26PM +0200, Phil Schulz wrote: > Also I'd like to know if anyone knows something similar to this little > tool. I found wmbattery from ports, but it doesn't shut down the > computer. If there isn't such a program, I'd be happy to make this > little thing a port (pr

Re: Multimedia Keyboard (extra keys) on console

2003-06-10 Thread Igor Pokrovsky
On Tue, Jun 10, 2003 at 02:09:28PM +1000, JacobRhoden wrote: > On Sat, 7 Jun 2003 11:50 am, king ferrex wrote: > > no it wont, thats the problem ;) as mr.rachinsky, i need to patch my kernel > > and add the raw scancodes to produce keycodes, will do that later. > > thanks for the help. > > I would

Re: are /etc/ld.so.conf and ld-elf.so.conf still used byldconfig(8) ?

2003-06-27 Thread Igor Pokrovsky
On Fri, Jun 27, 2003 at 03:59:44PM +0200, Marco Molteni wrote: > I gave a quick look at the ldconfig source and it seems to me that > /etc/ld.so.conf and /etc/ld-elf.so.conf are not used anymore. > > During system startup ldconfig is passed the path set by "ldconfig_paths" > in /etc/defaults/rc.co

Re: raw socket programming

2003-07-07 Thread Igor Pokrovsky
On Sun, Jul 06, 2003 at 05:14:38AM +0300, Alin-Adrian Anton wrote: > Well, I don't wanna be idiot, perhaps I am too tired, but n_long appears > in ip.h defined as : > > beast# grep ipt_time /usr/include/netinet/ip.h >union ipt_timestamp { >n_long ipt_time[1]; >

Re: Assembly interrupts and Developers handbook

2003-08-04 Thread Igor Pokrovsky
On Sat, Aug 02, 2003 at 12:50:41PM -0700, pat bey wrote: > First I would like to know where I can buy a copy of the FreeBSD Developer's > Handbook. > Nice to have a handbook that I can hold in my hand. Have you tried http://www.bsdmall.org ? -- Igor

PCI quirk

2003-08-18 Thread Igor Pokrovsky
Hello all, I'd like to add a PCI quirk, which will enable SMBus on boot (it gets disabled by BIOS). What is the best place in kernel to do this? I looked through PCI sources, but haven't found any suitable place for that (not like in USB case). -ip -- Write-Protect Tab, n.: A small stic

Re: PCI quirk

2003-08-18 Thread Igor Pokrovsky
On Mon, Aug 18, 2003 at 03:12:17PM +0100, Bruce M Simpson wrote: > On Mon, Aug 18, 2003 at 02:48:41PM +0200, Igor Pokrovsky wrote: > > Hello all, > > > > I'd like to add a PCI quirk, which will enable SMBus on boot > > (it gets disabled by BIOS). What is the best p

Re: PCI quirk

2003-08-20 Thread Igor Pokrovsky
On Mon, Aug 18, 2003 at 04:18:52PM +0200, Igor Pokrovsky wrote: > On Mon, Aug 18, 2003 at 03:12:17PM +0100, Bruce M Simpson wrote: > > On Mon, Aug 18, 2003 at 02:48:41PM +0200, Igor Pokrovsky wrote: > > > Hello all, > > > > > > I'd like to add a P