Re: Is it possible to have file removed upon process exit?

2010-11-27 Thread Carlos A. M. dos Santos
On Sat, Nov 27, 2010 at 3:18 PM, Dimitry Andric wrote: > On 2010-11-25 21:14, Xin LI wrote: >> >> For certain applications it is sometimes desirable to (e.g. for unix >> domain sockets) have file removed when the process quit, regardless >> whether the process is quit cleanly.  Is there a clean wa

Re: Is it possible to have file removed upon process exit?

2010-11-27 Thread Carlos A. M. dos Santos
On Thu, Nov 25, 2010 at 6:14 PM, Xin LI wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hi, > > One pretty common way of having an i-node of a file removed when process > exit is to unlink() it while holding a descriptor of the file.  This > approach, however, have a side effect tha

Re: Remove printf in acpi_tz_sanity()

2010-11-21 Thread Carlos A. M. dos Santos
On Sun, Nov 21, 2010 at 9:18 PM, Paul B Mahol wrote: > On Sun, Nov 21, 2010 at 9:17 PM, Andriy Gapon wrote: >> on 21/11/2010 13:07 Paul B Mahol said the following: >>> This patch removes printf which spams console whenever thermal state >>> is changed in laptop. Source of problem is in buggy BIOS

Re: Spinner Function for Shell Scripts

2010-11-13 Thread Carlos A. M. dos Santos
On Thu, Nov 11, 2010 at 6:12 PM, Devin Teske wrote: > Hi fellow hackers... I come with baring gifts! > > So, just as the subject-line says, ... here's an efficient and robust > spinner function compatible with many shells. >                        DONE=$( /bin/sh -c 'read -t 0 DONE; echo $DONE' )

Re: Hello!

2010-04-28 Thread Carlos A. M. dos Santos
On Wed, Apr 28, 2010 at 1:04 PM, Stanislav wrote: > Hello! I am accepted for the google summer of code. I just wanted to > introduce myself to the community. I will be working on "BSNMP enhancement: > A new module". I will be very thankful to anyone who have ideas to share. I > am still newbie and

Re: heci: a new driver for review and testing

2009-10-15 Thread Carlos A. M. dos Santos
On Wed, Oct 14, 2009 at 9:34 PM, Mike Meyer wrote: > On Wed, 14 Oct 2009 19:46:20 -0300 > "Carlos A. M. dos Santos" wrote: > >> On Wed, Oct 14, 2009 at 2:12 PM, Andriy Gapon wrote: >> >> > BTW, can/may I drop "alternatively GPL" wording from Lic

Re: heci: a new driver for review and testing

2009-10-14 Thread Carlos A. M. dos Santos
On Wed, Oct 14, 2009 at 2:12 PM, Andriy Gapon wrote: > BTW, can/may I drop "alternatively GPL" wording from License block of the > files I > borrowed from Intel? I.e. can a dual BSD+GPL licensed file be turned into > BSD-only? If Intel is the copyright owner then you can not change the license

Re: sys/cdefs.h not included automatically

2009-08-03 Thread Carlos A. M. dos Santos
On Mon, Aug 3, 2009 at 4:56 PM, Alex Zimnitsky wrote: > Hello, freebsd-hackers > > my system is 7.2-RELEASE > > there is a which is included in a lot of headers, but a > few of them instead of including it, generate "#error this file needs > sys/cdefs.h". > > seems like an omission, but if it's in

Re: SGID/SUID on scripts

2009-07-24 Thread Carlos A. M. dos Santos
On Wed, Jul 22, 2009 at 2:42 PM, Anthony Pankov wrote: > > SGID/SUID bits don't work with shell scripts, do they? No. A possible workaround is have a SUID/SGID version of you interpreter and use it. Something like # pw groupadd -n sush -g 401 # cp /bin/sh /bin/sush # chown root:sush /bin/sush # c

Re: Help on relicensing derived code

2009-07-13 Thread Carlos A. M. dos Santos
On Mon, Jul 13, 2009 at 9:57 AM, Henrique Almeida wrote: > 2009/7/13 Carlos A. M. dos Santos : >> On Sun, Jul 12, 2009 at 4:20 PM, Henrique Almeida wrote: >>>  I need to write an "errno.h" with constant values used by the FreeBSD >>> kernel. My project uses

Re: Help on relicensing derived code

2009-07-12 Thread Carlos A. M. dos Santos
On Sun, Jul 12, 2009 at 4:20 PM, Henrique Almeida wrote: > I need to write an "errno.h" with constant values used by the FreeBSD > kernel. My project uses exclusively the 2 clause BSD license. I > expected to copy those values from FreeBSD errno.h. However, FreeBSD > errno.h has 3 clauses.[...]

Re: c question: *printf'ing arrays

2009-07-02 Thread Carlos A. M. dos Santos
2009/7/2 Dag-Erling Smørgrav : > Alexander Best writes: >>     for (i=0; i < sizeof(hdr->nintendo_logo); i++) >>         fprintf(stderr, "%x", hdr->nintendo_logo[i]); > > What will this print if nintendo_logo is { 0x01, 0x02, 0x03, 0x04 }? Good catch. It will print "0x1234" but it should print "0

Re: c question: *printf'ing arrays

2009-07-01 Thread Carlos A. M. dos Santos
On Tue, Jun 30, 2009 at 7:06 PM, Alexander Best wrote: > thanks for all the help. i decided to take the pill and coded all the fprintfs > by hand. here's the result. usually i'd stick to a higher level languag, but i > need C's inline assembly support: > >    struct Header >    { >        u_int8_t

Re: c question: *printf'ing arrays

2009-07-01 Thread Carlos A. M. dos Santos
On Tue, Jun 30, 2009 at 7:54 PM, Alfred Perlstein wrote: > Hey Alex, > > People frown on macros, but this could be a good one: > > #define SPRINT(f, fmt) \ >        do {\ >                for (_i = 0; _i < sizeof(f)/sizeof(f[0]); i++) \ >                        printf(fmt, f[i]); \ >        }while(

looking for style(9) configuration for Eclipse

2009-06-04 Thread Carlos A. M. dos Santos
Is there any document describing how to configure Eclipse for style(9) compliance? Eclipse is the official IDE of the project I'm working on. We use code taken from FreeBSD, making some changes that my company plans to contribute back, so I'd like to keep the formatting compliant to style(9). The

IPv6 support on BSNMP

2009-05-19 Thread Carlos A. M. dos Santos
Hello, Is there any ongoing work on adding support for IPv6 to BSNMP? Do you have an idea of how much effort it would need? Thanks in advance. -- My preferred quotation of Robert Louis Stevenson is "You cannot make an omelette without breaking eggs". Not because I like the omelettes, but becaus

Re: admin jop

2009-01-18 Thread Carlos A. M. dos Santos
On Sat, Jan 17, 2009 at 12:49 PM, lazaax - wrote: > hi hackers, is someone that can tell me how mach money can a company > pay me each mount for admin a bsd server installed in the company, i > will adminthe server remotly, is not a stable jop please can tell > me on us dolar This list is de

Re: imac g4 dont boot

2009-01-02 Thread Carlos A. M. dos Santos
On Fri, Jan 2, 2009 at 3:33 AM, lazaax - wrote: > hi, hackers, > i need a help with a imac g4,i put the power cable > and i push the power botton to turn on the mac and it makes a sound at > start but the porblem is that dont boot, and keep like panic o > somthing like that, i want

Re: hack bios hp compaq v3618la

2008-12-27 Thread Carlos A. M. dos Santos
On Fri, Dec 26, 2008 at 5:28 PM, lazaax - wrote: > hi, people, anyone knows how to hack bios from v3618la or had a bios > hacked, i want to bypass whitelist wireless network, i put a atheros > on mi hp and cant supported, sorry my english is poor, i dont want ro > risk my computer... please help

Re: How to quickly determine if UFS2 FS is "clean" from command line?

2008-12-26 Thread Carlos A. M. dos Santos
On Fri, Dec 26, 2008 at 11:20 AM, Sean wrote: > Carlos A. M. dos Santos wrote: >> >> Be warned that file(1) resides at /usr/bin and depends on >> /usr/share/misc/magic*, so it may not be available in early boot >> stages, when /usr is not mounted yet. The following

Re: How to quickly determine if UFS2 FS is "clean" from command line?

2008-12-26 Thread Carlos A. M. dos Santos
On Fri, Dec 26, 2008 at 4:39 AM, David Wolfskill wrote: > On Fri, Dec 26, 2008 at 09:35:42AM +0300, Sergey Zaharchenko wrote: >> ... >> Some of the stuff you want can be found here: >> >> r...@shark:~# file -s /dev/ufs/home >> /dev/ufs/home: Unix Fast File system [v2] (little-endian) last mounted

Re: Hardware support for AMD Geode CS5536 audio?

2008-11-28 Thread Carlos A. M. dos Santos
On Thu, Nov 27, 2008 at 1:30 AM, ancelgray <[EMAIL PROTECTED]> wrote: > > To AMD CS5536 users: > > This is Andrew Gray. I have finished the audio driver for the AMD CS5536 > companion > chip. It is working on a PC Engines Alix 1C low power board under FreeBSD > 7.0. > It can be found at: > > http

Re: Hardware support for AMD Geode CS5536 audio?

2008-11-28 Thread Carlos A. M. dos Santos
On Fri, Nov 28, 2008 at 7:43 AM, Dag-Erling Smørgrav <[EMAIL PROTECTED]> wrote: > Patrick Lamaizière <[EMAIL PROTECTED]> writes: >> You cannot include a file under the GPL license without being >> contaminated. Even a simple .h with only some #define. This is not correct, as DES explained. Anyway

Re: [Testers wanted] /dev/console cleanups

2008-11-19 Thread Carlos A. M. dos Santos
On Tue, Nov 18, 2008 at 7:34 PM, Ed Schouten <[EMAIL PROTECTED]> wrote: > Hello Carlos, others, > > * Ed Schouten <[EMAIL PROTECTED]> wrote: >> About the /dev/console issues: Robert Watson and I discussed this some >> time ago on IRC and what I did in HEAD (not RELENG_7) was that I changed >> TIOCC

Re: Is there virtualbox ports?

2008-10-31 Thread Carlos A. M. dos Santos
On Fri, Oct 31, 2008 at 7:23 AM, Boern <[EMAIL PROTECTED]> wrote: > Hi,all: > I am ready to intall sun xVM VirtualBox on my FreeBSD7.0,but have no > found in the ports,anybody can help me? There is no port. VirtualBox depends on a kernel module that was not ported to FreeBSD yet, among other thi

Re: [Testers wanted] /dev/console cleanups

2008-10-27 Thread Carlos A. M. dos Santos
On Sun, Oct 26, 2008 at 1:27 PM, Ed Schouten <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Most of you probably already know that I've been very busy improving our > kernel's TTY implementation. I've committed the new MPSAFE TTY layer > back in August. So far most of the things seem to work prop

Re: Interrupts issues

2008-09-19 Thread Carlos A. M. dos Santos
On Fri, Sep 19, 2008 at 12:04 PM, Benjie Chen <[EMAIL PROTECTED]> wrote: > Hi FreeBSD hackers: > > I have two Dell workstations that I recently added FreeBSD 6.2 on. One > is a Precision T3400, one is an Inspiron 530. Nothing fancy. Installed > FBsd. Everything else is fine except both machines hav

Re: Error: Can't find libjava.so

2008-09-14 Thread Carlos A. M. dos Santos
On Sun, Sep 14, 2008 at 6:19 AM, Marcel Grandemange <[EMAIL PROTECTED]> wrote: > I do realize this is probably better suited for freebsd-questions , however > haven't received any response and was simply hoping someone would be kind > enough. > > I recently obtained a very decent ups, however it is

Re: Multiple page support

2008-08-18 Thread Carlos A. M. dos Santos
On Mon, Aug 18, 2008 at 5:42 PM, Rao, Nikhil <[EMAIL PROTECTED]> wrote: > > What is the current status of multiple page sizes for applications (4K > and 2MB) in FreeBSD 8-CURRENT ? It is enabled by default for the amd64 > arch and only available in the amd64 and i386 architectures. I just saw this

Re: read with timeout ??

2008-08-08 Thread Carlos A. M. dos Santos
On Fri, Aug 8, 2008 at 5:09 AM, Pieter de Goeje <[EMAIL PROTECTED]> wrote: > On Friday 08 August 2008, Carlos A. M. dos Santos wrote: >> On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge <[EMAIL PROTECTED]> > wrote: >> > On Thu, 7 Aug 2008, Chuck Robey wrote: &g

Re: read with timeout ??

2008-08-07 Thread Carlos A. M. dos Santos
On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge <[EMAIL PROTECTED]> wrote: > On Thu, 7 Aug 2008, Chuck Robey wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> I have my head lost in a code problem. I just hit a point where I need to >> do a >> read from an fd, but I need to associa

Re: Laptop suggestions?

2008-07-31 Thread Carlos A. M. dos Santos
On Thu, Jul 31, 2008 at 9:06 AM, Tom Evans <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-07-30 at 21:45 -0300, Carlos A. M. dos Santos wrote: >> Please define "comfortable". I've been running FreeBSD 7.0 pretty >> comfortably on my HP nx6320 for several

Re: Laptop suggestions?

2008-07-30 Thread Carlos A. M. dos Santos
On Wed, Jul 30, 2008 at 5:20 PM, Achim Patzner <[EMAIL PROTECTED]> wrote: > Am 30.07.2008 um 18:40 schrieb Dag-Erling Smørgrav: >> >> I don't understand what Macs have to do with this - we're talking about >> iX Systems's made-for-BSD laptop. > > The thread started with someone asking for a mobile