public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Andries Brouwer <aebr@win.tue.nl>
Cc: Jeff Garzik <jgarzik@pobox.com>, Jakub Jelinek <jakub@redhat.com>,
	Dan Aloni <da-x@gmx.net>,
	Linux Kernel List <linux-kernel@vger.kernel.org>,
	torvalds@transmeta.com
Subject: Re: [BK PATCH] One strdup() to rule them all
Date: Fri, 12 Sep 2003 11:57:20 +1000	[thread overview]
Message-ID: <20030912030305.6C1442C089@lists.samba.org> (raw)
In-Reply-To: Your message of "Thu, 11 Sep 2003 18:22:23 +0200." <20030911162223.GB3989@wohnheim.fh-wedel.de>

In message <20030911162223.GB3989@wohnheim.fh-wedel.de> you write:
> Andries, would you still object this function?
> 
> char *strdup(const char *s, int flags)
> {
> 	char *rv = kmalloc(strlen(s)+1, flags);
> 	if (rv)
> 		strcpy(rv, s);
> 	return rv;
> }

No.  We've been here.  There are only around 50 users/potential users
of such a thing in the kernel, and seven implementations, but Linus
doesn't like it, so let's not waste more time on this please.

Rusty.

PS. kstrdrup is a better name since the args are different, a-la
    kmalloc.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

  reply	other threads:[~2003-09-12  3:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-25 16:14 [BK PATCH] One strdup() to rule them all Dan Aloni
2003-08-25 16:25 ` Jakub Jelinek
2003-08-25 16:34   ` Dan Aloni
2003-08-25 17:05   ` Jeff Garzik
2003-08-25 17:23     ` Dan Aloni
2003-08-25 17:49     ` Andries Brouwer
2003-09-11 16:22       ` Jörn Engel
2003-09-12  1:57         ` Rusty Russell [this message]
2003-09-12  3:12           ` Jeff Garzik
2003-09-12  4:16             ` Rusty Russell
2003-09-12  8:49               ` Bernd Petrovitsch
2003-08-25 16:37 ` Jörn Engel
2003-08-25 16:55   ` Dan Aloni
2003-08-25 17:02     ` Jörn Engel
2003-08-25 17:04   ` Jeff Garzik
2003-08-25 17:08     ` Jörn Engel
2003-08-25 17:22       ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030912030305.6C1442C089@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=da-x@gmx.net \
    --cc=jakub@redhat.com \
    --cc=jgarzik@pobox.com \
    --cc=joern@wohnheim.fh-wedel.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox