bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hurdish TCP stack


From: Ludovic Courtès
Subject: Re: Hurdish TCP stack
Date: Thu, 03 Apr 2008 17:52:49 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

<olafBuddenhagen@gmx.net> writes:

> Actually, most people will consider it easier to use it from a C program
> as well: For one, it means that you can use the *same* knowledge for
> doing stuff on the shell, and for writing C programs. That's a very
> valuable property IMHO.

Isn't it easier to write:

  port = hurd_file_name_lookup ("/stuff", ...);
  do_foo (port);

than:

  int fd;

  fd = open ("/stuff/ctl", ...);
  if (fd < 0)
    ...
  count = write (fd, "do_foo", 6);
  if (count < 6)
    ...
  close (fd);

Of course, you could provide the latter as a `do_foo ()' function in the
library, but then, you'd pay the overhead for the textual representation
without even seeing it.

Thanks,
Ludovic.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]