Re: building select ports for packaging on install media

2013-02-12 Thread Kurt Lidl
On Tue, Feb 12, 2013 at 04:29:45PM +0100, Wojciech Puchar wrote: > > cdrom. > > > > What I'd like to do is augement that CD-ROM image with several > > binary packages, so I can just install them via 'sysinstall', > > rather than having to maintain a /usr/ports tree on every host > > and compile the

Re: building select ports for packaging on install media

2013-02-12 Thread Wojciech Puchar
cdrom. What I'd like to do is augement that CD-ROM image with several binary packages, so I can just install them via 'sysinstall', rather than having to maintain a /usr/ports tree on every host and compile the same software again and again... why not just use pkg_add?

Re: building select ports for packaging on install media

2013-02-11 Thread Matthias Apitz
El día Monday, February 11, 2013 a las 02:24:32PM -0500, Kurt Lidl escribió: > What I'd like to do is augement that CD-ROM image with several > binary packages, so I can just install them via 'sysinstall', > rather than having to maintain a /usr/ports tree on every host > and compile the same soft

Re: building select ports for packaging on install media

2013-02-11 Thread Chris Rees
Tinderbox will also work fine. (Also, this belongs on ports@) Chris On 11 Feb 2013 19:31, "Alexander Yerenkow" wrote: > Best way is to have poudriere :) > > Regards, Alexander Yerenkow > 11.02.2013 21:24 пользователь "Kurt Lidl" написал: > > > Greetings. > > > > I'm looking for a little guidan

Re: building select ports for packaging on install media

2013-02-11 Thread Alexander Yerenkow
Best way is to have poudriere :) Regards, Alexander Yerenkow 11.02.2013 21:24 пользователь "Kurt Lidl" написал: > Greetings. > > I'm looking for a little guidance in building a small > (one to two dozen) packages for inclusion on a locally > generated install CDROM. > > (I'm doing this on for sp

building select ports for packaging on install media

2013-02-11 Thread Kurt Lidl
Greetings. I'm looking for a little guidance in building a small (one to two dozen) packages for inclusion on a locally generated install CDROM. (I'm doing this on for sparc64 machines, but I don't think that matters tremendously.) I have successfully generated bootable cd-rom media by doing:

Re: NetBSD's boot select MBR

2012-12-16 Thread Ronald F. Guilmette
In message <20121215175447.310...@gmx.com>, "Dieter BSD" wrote: >...Some sysadmins want >the MBR to be read-only for various reasons. Apparently, at least one sizeable company headquartered in Redmond, Washington does too. Can't imagine why. :-) http://www.zdnet.com/linux-foundation-uefi-s

Re: NetBSD's boot select MBR

2012-12-15 Thread Dieter BSD
Domagoj writes: > MBR supports max of 4 slices/partitions. 4 primary partitions, there are the "extended/logical partitions", which allow more. > The '/usr/mdec/mbr_bootsel', which you've mentioned, is equivalent > to FreeBSD's '/boot/boot0', which is tuned via 'boot0cfg' util. > It will also sh

Re: NetBSD's boot select MBR

2012-12-14 Thread rank1seeker
> > > So I use NetBSD's MBR for disks I want > > > to boot from. > > > > Can I have a CMD sequence? > > > > First would be ... > > # fetch ... > > Read NetBSD's fdisk(8) and mbr(8). > > The MBR is only 512 bytes, and must contain the code and data. > This is very limiting, so there are multiple v

NetBSD's boot select MBR

2012-12-13 Thread Dieter BSD
[ from the FreeBSD for serious performance? thread ] > > So I use NetBSD's MBR for disks I want > > to boot from. > > Can I have a CMD sequence? > > First would be ... > # fetch ... Read NetBSD's fdisk(8) and mbr(8). The MBR is only 512 bytes, and must contain the code and data. This is very lim

Re: sleep/select call in a thread doesn't return if system date is changed

2011-11-03 Thread Doug Barton
On 11/02/2011 22:07, Deepak Gupta wrote: > 6.3 release ... is well past EOL. You'd want to run your tests with something more recent ... ideally with 9.0-RC1, or at minimum 8-stable. -- "We could put the whole Internet into a book." "Too practical." Br

RE: sleep/select call in a thread doesn't return if system date is changed

2011-11-03 Thread Deepak Gupta
From: Deepak Gupta Sent: Thursday, November 03, 2011 10:37 AM To: 'freebsd-hackers@freebsd.org.' Subject: sleep/select call in a thread doesn't return if system date is changed I have already checked these two very old messages from 2005 archive http://li

Re: invalid argument in select() when peer socket is in FD_SET

2011-08-02 Thread Peter Jeremy
On 2011-Jul-31 16:20:08 +0200, "Christoph P.U. Kukulies" wrote: > if (array_of_fds[i]) { > nfds = max(nfds, array_of_fds[i]) + 1; I suspect you mean: nfds = max(nfds, array_of_fds[i] + 1); > FD_SET(array_of_fds[i], &readfds); > } -- Pete

Re: invalid argument in select() when peer socket is in FD_SET

2011-07-31 Thread Christoph P.U. Kukulies
sue in FreeBSDs' select(), I'm posting it here as well, hoping to get an experts' answer. I have written a small server to test TCP/IP roundtrip times of the packets in a proprietary protocol and while compiling and running this server on different platforms (Windows 7/cygwin, Ubuntu

Re: invalid argument in select() when peer socket is in FD_SET

2011-07-31 Thread Jilles Tjoelker
On Sun, Jul 31, 2011 at 04:20:08PM +0200, Christoph P.U. Kukulies wrote: > I posted this on freebsd-questions also but maybe the expert density > isn't that high as here in "hackers". > Since I think it may be a design or implementation issue in FreeBSDs' > selec

invalid argument in select() when peer socket is in FD_SET

2011-07-31 Thread Christoph P.U. Kukulies
I posted this on freebsd-questions also but maybe the expert density isn't that high as here in "hackers". Since I think it may be a design or implementation issue in FreeBSDs' select(), I'm posting it here as well, hoping to get an experts' answer. I have written

Re: select/poll for sockets in kernel space

2010-05-25 Thread Julian Elischer
On 5/25/10 5:55 AM, John Baldwin wrote: On Tuesday 25 May 2010 5:02:35 am Dmitry Krivenok wrote: Hello Hackers! I'm developing a module for FreeBSD-8 and encountered the problem with polling sockets. [...] Thanks in advance! P.S. I know about kqueue, but I have to use select/poll is

Re: select/poll for sockets in kernel space

2010-05-25 Thread John Baldwin
ed and takes only one socket (but I have an array of sockets). > > The problem is that the module I'm developing should work on > unmodified FreeBSD-8 kernel. > So I cannot just add new functionality suitable for my task in > kern/sys_generic.c. > I also cannot implement such functio

select/poll for sockets in kernel space

2010-05-25 Thread Dmitry Krivenok
FreeBSD-8 kernel. So I cannot just add new functionality suitable for my task in kern/sys_generic.c. I also cannot implement such functionality in the module itself because select/poll implementation is hidden and only limited number of interfaces is available to the rest of the kernel (which is gen

Re[2]: select

2008-01-04 Thread Metin KAYA
have? > : : >> On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: : >>> : >>> How select(2) will behave if I give the "utimeout" parameter as : >>> NULL? > : : >> According to the man page: > : : >> If timeou

Re: select

2008-01-04 Thread M. Warner Losh
n 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: : >> : >> How select(2) will behave if I give the "utimeout" parameter as : >> NULL? : : > According to the man page: : : > If timeout is not a null pointer, it specifies the maximum interval to : >

Re[2]: select

2008-01-03 Thread Metin KAYA
> Metin KAYA <[EMAIL PROTECTED]> writes: >> Yes Rick, I'm asking this "indefinitely" issue. Is there anything that >> handle this NULL situation a signal, or etc.? How does Linux or >> FreeBSD behave? > Please don't top-post. > Like most o

Re: select

2008-01-03 Thread Garrett Cooper
Garrett Cooper wrote: Metin KAYA wrote: Yes Rick, I'm asking this "indefinitely" issue. Is there anything that handle this NULL situation a signal, or etc.? How does Linux or FreeBSD behave? On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: How

Re: select

2008-01-03 Thread Dan Nelson
In the last episode (Jan 03), Metin KAYA said: > Hi all, > > How select(2) will behave if I give the "utimeout" parameter as > NULL? >From the man page: If timeout is a null pointer, the select blocks indefinitely. http://www.freebsd.org/cgi/man.cgi?quer

Re: select

2008-01-03 Thread Dag-Erling Smørgrav
Metin KAYA <[EMAIL PROTECTED]> writes: > Yes Rick, I'm asking this "indefinitely" issue. Is there anything that > handle this NULL situation a signal, or etc.? How does Linux or > FreeBSD behave? Please don't top-post. Like most other system calls that bloc

Re: select

2008-01-03 Thread Rick C. Petty
On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: > > How select(2) will behave if I give the "utimeout" parameter as > NULL? According to the man page: If timeout is not a null pointer, it specifies the maximum interval to wait for the selection t

Re: select

2008-01-03 Thread Garrett Cooper
Garrett Cooper wrote: Metin KAYA wrote: Yes Rick, I'm asking this "indefinitely" issue. Is there anything that handle this NULL situation a signal, or etc.? How does Linux or FreeBSD behave? On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: How

Re: select

2008-01-03 Thread Garrett Cooper
Metin KAYA wrote: Yes Rick, I'm asking this "indefinitely" issue. Is there anything that handle this NULL situation a signal, or etc.? How does Linux or FreeBSD behave? On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: How select(2) will behav

Re[2]: select

2008-01-03 Thread Metin KAYA
Thank you a lot for your good answer. Please read my other mail. I'm asking a question in man page. > Metin KAYA wrote: >> Hi all, >> >> How select(2) will behave if I give the "utimeout" parameter as >> NULL? >> >> --

Re: select

2008-01-03 Thread Garrett Cooper
Metin KAYA wrote: Hi all, How select(2) will behave if I give the "utimeout" parameter as NULL? -- Metin KAYA EnderUNIX Software Developer Endersys Software Engineer http://www.EnderUNIX.org/metin

Re[2]: select

2008-01-03 Thread Metin KAYA
Yes Rick, I'm asking this "indefinitely" issue. Is there anything that handle this NULL situation a signal, or etc.? How does Linux or FreeBSD behave? > On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: >> >> How select(2) will behave if I gi

select

2008-01-03 Thread Metin KAYA
Hi all, How select(2) will behave if I give the "utimeout" parameter as NULL? -- Metin KAYA EnderUNIX Software Developer Endersys Software Engineer http://www.EnderUNIX.org/metinhttp://www.En

Re: poll()/select()

2005-11-22 Thread John Baldwin
On Tuesday 22 November 2005 04:19 am, Konstantin Prokazoff wrote: > Welcome, > > John, thanks for the answer. I'll test today bus_setup_intr() without > INTR_FAST flag, but how I remember, this cause to system heavy load for > interrupt processing ;( in my case. > My handler uses spin mutex

Re: poll()/select()

2005-11-22 Thread John Baldwin
On Tuesday 22 November 2005 05:12 am, Konstantin Prokazoff wrote: > Now, have checking non-FAST handler. Have some interest moments, such as > error codes, like: > Short write: 0/15 (Programming error) > Write to 137 (fdno) failed: Programming error > Maybe server becomes overloaded? (4xE1, Xeon 3G

Re: poll()/select()

2005-11-22 Thread Konstantin Prokazoff
c: "Konstantin Prokazoff" <[EMAIL PROTECTED]> Sent: Monday, November 21, 2005 5:38 PM Subject: Re: poll()/select() > On Monday 21 November 2005 08:14 am, Konstantin Prokazoff wrote: > > Thanks for comment, > > > > I think, after kernel inspection, problem (ma

Re: poll()/select()

2005-11-22 Thread Konstantin Prokazoff
ED]> Sent: Monday, November 21, 2005 5:38 PM Subject: Re: poll()/select() > On Monday 21 November 2005 08:14 am, Konstantin Prokazoff wrote: > > Thanks for comment, > > > > I think, after kernel inspection, problem (maybe) in preemption. While > > syscall to poll or

Re: poll()/select()

2005-11-21 Thread John Baldwin
On Monday 21 November 2005 08:14 am, Konstantin Prokazoff wrote: > Thanks for comment, > > I think, after kernel inspection, problem (maybe) in preemption. While > syscall to poll or select holds sellock, and if another thread (process) > tries to syscall or we have taken i

Re: poll()/select()

2005-11-21 Thread Konstantin Prokazoff
Thanks for comment, I think, after kernel inspection, problem (maybe) in preemption. While syscall to poll or select holds sellock, and if another thread (process) tries to syscall or we have taken interrupt (where handler use selrecord/selwakeup too), kernel will deadlock. I have this

Re: poll()/select()

2005-11-21 Thread ray
At 10:29 AM 11/21/2005 +0200, Konstantin Prokazoff wrote: | Welcome everybody, | | have a strange issue under 5.x/6.x (checked). | When using a poll()/select() mechanism, which in kernel based on | selrecord/selwakeup (pollscan, kern_select) functions, we have deadlock on | sellock mutex

poll()/select()

2005-11-21 Thread Konstantin Prokazoff
Welcome everybody, have a strange issue under 5.x/6.x (checked). When using a poll()/select() mechanism, which in kernel based on selrecord/selwakeup (pollscan, kern_select) functions, we have deadlock on sellock mutex on heavy load (recursive lock on non-recursive mutex). Have anyone

Re: select(2) timeout precision

2005-11-02 Thread Viktor Vasilev
On Wed, Nov 02, 2005 at 01:31:39AM -0600, Mike Silbersack wrote: > > On Tue, 1 Nov 2005, Viktor Vasilev wrote: > > >With FreeBSD 5.4-RELEASE I almost constantly get ~2 microseconds > >delta. That is with 100HZ kernel on PIII 500MHz or Sempron 64 2800+ > > Put kern.hz=1000 in /boot/loader.con

Re: select(2) timeout precision

2005-11-01 Thread Mike Silbersack
On Tue, 1 Nov 2005, Viktor Vasilev wrote: With FreeBSD 5.4-RELEASE I almost constantly get ~2 microseconds delta. That is with 100HZ kernel on PIII 500MHz or Sempron 64 2800+ Put kern.hz=1000 in /boot/loader.conf to kick it up to 1000Hz, that should improve the accuracy a lot. The opti

Re: select(2) timeout precision

2005-11-01 Thread Mihail Balikov
http://www.dragonflybsd.org/docs/nanosleep/ - Original Message - From: "Viktor Vasilev" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 02, 2005 12:42 AM Subject: select(2) timeout precision > Hello fellow hackers, > > I'm writing a piece of code, tha

select(2) timeout precision

2005-11-01 Thread Viktor Vasilev
Hello fellow hackers, I'm writing a piece of code, that basically does the following in a thread: tick.tv_sec = 0; tick.tv_usec = 1; gettimeofday(&t1, NULL); select(0, NULL, NULL, NULL, &tick); gettimeofday(&t2, NULL); With FreeBSD 5.4-RELEASE I almost cons

Re: Pseudo-device driver & select ??

2005-05-29 Thread Pete Heerboth
all, I am trying to implement a small kld pseudo-device driver on FreeBSD 5.3 that behaves just like a socket with regards to the select system call. Currently, I am using the sample echo pseudo-device driver from http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/ driverbasics

Re: Pseudo-device driver & select ??

2005-05-26 Thread Aziz Kezzou
> > > > Aziz Kezzou wrote: > > > Hi all, > > > I am trying to implement a small kld pseudo-device driver on FreeBSD 5.3 > > > that > > > behaves just like a socket with regards to the select system call. > > > > > > Currentl

Re: Pseudo-device driver & select ??

2005-05-26 Thread Aziz Kezzou
> > Aziz Kezzou wrote: > > Hi all, > > I am trying to implement a small kld pseudo-device driver on FreeBSD 5.3 > > that > > behaves just like a socket with regards to the select system call. > > > > Currently, I am using the sample echo pseudo-device

Pseudo-device driver & select ??

2005-05-26 Thread Aziz Kezzou
Hi all, I am trying to implement a small kld pseudo-device driver on FreeBSD 5.3 that behaves just like a socket with regards to the select system call. Currently, I am using the sample echo pseudo-device driver from http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics

Re: poll or select for ppi?

2005-03-15 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Matt Kory <[EMAIL PROTECTED]> writes: : Is it possible to use poll or select to detect a change in the status : bits of the parallel port? I tried something like this, and took bits : 5 and 6 of the status register low and nothing seemed to

Re: poll or select for ppi?

2005-03-14 Thread Bruce M Simpson
On Mon, Mar 14, 2005 at 10:05:34PM -0500, Matt Kory wrote: > Is it possible to use poll or select to detect a change in the status > bits of the parallel port? I tried something like this, and took bits > 5 and 6 of the status register low and nothing seemed to happen. Is > what I

Re: poll or select for ppi?

2005-03-14 Thread Daniel O'Connor
On Tue, 15 Mar 2005 13:35, Matt Kory wrote: > Is it possible to use poll or select to detect a change in the status > bits of the parallel port? I tried something like this, and took bits > 5 and 6 of the status register low and nothing seemed to happen. Is > what I am trying to do e

poll or select for ppi?

2005-03-14 Thread Matt Kory
Is it possible to use poll or select to detect a change in the status bits of the parallel port? I tried something like this, and took bits 5 and 6 of the status register low and nothing seemed to happen. Is what I am trying to do even possible, or I am supposed to take a certain bit low to

Re: "sleep" "select" system call not work correctly when linkingwith multithread libray--FreeBSD 4.5

2005-02-24 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "River" <[EMAIL PROTECTED]> writes: : Many thanks for your reply. Did the lastest FreeBSD fix this bug? : And which version? I believe that 5 fixes this bug, or at least mostly fixes things (since there's at least one pthread API that uses absolute time

Re: Re: "sleep" "select" system call not work correctly when linkingwith multithread libray--FreeBSD 4.5

2005-02-24 Thread River
Many thanks for your reply. Did the lastest FreeBSD fix this bug? And which version? Because our OS is based on FreeBSD 4.5 and can not port to other FreeBSD easily, Any method to fix it in 4.5? Thanks. ___ freebsd-hackers@freebsd.org mailing list

Re: "sleep" "select" system call not work correctly when linking with multithread libray--FreeBSD 4.5

2005-02-24 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "River" <[EMAIL PROTECTED]> writes: : This is select testing program-- When time is set backward,the : program linked with "-pthread" option did not continue printing : anything. But using the program linked with stan

"sleep" "select" system call not work correctly when linking with multithread libray--FreeBSD 4.5

2005-02-23 Thread River
Does anyone know why "sleep" "select" can not work correctly in FreeBSD 4.5 when the system time is set backward for a long time,i.e several hours. The behavior is: sleep or select will be blocked for a long time much longer than expected. Through testing, we found that th

Re: ssh & select() problem on 5.3

2004-11-30 Thread Claudiu Dragalia-Paraipan
Just for the record, the problem is solved. It was indeed a misconfiguration at the next hop, at the provider. Thank you. With respect, -- Claudiu Dragalina-Paraipan [EMAIL PROTECTED] signature.asc Description: OpenPGP digital signature

Re: ssh & select() problem on 5.3

2004-11-29 Thread Claudiu Dragalia-Paraipan
Peter Jeremy wrote: On Sun, 2004-Nov-28 18:43:47 +0200, Claudiu Dragalia-Paraipan wrote: Since the problem occurs only when I connect to the firewall or to a server behind it, I started to suspect a hardware failure. Could a network card cause such problems ? A couple of people have mentioned pa

Re: ssh & select() problem on 5.3

2004-11-29 Thread Claudiu Dragalia-Paraipan
Andre Oppermann wrote: Peter Jeremy wrote: On Sun, 2004-Nov-28 18:43:47 +0200, Claudiu Dragalia-Paraipan wrote: Since the problem occurs only when I connect to the firewall or to a server behind it, I started to suspect a hardware failure. Could a network card cause such problems ? A couple of p

Re: ssh & select() problem on 5.3

2004-11-29 Thread Andre Oppermann
Peter Jeremy wrote: On Sun, 2004-Nov-28 18:43:47 +0200, Claudiu Dragalia-Paraipan wrote: Since the problem occurs only when I connect to the firewall or to a server behind it, I started to suspect a hardware failure. Could a network card cause such problems ? A couple of people have mentioned pat

Re: ssh & select() problem on 5.3

2004-11-29 Thread Peter Jeremy
On Sun, 2004-Nov-28 18:43:47 +0200, Claudiu Dragalia-Paraipan wrote: >Since the problem occurs only when I connect to the firewall or to a >server behind it, I started to suspect a hardware failure. Could a >network card cause such problems ? A couple of people have mentioned path-MTU problems.

Re: ssh & select() problem on 5.3

2004-11-29 Thread Barney Wolff
On Sun, Nov 28, 2004 at 06:43:47PM +0200, Claudiu Dragalia-Paraipan wrote: > > Since the problem occurs only when I connect to the firewall or to a > server behind it, I started to suspect a hardware failure. Could a > network card cause such problems ? > The firewall is running on FreeBSD 5.2.1

Re: ssh & select() problem on 5.3

2004-11-28 Thread David Malone
On Sun, Nov 28, 2004 at 08:30:03PM +0200, Alin-Adrian Anton wrote: > A tcpdump shows that what actually happens is that packets won't reach > me in spite of the fact that his firewall(router)'s tcpdump shows that > he keeps sending them to me. Packets never reach me, but I am still able > to send t

Re: ssh & select() problem on 5.3

2004-11-28 Thread Alin-Adrian Anton
Hi, Barney Wolff wrote: Perhaps an MTU problem, with the ICMP "fragmentation needed but DF set" being blocked by the firewall? It would only show up when the server has enough to send to fill a packet. I'm the friend he was talking about. The very same thing happens when the firewall is disabled.

Re: ssh & select() problem on 5.3

2004-11-28 Thread Claudiu Dragalia-Paraipan
timing issue. I tried debug.mpsafenet=0. No change. (2) select() is almost always used to wait for space in a buffer to write, or wait for data in a buffer to read. Using a combination of netstat(1) and sockstat(1), it would be useful to know whether there is in fact data in either t

ssh & select() problem on 5.3

2004-11-27 Thread Claudiu Dragalia-Paraipan
Hello, since I have upgraded to FreeBSD 5.3 I have the following problem with SSH client: I log on several FreeBSD 5.2.1 machines, and when I start a command that gives a 'large' result (like dmesg, cat a file), ssh client locks. I ran ssh in gdb, and found out that it locks in s

Re: select, sendto and ENOBUFS

2004-02-11 Thread Andre Oppermann
Mike Silbersack wrote: On Tue, 10 Feb 2004, Andrew wrote: The conclusion being that send, sendto and select will never block on a UDP socket and the man page just doesn't make it too clear. I'm assuming it is the same for raw sockets. UNPv1 section 6.3 seems to say that select shoul

Re: select, sendto and ENOBUFS

2004-02-11 Thread Mike Silbersack
On Tue, 10 Feb 2004, Andrew wrote: > The conclusion being that send, sendto and select will never block on a > UDP socket and the man page just doesn't make it too clear. I'm assuming > it is the same for raw sockets. > > UNPv1 section 6.3 seems to say that select sho

Re: select, sendto and ENOBUFS

2004-02-10 Thread Julian Elischer
On Tue, 10 Feb 2004, Andrew wrote: > Hi, > > I have a problem with sendto returning an error and setting errno to > ENOBUFS however I am calling select first to make sure the fd is > writeable (see below for code). s is a raw socket and the data I'm > sending is 1492 b

Re: select, sendto and ENOBUFS

2004-02-10 Thread Andrew
On Tue, 10 Feb 2004, Andrew wrote: > I have a problem with sendto returning an error and setting errno to > ENOBUFS however I am calling select first to make sure the fd is > writeable (see below for code). s is a raw socket and the data I'm I see something similar has actually

select, sendto and ENOBUFS

2004-02-10 Thread Andrew
Hi, I have a problem with sendto returning an error and setting errno to ENOBUFS however I am calling select first to make sure the fd is writeable (see below for code). s is a raw socket and the data I'm sending is 1492 bytes. I haven't changed the low water mark for the socket. This

Re: select() in 5.X

2003-12-26 Thread Ryan Sommers
On Fri, 2003-12-26 at 16:39, Yaoping Ruan wrote: > Not sure if somebody here has already noticed this problem before. I > have a small program using select() . Though it works correctly on 4.x, > some problem happens on 5.1. First of all, I notice that macros about > FD_xx have been mo

select() in 5.X

2003-12-26 Thread Yaoping Ruan
Not sure if somebody here has already noticed this problem before. I have a small program using select() . Though it works correctly on 4.x, some problem happens on 5.1. First of all, I notice that macros about FD_xx have been moved into sys/select.h. Then FD_ZERO() seems to be failed. My program

Re: if bpf fd's select()able?

2003-09-08 Thread Guy Harris
However, my tests show that select()ing bpf fd does not lead to trigger packets available to bpf filter; the process hangs in select state while parallel tcpdump process shows packets desired *and* is in bpf state. See PR kern/22063 "bpf when used with the select system call with ti

Re: if bpf fd's select()able?

2003-09-08 Thread Dmitry Morozovsky
On Mon, 8 Sep 2003, Lev Walkin wrote: LW> > However, I found a (really stupid, yeah) bug: the first parameter of select() LW> > in this test case should be fd+1, not 1 ;-) LW> LW> Unfortunately, this could not possibly be the case, if your system's LW> documentation i

Re: if bpf fd's select()able?

2003-09-08 Thread Lev Walkin
t;yes" variable holds the truth value? Yes. Just attaching file from wrong directory. However, I found a (really stupid, yeah) bug: the first parameter of select() in this test case should be fd+1, not 1 ;-) Unfortunately, this could not possibly be the case, if your system's documenta

Re: if bpf fd's select()able?

2003-09-08 Thread Dmitry Morozovsky
truth value? Yes. Just attaching file from wrong directory. However, I found a (really stupid, yeah) bug: the first parameter of select() in this test case should be fd+1, not 1 ;-) Thanks for the fresh look ;-) Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN]

Re: if bpf fd's select()able?

2003-09-08 Thread Lev Walkin
LW> > interfaces emitting ARP requests and filters listening to ARP replies; the most LW> > natural way to multiplex them for me is select(). LW> > LW> > However, my tests show that select()ing bpf fd does not lead to trigger packets LW> > available to bpf filter; the process

Re: if bpf fd's select()able?

2003-09-08 Thread Dmitry Morozovsky
e effective arp scanner for multi-interface router (esp. PP> > >multi-vlan); I plan to use multiple bpf devices attached to different PP> > >interfaces emitting ARP requests and filters listening to ARP replies; the PP> > >most PP> > >natural way to multiplex them

Re: if bpf fd's select()able?

2003-09-08 Thread Dmitry Morozovsky
ARP requests and filters listening to ARP replies; the most LW> > natural way to multiplex them for me is select(). LW> > LW> > However, my tests show that select()ing bpf fd does not lead to trigger packets LW> > available to bpf filter; the process hangs in select state whil

Re: if bpf fd's select()able?

2003-09-08 Thread Peter Pentchev
e multiple bpf devices attached to different > >interfaces emitting ARP requests and filters listening to ARP replies; the > >most > >natural way to multiplex them for me is select(). > > > >However, my tests show that select()ing bpf fd does not lead to trigger >

Re: if bpf fd's select()able?

2003-09-07 Thread Lev Walkin
most natural way to multiplex them for me is select(). However, my tests show that select()ing bpf fd does not lead to trigger packets available to bpf filter; the process hangs in select state while parallel tcpdump process shows packets desired *and* is in bpf state. Am I missing something

if bpf fd's select()able?

2003-09-07 Thread Dmitry Morozovsky
iplex them for me is select(). However, my tests show that select()ing bpf fd does not lead to trigger packets available to bpf filter; the process hangs in select state while parallel tcpdump process shows packets desired *and* is in bpf state. Am I missing something "base"? Referenc

Re: USB, select/poll for ucom

2003-07-05 Thread Shunsuke Akiyama
Hi, At Fri, 04 Jul 2003 22:17:50 +0900 (JST), M. Warner Losh wrote: > Hello akiyama-san. It is Warner. Long time since I've spoken with > you. :-) :-) > In message: <[EMAIL PROTECTED]> > Shunsuke Akiyama <[EMAIL PROTECTED]> writes: > : + s = spltty(); > : + > ... > : - > : - s

Re: USB, select/poll for ucom

2003-07-04 Thread M. Warner Losh
Hello akiyama-san. It is Warner. Long time since I've spoken with you. :-) In message: <[EMAIL PROTECTED]> Shunsuke Akiyama <[EMAIL PROTECTED]> writes: : + s = spltty(); : + ... : - : - s = spltty(); This is a no-op in current. Have you tested it in 4.x? I think it is righ

Re: USB, select/poll for ucom

2003-07-03 Thread Shunsuke Akiyama
At Wed, 02 Jul 2003 10:29:51 +0300, Danny Braniss wrote: > > for the record: > I can now confirm that select/poll/FIONREAD do work with the > usb/ucom/uplcom! > > what seems to be broken is the call to 'tcflush(fd, TCIFLUSH)' > this works fine with /dev/cuaa

Re: USB, select/poll for ucom

2003-07-02 Thread Danny Braniss
for the record: I can now confirm that select/poll/FIONREAD do work with the usb/ucom/uplcom! what seems to be broken is the call to 'tcflush(fd, TCIFLUSH)' this works fine with /dev/cuaa0 but not with /dev/ucom0 thanks all,

Re: USB, select/poll for ucom

2003-06-28 Thread Bernd Walter
On Sat, Jun 28, 2003 at 12:37:10PM +0300, Danny Braniss wrote: > [...] > > have fun. the mindshare book is good. however, it took me a long > > time to get a usb 'aha' moment and understand its twisty maze was > > really a workable design obscured by standardese... I suspect it is a > > problem

Re: USB, select/poll for ucom

2003-06-28 Thread Danny Braniss
[...] > have fun. the mindshare book is good. however, it took me a long > time to get a usb 'aha' moment and understand its twisty maze was > really a workable design obscured by standardese... I suspect it is a > problem in the usb chipset driver for the com part. ttypoll just says > 'you hav

Re: USB, select/poll for ucom

2003-06-27 Thread Danny Braniss
d onto the bulk in pipe. This read fires a callback when > it is 'finished' which the processes the data. So I think that maybe > that transfer is never completing. > > Warner some more reading, and it seems that indeed open fires up a startread, so that select should

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
On Wed, Jun 25, 2003 at 02:58:28PM -0400, Louis A. Mamakos wrote: > I think the problem is that the USB hardware doesn't try to read data > from the peripheral until the user-mode code does a read(2) system > call. I had this problem with the ugen device. I would guess that > the ucom/umodem devi

Re: USB, select/poll for ucom

2003-06-25 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Louis A. Mamakos" <[EMAIL PROTECTED]> writes: : I think the problem is that the USB hardware doesn't try to read data : from the peripheral until the user-mode code does a read(2) system : call. I had this problem with the ugen device. I would guess th

Re: USB, select/poll for ucom

2003-06-25 Thread Louis A. Mamakos
> In message: <[EMAIL PROTECTED]> > Danny Braniss <[EMAIL PROTECTED]> writes: > : > : > I'm able to use ppp with umodem/ucom. My brother uses ulpcom/ucom for > : > his ppp needs. I'm pretty sure that select is involved. :-) > : > &

Re: USB, select/poll for ucom

2003-06-25 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Danny Braniss <[EMAIL PROTECTED]> writes: : : > I'm able to use ppp with umodem/ucom. My brother uses ulpcom/ucom for : > his ppp needs. I'm pretty sure that select is involved. :-) : > : > >From what I can see

Re: USB, select/poll for ucom

2003-06-25 Thread Danny Braniss
> I'm able to use ppp with umodem/ucom. My brother uses ulpcom/ucom for > his ppp needs. I'm pretty sure that select is involved. :-) > > >From what I can see in the code, I'd expect that it would work because > the ttypoll routine is specified for the pol

Re: USB, select/poll for ucom

2003-06-25 Thread M. Warner Losh
: while trying to port an application that works with tty to uplcom/ucom, : (and it doesn't work :-), and looking at the kernel sources and : trying to figure out USB, i think that select(2)/poll(2) will not work, : correct? I'm able to use ppp with umodem/ucom. My brother u

Re: USB, select/poll for ucom

2003-06-25 Thread Danny Braniss
[...] > > i turned debug on and i could not see any calls to ucomread, > > the program calls select(...) - but select does not initiate anything, > > it justs waits to be woken when something is received (in the case of reading), > > now, unless im wrong - which well could

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
and looking at the kernel sources and > > > trying to figure out USB, i think that select(2)/poll(2) will not work, > > > correct? > > > > I've seen Problemes with non 8n1 communications and I've also seen > > problems because most USB adapters only deliver

Re: USB, select/poll for ucom

2003-06-25 Thread Danny Braniss
> On Wed, Jun 25, 2003 at 01:13:56PM +0300, Danny Braniss wrote: > > hi, > > while trying to port an application that works with tty to uplcom/ucom, > > (and it doesn't work :-), and looking at the kernel sources and > > trying to figure out USB, i think that

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
On Wed, Jun 25, 2003 at 01:13:56PM +0300, Danny Braniss wrote: > hi, > while trying to port an application that works with tty to uplcom/ucom, > (and it doesn't work :-), and looking at the kernel sources and > trying to figure out USB, i think that select(2)/poll(2) will no

  1   2   3   >