Re: [PATCH]: today highlighting in [n]cal

2009-04-20 Thread Simon 'corecode' Schubert
Hey Roman, Roman Divacky wrote: I made this patch that highlights today in cal/ncal just like gnu cal does.. www.vlakno.cz/~rdivacky/cal.patch Thanks for this patch, I've been meaning to hack one up properly, but never got to it. They problems I was facing seem to exist also with

Re: [PATCH]: today highlighting in [n]cal

2009-04-20 Thread Simon 'corecode' Schubert
Roman Divacky wrote: On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wrote: Hey Roman, Roman Divacky wrote: I made this patch that highlights today in cal/ncal just like gnu cal does.. www.vlakno.cz/~rdivacky/cal.patch Thanks for this patch, I've been meaning

Re: Jail with a back door interface?

2007-11-27 Thread Simon 'corecode' Schubert
Xin LI wrote: Steven Hartland wrote: Is it possible to create a jail with more than one IP? Looking around this doesn't seem possible but is it? FreeBSD does not support multiple IP nor IPv6 on jails at this moment, unfortunately... AFAIK there exists a patch by pjd@ If not, somebody could

Re: questions on development(7)

2007-11-14 Thread Simon 'corecode' Schubert
[cc cleaned, dropped -current] Giorgos Keramidas wrote: I'm only tracking 'HEAD' most of the time, but there are some efforts underway to convert the history of src/. One notable example is the effort to convert to Subversion first, and then use the tags/branches and changesets of Subversion

Re: questions on development(7)

2007-11-14 Thread Simon 'corecode' Schubert
OutbackDingo wrote: I suppose you know about fromcvs. I also guess you know that I suggest using git instead of hg. Doesn't produce nasty large index files either :) So would you think cvs - git - hg might be easier to accomplish ?? Since one of my goals is to update projects Ive done based

Re: questions on development(7)

2007-11-14 Thread Simon 'corecode' Schubert
Giorgos Keramidas wrote: I'm only tracking 'HEAD' most of the time, but there are some efforts underway to convert the history of src/. One notable example is the effort to convert to Subversion first, and then use the tags/branches and changesets of Subversion to populate an Hg tree. That

Re: Useful tools missing from /rescue

2007-09-02 Thread Simon 'corecode' Schubert
Tim Kientzle wrote: I atttempted to fit 'vi' in there, but curses is rather finicky; 'sed' would be more useful. Mined is a nice editor for this, running without curses. A statically linked, stripped binary is about 100k in size, so if crunched it would have a very small impact. cheers

Re: modify syscall nr on-the-fly

2007-08-23 Thread Simon 'corecode' Schubert
Ivan Voras wrote: You might also want to look into porting the vkernel stuff from DragonFly. It shouldn't be very much work to do. Don't expect great performance though, it's mostly still a development tool. I know of it, but does it run Linux? :) No, but I've heard about people wondering

Re: modify syscall nr on-the-fly

2007-08-22 Thread Simon 'corecode' Schubert
Ivan Voras wrote: This is very interesting. Do you have a web page with progress status, blog or something similar to track your work? I'm interested in testing this when it's ready (in absence of Xen, this could be the next best thing). You might also want to look into porting the vkernel

Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?

2007-08-15 Thread Simon 'corecode' Schubert
Dag-Erling Smørgrav wrote: Sven Hazejager [EMAIL PROTECTED] writes: No, camcontrol does not support this over USB. Windows XP demonstrates it is technically possible, and I do not believe it is fully safe to disconnect the drive (even when unmounted), as the drive then is not able to park its

Re: Is it possible to use IPv4 and IPv6 in a same jail?

2007-07-31 Thread Simon 'corecode' Schubert
Bjoern A. Zeeb wrote: Is it possible to use IPv4 and IPv6 in a same jail? Or do I have to write a listening daemon that acts as a proxy that runs in the host? jails do not (yet) support IPv6. I hope to be working on that again by the end of the week. Did you look at the DragonFly support

Re: cvs: how to put vendor-deleted file into Attic?

2007-07-26 Thread Simon 'corecode' Schubert
Xin LI wrote: While maintaining some third party contributed software packages I ran into a problem where, say, if I remove a file from the vendor branch (the file was never dragged off the vendor branch), it does not appear in Attic. But it appears as deleted? That's interesting then. How

Re: How do I daemonize a process?

2007-07-23 Thread Simon 'corecode' Schubert
Garrett Cooper wrote: Garrett Cooper wrote: As the subject suggests I'm trying to determine how I can daemonize a C process, outside of using the rc infrastructure, so that it won't exit when the TTY exists. Does anyone know any quick references or examples? Thanks, -Garrett s/C

Re: dlsym() on implicit loaded symbols

2006-07-16 Thread Simon 'corecode' Schubert
Roland Dittel wrote: We have a issue with dlsym() on symbols imported by a library that was loaded with dlopen(). Our code loads the libssl with dlopen() and then do a dlsym() on several symbols. This works for all symbols exported by libssl itself but fails for symbols exported by libcrypto.

Re: dlsym() on implicit loaded symbols

2006-07-15 Thread Simon 'corecode' Schubert
Roland Dittel wrote: Hi all, We have a issue with dlsym() on symbols imported by a library that was loaded with dlopen(). Our code loads the libssl with dlopen() and then do a dlsym() on several symbols. This works for all symbols exported by libssl itself but fails for symbols exported by

Re: fork inside ip_input

2006-07-14 Thread Simon 'corecode' Schubert
Mykola Stryebkov wrote: Hi all. Have a strange question: is it possible to create new process (using fork or fork1) from inside of ip_input()? i don't think so. In kernel sources i found example of using fork1 in init_main.c but looking into ip_input.c i do not understand where i can get

Re: Named requests filling up T1

2006-01-17 Thread Simon 'corecode' Schubert
Steve Suhre wrote: Thanks, I think that's what I was looking for. I expect the ISP is in another country somewhere and would be hard to reach, if they could be reached at all. And it's probably a bad reference somewhere to the server here, so shutting of recursive queries could help... If I

Re: silly gcc bug in RELENG_6

2005-11-02 Thread Simon 'corecode' Schubert
Brian Buchanan wrote: test.c: In function `foobar': test.c:6: error: invalid application of `sizeof' to incomplete type `test.c' Looks like someone goofed up some printf() args. yah, but it's in the gcc code itself, no FreeBSD modification. cheers simon -- Serve - BSD +++

Re: nvi for serious hacking

2005-10-24 Thread Simon 'corecode' Schubert
Matthew D. Fuller wrote: Most favourite example: I personally still get mad if it comes to the u undo key. I miss :N. You have to :split and then :n separately. Do you mean :sn? cheers simon -- Serve - BSD +++ RENT this banner advert +++ASCII Ribbon /\ Work - Mac +++

Re: in_cksum() for ip packets with multiple mbufs

2005-10-24 Thread Simon 'corecode' Schubert
kamal kc wrote: - final thing does this makes any difference (calling the htons() twice): ip-ip_id=htons(ip-ip_id); ip-ip_id=htons(ip-ip_id); on little endian machines: yes. on big endian machines: no. So don't do it. :) freebsd has several fields of the ip headerin

Re: IOCTL :Facing problems while acccessing data from kernel space

2005-09-28 Thread Simon 'corecode' Schubert
rashmi ns wrote: #define HDLCMODE _IOR('6',0xF,int) when i trying to uprintf the data which was sent from the user-space in the device-driver-ioctl-routine i'll get a different value than which was passed. Can anybody please tell me why this is happening . I pass the address of an integer where

Re: syscons and SC_NO_CUTPASTE issue

2005-09-11 Thread Simon 'corecode' Schubert
On 08.09.2005, at 11:25, Mike Adewole wrote: I propose that: (d) the next release of the generic kernel should be compiled with SC_NO_CUTPASTE why? I find cut+paste really useful per default. besides, can't this be controlled with a sysctl? cheers simon -- Serve - BSD +++ RENT this

Re: how to handling read only cvs trees

2005-09-11 Thread Simon 'corecode' Schubert
On 07.09.2005, at 15:32, Gordon Bergling wrote: Has anyone a hint on how to handle this situation? you might want to look at development(7). Not sure if this is being used by many people though. cheers simon -- Serve - BSD +++ RENT this banner advert +++ASCII Ribbon /\ Work

Re: help w/panic under heavy load - 5.4

2005-07-24 Thread Simon 'corecode' Schubert
On 24.07.2005, at 16:19, Edwin wrote: (kgdb) f 13 #13 0xc068f6e9 in ip_fastforward (m=0xc12e2300) at /usr/src/sys/netinet/ip_fastfwd.c:572 (kgdb) i loc ip = (struct ip *) 0xc12f000e m0 = (struct mbuf *) 0xc12f000e ro = {ro_rt = 0xc11ee420, ro_dst = {sa_len = 16 '\020', sa_family = 2 '\002',

Re: Bootstrapping install from GRUB

2005-07-15 Thread Simon 'corecode' Schubert
Ryan Nowakowski wrote: I'd like to bootstrap a FreeBSD 5.4 install from GRUB or another harddrive-based bootloader without using PXEboot. Problem: GRUB will boot the FreeBSD loader, however I can't get the loader to read a kernel from any of my existing partitions(ext2, reiserfs, fat16). I

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread Simon 'corecode' Schubert
Lately Mario Lobo [EMAIL PROTECTED] said: The problem lies with the fact that, there is a router between my rl0 and the internet. 1) rl0 --- router -- antenna -- ISPx -- internet So the fact that i can ping the hop next to rl0 doesn´t mean the link is up :(.

cvs crosscheck up again

2005-07-10 Thread Simon 'corecode' Schubert
hey hackers, just wanted to drop a quick note that the cvscrosscheck which existed at the beginning of the year is now up again. it still needs some tweaks, but I consider it almost there where I want it to be. http://oly.corecode.ath.cx/~corecode/cgi-bin/crosscgi.py with the help of

Re: linking libjava.so RPATH problem

2005-07-07 Thread Simon 'corecode' Schubert
Lately Vasil Dimov [EMAIL PROTECTED] said: 1) Does the fact that the linker does not realize that the libraries have already been found indicate a bug in the linker? If so, how do I best report it? I cannot think of any sensible reason for this behavior, so I guess it would be good if it

Re: hot path optimizations in uma_zalloc() uma_zfree()

2005-07-04 Thread Simon 'corecode' Schubert
Lately Nikos Ntarmos [EMAIL PROTECTED] said: Ummm... What compiler version are you use? The pointer variant produces faster code for me on both NetBSD/alpha (gcc 3.3.3) and Linux/x86 (gcc 3.3.5), using both -O0 and -O2 (other compiler flags also tested with similar results). Perhaps something

Re: Kernel mode programming -precisions

2005-01-18 Thread Simon 'corecode' Schubert
On Tuesday, 18. January 2005 20:54, Street Chaman wrote: Actually, my soft is a kind of interactive filter: it takes a lot of imput parameters (from keyboard at the moment, but as soon as i've understood how it works, i will increase the number of supported io devices); treats it in a

Re: gdb not finding shared libraries for emulated binaries

2004-12-21 Thread Simon 'corecode' Schubert
On Tuesday, 21. December 2004 17:52, Steven Hartland wrote: Is there a way or a patch to make gdb search the relevant compat directories when debugging a emulated binary. As it stands I have to symlink all the libs from /compat/linux/lib which is really messy. you should be using an emulated

Re: nfs within jail

2004-12-13 Thread Simon 'corecode' Schubert
On 14.12.2004, at 13:09, Matt wrote: Quick question regarding nfs (or other filesystems) inside a jail. As far as I can tell, it isn't possible to mount nfs shares while inside a jail. Is this correct? Is there any way around this limitation? A way to browse network shares without mounting?

Re: HD Mirroring

2004-11-24 Thread Simon 'corecode' Schubert
On Wednesday, 24. November 2004 22:31, Charles Sprickman wrote: On Wed, 24 Nov 2004, Brian Reichert wrote: And, although I've not tested it, recent versions of MySQL can outright support a cluster: http://dev.mysql.com/doc/mysql/en/NDBCluster.html I'm just curious if there's any other

Re: read/write less than sector size

2004-11-10 Thread Simon 'corecode' Schubert
On 10.11.2004, at 16:36, Nehal wrote: if i open /dev/ad1s1 for example, i try to read() or write() not in multiples of 512, it will return an error. how would i do this? currently, if i need to read 100 bytes, i read in the full sector, then memcpy the bytes i need. is there a better way? maybe

Re: cvs commit: src/sys/boot/i386/boot2 boot2.c

2004-09-19 Thread Simon 'corecode' Schubert
On 19.09.2004, at 00:08, Poul-Henning Kamp wrote: Err, I don't see how it could. This only affects how boot2 handles addresses in the executables it loads, it doesn't affect how the kernel manages memory at all. We're seeing isa-dma bounce buffers getting hard to get hold of these days. Is

Re: Dummynet pipes and MRTG

2003-12-19 Thread Simon 'corecode' Schubert
Lately Vlad Galu told: Take a look at RRDTool. There also is a Perl module for drawing RRD graphics, which you could use for fancier stuff. However, some simple shellscripting should do your job. http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ a nice frontend for rrdtool is

Re: Prebinding for DragonFly/FreeBSD-4

2003-09-14 Thread Simon 'corecode' Schubert
Lately Matthew N. Dodd told: Prebinding on a per executable basis rather than a per object (ELF executable or library) means that when you go to prebind KDE (for example) you run /var out of diskspace :/ Yes, that might be true. How about this approach: (doesn't cope with cyclic ``needs''

Prebinding for DragonFly/FreeBSD-4

2003-09-12 Thread Simon 'corecode' Schubert
I created patch for DragonFly/FreeBSD-4 for prebinding, based on mdodd@'s patch for FreeBSD-5. The main difference (apart from the target platform) is that the linker needn't be patched. Rtld now uses a hash function to get an unique ID for every ELF object. This has been tested under DragonFly,

Re: Prebinding for DragonFly/FreeBSD-4

2003-09-12 Thread Simon 'corecode' Schubert
No-brainer. Get the patch from here: http://chlamydia.fs.ei.tum.de/~corecode/prebind.diff -- /\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News pgp0.pgp Description: PGP signature

Re: FreeBSD Port: portupgrade-20021216

2003-01-23 Thread Simon 'corecode' Schubert
Lately Peter Pentchev told: Attached is a patch to the libexec/ftpd source, which adds a new -P option taking an argument of either a numeric port number or a service name as described in the getaddrinfo(3) manual page. What do people think about adding this functionality? looks good

Re: BSD API

2002-07-24 Thread Simon 'corecode' Schubert
On Wed, 24 Jul 2002 14:22:28 +0600 Sulaiman Khan wrote: The sockets for my software are based on the BSD Sockets API. I want to make them fully compatiable with the BSD Sockets. For that I require a complete listing of the BSD Sockets function prototypes. can you guide me where i can find

Re: lang/icc doesn't compile c++ sources

2002-04-02 Thread Simon 'corecode' Schubert
On Tue, 2 Apr 2002 10:34:07 +0200 (CEST) Alexander Leidinger [EMAIL PROTECTED] wrote: On 1 Apr, Simon 'corecode' Schubert wrote: my first tries for the patched include files can be found here: http://corecode.ath.cx/~corecode/stuff/icc-patched-includes-0.1.tgz We should either

Re: lang/icc doesn't compile c++ sources

2002-04-02 Thread Simon 'corecode' Schubert
On Tue, 2 Apr 2002 14:30:59 +0200 (CEST) Alexander Leidinger [EMAIL PROTECTED] wrote: On 2 Apr, Simon 'corecode' Schubert wrote: Do you have test cases where the removal of icc's includes and the use of -X -I/usr/include/g++ -I/usr/include fails? yes. just as simple

Re: lang/icc doesn't compile c++ sources

2002-04-02 Thread Simon 'corecode' Schubert
On Tue, 02 Apr 2002 15:22:32 -0800 Terry Lambert [EMAIL PROTECTED] wrote: Alexander Leidinger wrote: test.cc, line 4: error: name followed by :: must be a class or namespace name std::string test =Hello World; ^ So we have to fix the base system headers in this regard and discard

Re: lang/icc doesn't compile c++ sources

2002-04-01 Thread Simon 'corecode' Schubert
On Mon, 1 Apr 2002 10:55:22 +0200 (CEST) Alexander Leidinger [EMAIL PROTECTED] wrote: On 31 Mär, Simon 'corecode' Schubert wrote: that's right. but as terry said, it seems to be a bad idea to use some headers that don't fit the libs. i tried to patch the headers coming with 4.4-S

Re: lang/icc doesn't compile c++ sources

2002-03-31 Thread Simon 'corecode' Schubert
On Sun, 31 Mar 2002 19:52:21 +0200 (CEST) Alexander Leidinger [EMAIL PROTECTED] wrote: On 31 Mär, I wrote: /usr/include/stdlib.h, line 57: error: invalid combination of type specifiers typedef _BSD_WCHAR_T_ wchar_t; This seems to be a problem with the wchar_t being

Re: lang/icc doesn't compile c++ sources

2002-03-31 Thread Simon 'corecode' Schubert
On Sun, 31 Mar 2002 14:01:00 -0800 Terry Lambert [EMAIL PROTECTED] wrote: Simon 'corecode' Schubert wrote: icc -I./include -I/usr/include -I/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/ 3.0.4/include/g++ -I /usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/inclu de/g++/i386-portbld

lang/icc doesn't compile c++ sources

2002-03-30 Thread Simon 'corecode' Schubert
hi hackers, alexander! i've installed the icc port and trying to compile... first of all, C source files compile (and then link with gcc). no problems with that. but i can't get icc to compile a single c++ source: it always fails on the headers. just a simple echo '#includeiostream' comp.cc

Re: lang/icc doesn't compile c++ sources

2002-03-30 Thread Simon 'corecode' Schubert
On Sat, 30 Mar 2002 05:16:38 -0800 Terry Lambert [EMAIL PROTECTED] wrote: Simon 'corecode' Schubert wrote: just a simple echo '#includeiostream' comp.cc won't compile. i've tested the include files of o icc o gcc 2.95.3 (the one from my base system, 4.5-S) o gcc 3.0.4 (from the ports

Re: lang/icc doesn't compile c++ sources

2002-03-30 Thread Simon 'corecode' Schubert
On Sat, 30 Mar 2002 12:17:17 -0800 Terry Lambert [EMAIL PROTECTED] wrote: Simon 'corecode' Schubert wrote: Try this patch: --- bad Sat Mar 30 05:18:02 2002 +++ goodSat Mar 30 05:18:23 2002 @@ -1 +1,2 @@ -echo '#includeiostream' comp.cc +echo '#include iostream

bsd.prog.mk doesn't link c++ programs correctly?

2002-03-29 Thread Simon 'corecode' Schubert
hi hackers! i'm in progress in writing a c++ program utilizing bsd.prog.mk i wondered why my programs won't link correctly when i don't add a line LDFLAGS=-lstdc++ no i was trying out gcc30 (whoa, slow!) and it didn't want to link with or without the above line. it seems c++ programs need to

Re: Performance of FreeBSD vs NetBSD (was: Re: Performance of -current vs -stable)

2002-03-11 Thread Simon 'corecode' Schubert
On Mon, 11 Mar 2002 07:10:31 -0800 (PST) Hiten Pandya [EMAIL PROTECTED] wrote: --- Luigi Rizzo [EMAIL PROTECTED] wrote: As I already asked: what compile time options were used in the two cases ? They surely can make a huge difference. cheers luigi Could it also be a

Re: Swapping performance

2002-03-07 Thread Simon 'corecode' Schubert
On Thu, 7 Mar 2002 16:36:15 +0100 Erik Trulsson [EMAIL PROTECTED] wrote: I've tested it with : cc -O6 -o malloc_test malloc_test.c That -O6 does not look right from here. Do we support anything over -O2? ISTR that -On is exactly the same for -O2 for n 2; or is this

Optimisation errors (Was: Swapping performance)

2002-03-07 Thread Simon 'corecode' Schubert
On Thu, 07 Mar 2002 10:49:22 -0800 Terry Lambert [EMAIL PROTECTED] wrote: Simon 'corecode' Schubert wrote: to everybody who doesn't believe that: it really generates bad code. i've been having severe problems with my tcp and udp stack lately (on a i586/mmx machine). guess what, -O2

Re: How to write code in FreeBSD

2002-03-02 Thread Simon 'corecode' Schubert
On Sat, 02 Mar 2002 12:57:29 +0100 Aleksander Rozman - Andy [EMAIL PROTECTED] wrote: Hi ! I was wondering if there are any guidelines how to write code in FreeBSD. I have taken a look at several code of FreeBSD but each is written differently? Problem is I don't know which is preferred

ipv6-over-ipv4 (gif) doesn't work right since 4.5

2002-02-23 Thread Simon 'corecode' Schubert
hi hackers! i just updated to 4.5-S and my gif0 tunnel stopped working. the reason is the following: o before (= 4.4-S) i used route add -inet6 default -interface gif0 o now (= 4.5-S) i need to do route add -inet6 default ipv6-ptp-peer-addr when using the old setting, the system won't

Re: stack alignment issues

2002-02-05 Thread Simon 'corecode' Schubert
On Mon, 04 Feb 2002 15:36:11 -0800 Terry Lambert [EMAIL PROTECTED] wrote: Alfred Perlstein wrote: Well, if Linux aligns the initial stack, the chance that gcc will have auto-alignment added sounds to be about zero. You might as well go ahead with your patch when you get a chance.

Re: buildworld via ro mounted /usr/src

2002-02-02 Thread Simon 'corecode' Schubert
On Fri, 1 Feb 2002 15:03:32 -0800 Crist J. Clark [EMAIL PROTECTED] wrote: The build procedure should be done as usual -- # make (env variables if not given in /etc/make.conf) -j4 buildworld # make KERNCONF=FreeBEER KERNCONFDIR=/usr/local/etc/conf -j4 buildkernel# make KERNCONF=FreeBEER

buildworld via ro mounted /usr/src

2002-01-30 Thread Simon 'corecode' Schubert
hello everybody! i am trying to accomplish this (should be fairly easy) task: cvsupping /usr/ports /usr/src on a central file server. and building world/kernel via nfs mounts. in order not to get things mixed up i share /usr/ports and /usr/src ro and /usr/ports/distfiles, /usr/obj rw.