Re: Does getc(3) use the read(2) syscall?
On Wednesday 03 February 2010, Marc Olzheim wrote: > On Wed, Feb 03, 2010 at 10:23:50AM -0300, Daniel Molina Wegener wrote: > > > I'm having trouble looking this function up in the source tree, the > > > trail seems to end at __sys_read which has a bunch of prototypes but i > > > can't find the actual function code. > > > > Well, you can try cscope --- IMO the best option to > > search for symbols in the source tree. Also you have > > well done front-ends like cbrowser, codelite and emacs > > plus cscope mode. > > Works wonders in vim as well. :-) Sure, vim supports cscope since 2000 and possibly before that, indeed vim was my first programming editor in FreeBSD and Linux. Then I've learned emcas, and now I use both editors --- the first available on the machine that I'm working on --- also emacs requires a lot of configurations, but is my primary editor on my FreeBSD boxes. > > > > So my question is primarily, does getc use the read system call > > > eventually? > > > > No, certainly not. Take a look on stdio.h and libc > > implementation on lib/libc/stdio/getc.c. Mainly on the > > __sgetc(f) macro. > > If you follow macros long enough, you'll find that it obviously does use > the read system call. read, readv, pread, preadv are basicly the system > calls through which all normal reads take place. That's right, but cscope or even etags should help a lot finding those simbols, most for large source trees like the FreeBSD base system ;) > > Marc > Best regards, -- Daniel Molina Wegener Software Architect, System Programmer & Web Developer Phone: +1 (510) 629-4267 | Blog: http://coder.cl/ signature.asc Description: This is a digitally signed message part.
Re: Does getc(3) use the read(2) syscall?
On Wednesday 03 February 2010, Stefan Midjich wrote: > I'm having trouble looking this function up in the source tree, the trail > seems to end at __sys_read which has a bunch of prototypes but i can't find > the actual function code. Well, you can try cscope --- IMO the best option to search for symbols in the source tree. Also you have well done front-ends like cbrowser, codelite and emacs plus cscope mode. > > So my question is primarily, does getc use the read system call eventually? No, certainly not. Take a look on stdio.h and libc implementation on lib/libc/stdio/getc.c. Mainly on the __sgetc(f) macro. > > But i would also love it if someone could show me where __sys_read is > defined. Take a look on the architecture specific file SYS.h, that's a kind of macro. For example at the i386 file: lib/libc/i386/SYS.h > > Thanks in advance for any information! > Best regards, -- | Daniel Molina | | IT Consulting & Software Development| | Phone: +56 2 9790277 | http://coder.cl/ | signature.asc Description: This is a digitally signed message part.
problem compiling RELENG_6
Hello, I've downloaded the RELENG_6 through csup. While compiling the source with make buildworld I get the next error: -8<--8<--8<--8<--8<- ===> sbin/ipf/libipf (depend) make: don't know how to make extras.c. Stop *** Error code 2 -8<--8<--8<--8<--8<- Same problem with genmask.c, getline.c, hexdump.c and other files. Thanks, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | FreeBSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kevent notes implementation
Hello, I was looking the code of kqueue(2)/kevent(2), also the manual pages. Is there any reason why NOTE_OPEN, NOTE_CLOSE and NOTE_READ aren't implemented yet. What may be considered in these KNOTEs implementation? Best regards. -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
A few questions...
Hello, I need information about few things, I hope someone can help me and thanks in advance. a) Is there any function or variable that tells me which is the root user UID in the system, or root always have 0 and it's an "elegant" option to compare the variables or structure members against zero. b) Can normal users look for system processes or kernel threads? c) Can root look for system processes or kernel threads? Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | FreeBSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Setting up development environment
Hello, Is there any official way to setup a development environment for FreeBSD. I mean, I want to contribute with FreeBSD development. All I know that there is a Developer's Handbook, but what about setting a development environment for FreeBSD-CURRENT and -STABLE including from official c-mode-hooks and c++-mode-hooks for emacs to environment variables for cross-compiling the FreeBSD source. Can anyone guide me, or send me tips to get an optimal chance to contribute with FreeBSD?. Best regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problems compiling BUILDING from STABLE
On Saturday 26 May 2007 13:14:52 Maslan wrote: > > Have u missed with the CFLAGS ? > > Sorry, i mean "messed up" Sorry, I can't understand... what's wrong with my CFLAGS. These flags works for STABLE -- in my make.conf: 8<- LOCLACFLAGS=-march=prescott -O2 -pipe CFLAGS=$(LOCLACFLAGS) COPTFLAGS=$(LOCLACFLAGS) CXXFLAGS+=$(LOCLACFLAGS) CXXOPTFLAGS+=$(LOCLACFLAGS) 8<- Why shouln't work for CURRENT? All the other CFLAGS are added because the targets are using the level 6 of warnings in sys/mk/bsd.sys.mk > > > --- > OS Developer > I'm Searching For Perfection, > So Even If U Need Portability U've To Use Assembly ;-) > --- > http://libosdk.berlios.de > [SNIP] Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Problems compiling BUILDING from STABLE
Hello I'm trying to build CURRENT from STABLE, I'm using a shell script that sets the next environment variables: -8<-- export MAKEOBJDIRPREFIX="/work/FreeBSD/obj" export PREFIX="/work/FreeBSD" export DESTDIR="/work/FreeBSD/build" export TARGET="i386" -8<-- I run the script, that executes make, with these environment variables, but I get the next error while building world: -8<-- ===> lib/csu/i386-elf (obj,depend,all,install) rm -f .depend mkdep -f .depend -a-I/work/FreeBSD/usr/src/lib/csu/i386-elf/../common -I/wor k/FreeBSD/usr/src/lib/csu/i386-elf/../../libc/include /work/FreeBSD/usr/src/lib/ csu/i386-elf/crt1.c /work/FreeBSD/usr/src/lib/csu/i386-elf/crti.S /work/FreeBSD/ usr/src/lib/csu/i386-elf/crtn.S cc -march=prescott -O2 -pipe -march=prescott -I/work/FreeBSD/usr/src/lib/csu/i38 6-elf/../common -I/work/FreeBSD/usr/src/lib/csu/i386-elf/../../libc/include -Ws ystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wn ested-externs -Wredundant-decls -Wno-pointer-sign -c /work/FreeBSD/usr/src/lib/c su/i386-elf/crt1.c cc1: error: unrecognized command line option "-Wchar-subscripts" -8<----------- What's my error? Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kqueue implementation
On Tuesday 22 May 2007 13:04:37 Suleiman Souhlal wrote: > On May 21, 2007, at 6:48 AM, Daniel Molina Wegener wrote: > > On Monday 21 May 2007 03:57:58 John-Mark Gurney wrote: > >> Daniel Molina Wegener wrote this message on Sun, May 20, > >> 2007 > > > > at 18:31 -0400: > >>>I'm coding an application using the kqueue facility, > >>> but I see that I can't handle open and read events. Is > >>> planned to implement these handlings in the future?. > >>> Also, which facility can I use to handle these kind of > >>> events? > >> > >> I'm unsure what you mean by open and read events? Do you > >> mean getting an event when another process opens are file? > >> or? As for read, they work fine for sockets, as w/ > >> select, files are always ready to read even though they > >> may block to read from disk... > > > > Hello, > > > > I mean vnode events, in the manual page I see NOTE_WRITE, > > but I need NOTE_OPEN and NOTE_READ. Is there any chance to > > get these kind of events? > > They should be easy to add.. All you would need to do for > NOTE_OPEN would be to add a vop_open_post hook to VOP_OPEN > that calls VFS_KNOTE_LOCKED(..., NOTE_OPEN). Similarly for > read. > > Take a look at how, for example, NOTE_CREATE is implemented > (vop_create_post in sys/kern/vfs_subr.c) and how we add VOP > hooks (sys/kern/vnode_if.src). > > Why do you need these? I'm working on a log file monitor, with programable tasks on certain events. > > -- Suleiman > > [SNIP] Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kqueue implementation
On Tuesday 22 May 2007 14:06:48 Joerg Sonnenberger wrote: > On Tue, May 22, 2007 at 10:04:37AM -0700, Suleiman Souhlal wrote: > > >I mean vnode events, in the manual page I see NOTE_WRITE, > > > but I need NOTE_OPEN and NOTE_READ. Is there any chance > > > to get these kind of events? > > > > They should be easy to add.. All you would need to do for > > NOTE_OPEN would be to add a vop_open_post hook to VOP_OPEN > > that calls VFS_KNOTE_LOCKED(..., NOTE_OPEN). Similarly for > > read. > > If this is done, it should be done very carefully. There are > some non-trivial security implications by this, for example > the process hiding can be at least partly circumvented by > adding a open filter on rtld or libc.so. Why?, I can't understand the point. On Linux the inotify interface does the job. Why on FreeBSD shouldn't be applicable?. > > Joerg > > [SNIP] Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kqueue implementation
On Monday 21 May 2007 03:57:58 John-Mark Gurney wrote: > Daniel Molina Wegener wrote this message on Sun, May 20, 2007 at 18:31 -0400: > >I'm coding an application using the kqueue facility, but > > I see that I can't handle open and read events. Is planned > > to implement these handlings in the future?. Also, which > > facility can I use to handle these kind of events? > > I'm unsure what you mean by open and read events? Do you > mean getting an event when another process opens are file? > or? As for read, they work fine for sockets, as w/ select, > files are always ready to read even though they may block to > read from disk... Hello, I mean vnode events, in the manual page I see NOTE_WRITE, but I need NOTE_OPEN and NOTE_READ. Is there any chance to get these kind of events? Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kqueue implementation
Hello, I'm coding an application using the kqueue facility, but I see that I can't handle open and read events. Is planned to implement these handlings in the future?. Also, which facility can I use to handle these kind of events? Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: issue with net/if_ppp.h
El Mar, 15 de Mayo de 2007, 9:55, Manolo Valdes escribió: > Hi guys Hello... > > doing a test just like the way cmake do it to find includes on the system Grat tool, I use cmake too... > > ##test.c## > > #include > int main(){return 0;} > > > > i got the following output: > > gcc test.c > In file included from /usr/include/net/if_ppp.h:28, > from test.c:1: > /usr/include/net/ppp_defs.h:86: error: syntax error before "ext_accm" > /usr/include/net/ppp_defs.h:146: error: syntax error before "time_t" > In file included from /usr/include/net/if_ppp.h:29, > from test.c:1: > /usr/include/net/if.h:265: error: field `ifru_addr' has incomplete type > /usr/include/net/if.h:266: error: field `ifru_dstaddr' has incomplete type > /usr/include/net/if.h:267: error: field `ifru_broadaddr' has incomplete type > /usr/include/net/if.h:299: error: field `ifra_addr' has incomplete type > /usr/include/net/if.h:300: error: field `ifra_broadaddr' has incomplete type > /usr/include/net/if.h:301: error: field `ifra_mask' has incomplete type > /usr/include/net/if.h:368: error: field `addr' has incomplete type > /usr/include/net/if.h:369: error: field `dstaddr' has incomplete type > test.c:7:2: warning: no newline at end of file > > this test works on on Linux systems. > > does anybody knows if this is a bug or problem with the net/if_ppp.h header? No, if_ppp requires other headers, I'm far from my BSD system, but you must look which header you must include before the if_ppp hreader. > > thanks in advance > > Manolito > > [SNIP] > Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User| Standards Rocks! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: strange pthread keys behavior
On Sunday 07 January 2007 12:44, Daniel Eischen wrote: > [SNIP] > > > > ¿Is this a mistake in the code or a standard warning in > > FreeBSD pthreads? > > Yes, it looks like a buggy program... > > > The code bellow can be compiled with and do not use the > > pthread_key_delete routine: > > See the POSIX spec with regard to pthread_key_create(): > > > http://www.opengroup.org/onlinepubs/009695399/functions/pthre >ad_key_create.html > > You may have to create an account (free) in order to view it. > Also look at pthread_key_delete(). > > I think the problem is that you are calling > pthread_key_delete() from the thread that is creating the key > and before the thread has exited (when the thread-specific > key data is destroyed). You have invalidated the key by > deleting it, so when the thread exits, it can't call the > destructor and it iterates PTHREAD_KEY_MAX times trying to > deallocate the key data. That is where the error message is > generated. Thanks, really... Best regards... -- . 0 . | Daniel Molina Wegener . . 0 | dmw at unete dot cl 0 0 0 | FreeBSD User ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
strange pthread keys behavior
Hello, I'm coding with pthreads, but the behavior of pthread_key_delete is strange. When I use pthread_key_delete, and I do not wait for the automatic deallocation of thread specific data, I receive a strange warning: Thread 8053800 has exited with leftover thread-specific data after \ 4 destructor iterations ¿Is this a mistake in the code or a standard warning in FreeBSD pthreads? The code bellow can be compiled with and do not use the pthread_key_delete routine: gcc -Wall -Wextra -pthread -lpthread -o key key.c But if pthread_key_delete is used, compiling the code with: gcc -Wall -Wextra -DPTHR_WARNS -pthread -lpthread -o key key.c I get warning message... - BEGIN CODE - /* -*- mode: c; c-default-style: "bsd"; c-basic-offset: 4; -*- */ #include #include #include #include #include #include void *rtn(void *p); pthread_attr_t attr; pthread_t thr[3]; int main (void) { int rt, c; if (!pthread_attr_init (&attr)) { printf ("%d: attr = %p\n", getpid (), (void *)&attr); rt = pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED); if (rt == 0) { printf ("%d: attr PTHDR_ATTR_DETACHED = %d\n", getpid (), rt); for (c = 0; c < 3; c++) { rt = pthread_create (&(thr[c]), &attr, rtn, (void *)NULL); } } } sleep (10); pthread_attr_destroy (&attr); pthread_exit (NULL); return 0; } void * rtn (void *p) { char str1[] = "hi"; char str2[] = "bye"; size_t len1; size_t len2; pthread_key_t k1, k2; void *d1, *d2; printf ("thr arg: %p", p); len1 = (size_t)strlen(str1) + 1; len2 = (size_t)strlen(str2) + 1; pthread_key_create (&k1, free); pthread_key_create (&k2, free); pthread_setspecific (k1, malloc(len1)); pthread_setspecific (k2, malloc(len2)); memset (pthread_getspecific (k1), (int)NULL, len1); memset (pthread_getspecific (k2), (int)NULL, len2); memcpy (pthread_getspecific (k1), str1, len1); memcpy (pthread_getspecific (k2), str2, len2); d1 = pthread_getspecific (k1); d2 = pthread_getspecific (k2); printf ("k1: [%p] %s\n", d1, (char *)d1); printf ("k2: [%p] %s\n", d2, (char *)d2); #ifdef PTHR_WARNS pthread_key_delete (k2); #endif /* !PTHR_WARNS */ sleep (2); pthread_exit (NULL); } - END CODE - Best regards... -- . 0 . | Daniel Molina Wegener . . 0 | dmw at unete dot cl 0 0 0 | FreeBSD User ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to deal with const
On Sunday 31 December 2006 03:52, [EMAIL PROTECTED] wrote: > I'm working on a kernel project that needs strstr(3). > > It looks as if most of the str* functions in libkern are very > similar, if not identical, to their counterparts in > libc/string, but that approach does not seem to work for > strstr (#s added): > > 1: char * > 2: strstr(s, find) > 3: const char *s, *find; > 4: { > 5: char c, sc; > 6: size_t len; > 7: > 8: if ((c = *find++) != 0) { > 9: len = strlen(find); > 10: do { > 11: do { > 12: if ((sc = *s++) == 0) > 13: return (NULL); > 14: } while (sc != c); > 15: } while (strncmp(s, find, len) != 0); > 16: s--; > 17: } > 18: return ((char *)s); > 19: } > > I get a "warning: cast discards qualifiers from pointer > target type" on line 18. If I remove the cast, changing it > to just "return (s);", I get "warning: return discards > qualifiers from pointer target type" (and because this is the > kernel, those "warning" messages are actually treated as > errors). If you need strstr(3) in your project is allready defined in libkern. The implementation is identical, but using the __DECONST macro. Take a look in /usr/src/sys/libkern/strstr.c for the function definition and /usr/src/sys/geom/label/g_label.c for usage. The function prototype is defined in sys/libkern.h Best regards... -- . 0 . | Daniel Molina Wegener . . 0 | dmw at unete dot cl 0 0 0 | FreeBSD User ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Example network protocol implementation
On Saturday 09 December 2006 17:18, Vishal Patil wrote: > Could someone point me to an example that shows a SIMPLE > network protocol implemented over TCP/IP inside the FreeBSD > kernel. I think I could look at the NFS client driver but is > there an example simpler than that. Also is there a guide > explaining how to go about developing TCP/IP based network > protocols for FreeBSD. Try looking at telnet(1) and telnetd(8) source code, also fetch(1) should works too... > Thanks > > - Vishal > ___ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" Best regards, -- . 0 . | Daniel Molina Wegener . . 0 | dmw at unete dot cl 0 0 0 | FreeBSD User ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: compiling the kernel faster
On Thu, Oct 27, 2005 at 05:14:51AM -0700, [EMAIL PROTECTED] wrote: > At 04:54 AM 10/27/2005 -0700, kamal kc wrote: > | hello everybody, > | > | i am new to kernel programming. > | i am developing a compression/decompression > | functionality in the ip layer. > | > | i want to compile the kernel faster. > | > | it would > | be ok if the kernel doesn't have support for sound > | devices, or other devices like scsi,usb etc. because > | i would be using the compiled kernel for > | network data compression only. > | > | how could i do that. which source files and where in > | the makefiles do i make modifications > | > | thanks for any suggestions > | > | kamal > > Kamal, > > The files you modify to drop stuff out of the kernel are in > /sys/i386/conf/ (assuming you are on an Intel platform). Copy > the GENERIC file in there to something else (e.g DEVKERNEL), > then edit that file. That's OK, also can take a look into the NOTES kernel config for additional options. > Comment out any drivers you don't need using # (check your > dmesg output when you boot to see what drivers the OS is > loading for your hardware). Don't comment out anything unless > it's obviously something you don't need - doublt check the > dmesg for stuff like network drivers, hard drive stuff, etc.) > > Once you comment out the drivers, you will need to re-compile > the kernel. Go into /sys/i386/conf/ directory type this: > > config DEVKERNEL (using the example above) > > then change into the directory it shows you (should be > something like ../compile/DEVKERNEL or something like that) > and type this: > > make depend && make all install clean > > that will compile the new kernel and leave it in /boot/kernel > (it will also backup your old kernel into kernel.old) Here are new instructions to compile the kernel. Go to the root source directory -- usually /usr/src -- then... make buildkernel KERNCONF=DEVKERNEL But, before making a new kernel, if you add new devices, edit the src/sys/conf/files to add the device properly. > go into /boot/kernel/ and type this: > > strip -s * > > then reboot using shutdown -r now Nope, if you are developing over the kernel _never_ strip the symbol table. Do not use the strip command. Instead, use the kernel config command flag in the DEVKERNEL config file. makeoptions DEBUG=-g This will enable symbol tables on the kernel for debugging purposes ;) > If all goes well, you should boot to the new kernel. You can > use the uname -a command to make sure you are on the new > kernel okay. If the machine won't boot, you can boot into > single user mode and copy the old kernel back in place. > > An excellent book on the subject is: > > Absolute BSD: The Ultimate Guide to FreeBSD (Paperback) > > good luck. > > Ray That's OK Also take a look on the FreeBSD Documetation Proyect. Regards. -- . 0 . | Daniel Molina Wegener . . 0 | dmw at unete dot cl 0 0 0 | FreeBSD Power User ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: usb umass
On Wed, Oct 26, 2005 at 05:08:24AM +, Chrystian Lopez wrote: > que onda hola estoy inetentando montar my memoria usbcon > usbdevs -v Ok, es un pendrive supongo. > me aparece con el driver usb0 Sera el dispositivo usb0?, ese es solo el puerto USB, no el dispositivo umass (pendrive). > y cuando quiero montarla con mount_msdosfs /dev /mnt /usb1 No puedes montar usb0 por que no es un dispositivo de bloques, revisa el log, o si se crea el dispositivo da0 en tu devfs cuando conectas el dispositivo umass (pendrive, mp3 player, etc.). > > me mando un mensaje diciendo /dev/usb1 block device require > Correcto, lo que debes hacer es montar el dispositivo umass, usando algo como: mount_msdos /dev/da0s1 /mnt/pendrive Deberias revisar el log... Cuando tengas dudas, te aconsejo usar la lista FreeBSD Questions, con la direccion questions at freebsd dot org. Atte. -- . 0 . | Daniel Molina Wegener . . 0 | dmw at unete dot cl 0 0 0 | FreeBSD Power User ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which branch?
On Wed, Oct 19, 2005 at 09:17:09PM -0700, Brooks Davis wrote: > On Thu, Oct 20, 2005 at 01:09:02AM -0300, Daniel Molina Wegener wrote: > > > > Hello, > > > >My computer is running with FreeBSD 5.4-STABLE. I've tried > > updating the source tree with RELENG_5, but I get some compile > > time errors. > > > >Is the RELENG_5 branch abandoned? > > No. We can't help you with your errors though unless you tell > use what they are. > Ok, I want to know if the RELENG_5 bracnh is active, if have some sense use send-pr with this branch and send patches if any. > >Also, I must download the RELENG_6 branch (6-STABLE) and > > contribute to this branch?. > > You don't have to, but you might want to. It's got > improvements and is clearly the way forward. Ok, thanks. > -- Brooks > [SNIP] Regards -- . 0 . | Daniel Molina Wegener . . 0 | dmw at unete dot cl 0 0 0 | FreeBSD Power User ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Which branch?
Hello, My computer is running with FreeBSD 5.4-STABLE. I've tried updating the source tree with RELENG_5, but I get some compile time errors. Is the RELENG_5 branch abandoned? Also, I must download the RELENG_6 branch (6-STABLE) and contribute to this branch?. Thanks... Regards -- . 0 . | Daniel Molina Wegener . . 0 | dmw at unete dot cl 0 0 0 | FreeBSD Power User ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
any way to reset errno?
Hello, Any way to reset errno? Thanks... Regards. -- . 0 . | Daniel Molina Wegener . . 0 | dmw at trauco dot cl 0 0 0 | http://trauco.cl/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"