13 Jun 2005 16:42
Re: Re: libgen.h (dirname, basename) and realpath implementation
Aaron W. LaFramboise wrote: > adah@... wrote: > > >> I do not think separating functions in two different libraries >> attractive. I would prefer that no additional "-l" options be >> required, or be used like the UNIX way. > > > Why? I really hate the way most Unix clones put both standard C > interfaces and standard operating system interfaces into the same > 'libc,' as these two things are really entirely unrelated. So what? I do not feel any inconvenience if the vendor put, say, popen in `libc'. > I'm not sure what you mean by `additional "-l" options,' as certainly > I am not advocating that any user be forced to add a -l to the gcc > command line unless he is doing something unusual. I thought you had meant to use an additional `-l' command for the non-minimal library. > Any change would be entirely transparent to the user, visible only in > the case where a user had a particular preference regarding Unix > compatibility. So you meant to use compiler switches to choose libraries? Maybe good but is it necessary? In fact, I think namespace pollution (in header files) might be a more important issue. (See below for my response to Earnie's message.) Earnie Boyd wrote: > You know, I bet if functions existed that didn't need to be worked > around by hand that most using GCC would have rather been glad they > didn't have to deal with the lack of the function. The fear now that > MinGW is nearly a decade old is that there are things that will now > break if we add functions. This is right. However, my point is, if a user include dlfcn.h, then symbols like dlopen are always relevant. I am thinking that if a user includes unistd.h, could it be regarded as indication that the user wants POSIX functionalities (not necessarily those defined in unistd.h according to the POSIX standard)? Or maybe it is good enough that we enable the non-native POSIX functions in standard header files when _POSIX_SOURCE is defined? Best regards, Yongwei ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
RSS Feed