gcc-propolice question

2005-09-26 Thread ramrunner
Hi.
i noticed in the assembly generated from openbsd's gcc that when allocating
the initial
buffer , it subtracts more bytes than it normaly should.
meaning:
function(int , int , int){ char b0[10],b1[5],int* } should need 0x20 bytes
instead openbsd's gcc subtracts 0x63 .
is it cause of alignment needs?

sorry if the question is irrelevant to the list.

please CC . not subscribed



float question

2006-01-22 Thread ramrunner
Hi , i am not sure if the following indicates a prob, if it does i
will issue a PR.
*sorry if i miss something here*
cosider the following: (obsd x86 3.8-current gcc version 3.3.5 (propolice))
float a;
int main()
{
for(;a<3;a+=0.1)
printf("%f\n",a);
return 1;
}
output :
0.00
0.10

2.70
2.79
2.89
2.99
why does the add loses a decimal point?
again sorry if it's my mistake (probably) but i'm confused ;) .

please CC not in [EMAIL PROTECTED]
DsP



Re: OT: Re: Seems OpenBSD isn't absolutely alone in it's quest, atleast on embedded systems.

2011-06-09 Thread ramrunner
It was well said that when we learn lisp we all start thinking things
like that. ;)
As to what theo said about interfaces, of course it is correct, but on the other
hand (as a design tool) doesn't Hal Abelman on the SICP lectures say,
that it is
a powerfull techinique to be able to create interfaces that you forget
everything
about them afterwards? He goes on to demonstrate...

In my mind the thing boils down to this:
in the PC as it is structured (HW-wise) you can't impose functional programming
(at least in an elegant/meaningfull way). But if you consider as specially built
arch for executing LISP code as the Connection Machine (from thinking machines)
then it could get interesting ;)

and yes sorry for talking and not working on clisp :(

DsP

On Thu, Jun 9, 2011 at 6:38 AM, Super Biscuit  wrote:
> I know neither C(++), or LISP, or PERL, or python or any other language.
>
> I've worked on VirtualBox porting to FreeBSD.
> I am working on GNOME3 on FreeBSD for ppc and sparc64 in my spare time.
>
> No lisp, no c, no other language . This is just from being able to read and 
> understand code.
>
> I know how far emacspeak can be compiled on OpenBSD PPC and what is needed.
>
> Many people can do what I do; but, I don't consider them a "waste of mind" as 
> you do.
> Your head is so far up your ass that you have a ring of shit for a necklace.
>
>
>
>
>
>
> --- On Wed, 6/8/11, Thomas de Grivel  wrote:
>
> From: Thomas de Grivel 
> Subject: Re: OT: Re: Seems OpenBSD isn't absolutely alone in it's quest, 
> atleast on embedded systems.
> To: "misc@openbsd.org" 
> Date: Wednesday, June 8, 2011, 10:23 AM
>
> [Other shit removed to concentrate on the ignorance of the last line.]
>
> Any hacker not knowing a couple of Lisp macros is a waste of mind.
>
> -- Thomas de Grivel
>
> "I must plunge into the water of doubt again and again."



opensmtpd chroot success ;)

2010-10-09 Thread ramrunner
Hey list!
a) opensmtpd kicks ass! thanks!
b) i managed to chroot it (didn't find that on any list though) so
here is a short descr.
   i have the following setup.
   a chrooted sshd running on a high port that auths some jailed users.
   i wanted to make the smtpd  that runs outside the chroot to deliver
mails inside, but
   stuck in a procmailrc hell. so i figured why not to chroot the whole smtpd?
c) files you need in the chroot: /etc/hosts /etc/resolv.conf
/etc/mail/ /etc/mail.rc (for the mail command)
   and binaries: procmail , smtpd , smtpctl, sendmail (and mutt for me )
   also in libexec: libexec/smtpd/ , libexec/lockspool , libexec/mail.local .

what do you think of the setup idea?
also if you want a how-to along with some scripts that keep binaries
up-to-date in the chroot
i will be happy to post.
Thanks :)
DsP



pf/nat/dns setup question

2010-12-04 Thread ramrunner
Hey list! if you can spare some time read the following :)
i have a domain living inside a very very unsecure university network that is
administered by some morons. it is highly compromised in many layers
but i can't touch it.
so i have a NATing firewall and i am running my services behind that.
notice here that my domain resolves to some .org having nothing to do
with the network i live in.
It seems logical to try to depend as little as possible on their
servers with the exception of their
gateway (i have to pass through :( ).
To access my internal boxen i am using rdr on different gw ports to
internal sshds.
all my machines on their resolv.conf have my internal NS and some
top-level ones.
( i thought that this would protect me from quering the unsecure parent NS ).
But when i tried to connect at first i noticed that my sshd was too
slow on responding for auth.
This of course related to domain services not passing correctly through the fw.
but i explicitly permitted outgoing domain packets for the top-level NSs.
wathing the logs i noticed that sshd tried to contact the unsecure
parent NS although there was no mention
for it on any resolv.conf. (it has to resolve the route? didn't know that...)
so the question is...
If i instruct my internal NS to resolve a part of the network i live
in, could i stop communicating
with their piece of junk? (although i find that an ugly solution :( )
maybe i get it all wrong??
Thanks :)
DsP