Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:Not just Linux... (Score 1) 202

Nope, sorry, not true. Parameter names never conflict with identifiers in any other scope.

They conflict with macros. Users are allowed to define macros before including standard library headers, and often do. I'm not familiar with GNU C coding standards, so you may have a point that __len should be _Len according to that, but as far as the C standard and POSIX care, either is fine.

Which would be fine, except that the glibc man pages don't say which functions are from which standard,

glibc doesn't include man pages, so firstly, your complaint isn't with glibc, and secondly, the ones on my system, as provided by man-pages, do. For example, from `man send`:

CONFORMING TO
4.4BSD, SVr4, POSIX.1-2001. These function calls appeared in 4.2BSD.
POSIX.1-2001 only describes the MSG_OOB and MSG_EOR flags. The MSG_CONFIRM flag is a Linux extension.

If a function comes from 4BSD but was later adopted by POSIX and SUS, what do you define?

If you're writing in the POSIX subset of glibc, you define the POSIX macro.

If you define the POSIX macro, then you may find that you've suddenly hidden a load of other things that were working correctly.

So you're not limiting yourself to POSIX anyway, and the problem isn't glibc's POSIX support, it's how to combine POSIX with glibc extensions.

There are some really fun cases where no combination of the public macros expose all of the features that you want and you need to define some of the glibc internal ones.

_GNU_SOURCE should make everything from glibc available. What are you using that isn't exposed by this macro?

Comment Re:Not just Linux... (Score 1) 202

Unfortunately for developers, Debian GNU/kFreeBSD uses GNU libc, rather than FreeBSD libc, so you get all of the fun of working with a libc written by someone who can't read the C standard (see unistd.h and its use of reserved identifiers for inline function parameters)

Well duh! Of course libc uses reserved identifiers for those. If it used non-reserved identifiers, it would conflict with valid user code.

and requires a huge mess of -D flags to compile POSIX / SUS code.

It requires one or more of the macros that, according to POSIX / SUS, the code needs to define. If the code (for convenience I'll include the build system in "code") doesn't define those macros, but does make use of POSIX functions, that's already a bug in the code.

Comment Re:I don't buy it. (Score 1) 571

Personally however, I think any judge would see through that and realize that the electronic ability to distribute only the modified part of a work doesn't change the intent to distribute a modified work itself.

If I publish an unauthorised errata for a paper book, would you expect me to get convicted of copyright infringement?

Comment Re:what about a weird-arch linux? (Score 1) 227

BTW, does the C standard demand that all integer types use the same representation?

The C standard almost requires that the corresponding signed and unsigned types have the same representation for non-negative values within the signed type's range, so you probably won't see a little-endian signed int and a big-endian unsigned int even on specially created weird archs, but other than that, anything goes. ("Almost requires": it doesn't actually require it, but there are a few ways where the standard allows you to read a signed value using an unsigned type or vice versa, so if the representations differ, some sort of type tagging is needed.)

If not, one could imagine that e.g. char uses signed magnitude, short uses ones complement, and long uses twos complement.

As far as I know, that does not violate any of C's rules.

Comment Re:what about a weird-arch linux? (Score 1) 227

The C standard says a char is one byte, but does not say one byte is one octet. It allows for 16-bit bytes, which of course also means 16-bit chars. Speaking of weird archs, omething I'm experimenting with myself is enabling alignment checks on x86 (x86-64 only right now; x86-32 causes too many problems); a large number of packages have no problems whatsoever with it, and of those that do, most of it comes from "if x86 then don't bother with alignment" logic, which is easily disabled.

Comment Re:Arbitration is Binding (Score 1) 631

Technically, yes, the protocol of a URL is required, but that's because a URL is a form of an absolute URI, and absolute URIs are those that include the protocol. Relative URIs are perfectly valid. The protocol is required in an absolute URI. If it is omitted, it's a relative URI. This is not the browser making assumptions, this is how URIs are defined.

Comment Re:That would not hold in europe (Score 1) 457

If any license that the user agreed to says "for non-commercial use", then it really doesn't matter whether it's patented or copyrighted: you agreed not to use it for commercial use. What matters is whether that license agreement is valid, and in some coutries, even those in the EU, it is.

Comment Re:That would not hold in europe (Score 1) 457

3) I am pretty sure it is non valid, in europe, to impose a contract/EULA in an item which is only viewable AFTER the sale.

That's true in the Netherlands. However, the EULA does not need to be actually presented prior to the sale. As long as the buyer is notified of the fact that there is an EULA beforehand, has some possibility to view it, and agrees to the EULA (even by clicking "I Agree" during installation) after the sale, the EULA constitutes a contract.

For example, my Windows 7 box mentions (translated) "You must agree to the enclosed license terms before you can use this software. If you wish to read the license terms, visit www.microsoft.com/useterms. For use on a single computer or device." This sounds like it satisfies the criteria.

According to the same article, though, if I manage to install Windows 7 without breaking any laws and without clicking "I Agree", then the EULA does not apply to me, and Dutch copyright law allows me to use Windows anyway.

Science

What Is Time? One Researcher Shares His Exploration 578

Physicist Sean Carroll has built up a bit of a name for himself by tackling one of the age old questions that no one has been able to fully explain: What is time? Earlier this month he gave an interview with Wired where he tried to explain his theories in layman's terms. "I’m trying to understand how time works. And that’s a huge question that has lots of different aspects to it. A lot of them go back to Einstein and spacetime and how we measure time using clocks. But the particular aspect of time that I’m interested in is the arrow of time: the fact that the past is different from the future. We remember the past but we don’t remember the future. There are irreversible processes. There are things that happen, like you turn an egg into an omelet, but you can’t turn an omelet into an egg."

Comment Re:I'm waiting for "HTML5VideoBlock" (Score 2, Informative) 372

Also, and I may be wrong here to please correct me if I am, I was under the impression that some video/audio content delivered via the new HTML5 facilities would be presented without the need for any scripting support?

You're correct, but NoScript doesn't block only scripts. It includes the option to block <video> content, and some other non-scripted annoyances.

Comment Re:Eyecandy in cost of usability (Score 1) 1124

From your link:

7 Can any applications use the license?

The license is available for applications on any platform, except for applications that compete directly with the five Office applications that currently have the new UI (Microsoft Word, Excel, PowerPoint, Outlook, and Access). We wanted to make the IP available broadly to partners because it has benefits to Microsoft and the Office Ecosystem. At the same time, we wanted to preserve the uniqueness of the Office UI for the core Office productivity applications.

Firefox does not compete with Word, Excel, PowerPoint, Outlook or Access. Microsoft might claim Thunderbird competes with Outlook, if the Mozilla folks want to add ribbons there as well, but unless the actual license text is substantially different, there should not be any problem for Firefox other than possibly users' objections.

Slashdot Top Deals

Real Programmers don't eat quiche. They eat Twinkies and Szechwan food.

Working...