All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rick Hohensee <humbubba@smarty.smart.net>
To: jlundell@pobox.com (Jonathan Lundell)
Cc: linux-kernel@vger.kernel.org
Subject: Re: mktime in include/linux
Date: Fri, 22 Jun 2001 12:49:19 -0400 (EDT)	[thread overview]
Message-ID: <200106221649.MAA11881@smarty.smart.net> (raw)
In-Reply-To: <p05100301b759107790aa@[207.213.214.37]> from "Jonathan Lundell" at Jun 22, 2001 08:16:19 AM

> 
> At 1:43 PM +0200 2001-06-22, Erik Mouw wrote:
> >On Thu, Jun 21, 2001 at 10:30:40PM -0400, Rick Hohensee wrote:
> >>  Why does Linux have a mktime routine fully coded in linux/time.h that
> >>  conflicts directly with the ANSI C standard library routine of the same
> >>  name? It breaks a couple things against libc5, including gcc 3.0. OK, you
> >>  don't care about libc5. It's still pretty weird. Wierd? Weird.
> >
> >This has been brought up many times on this list: you are not supposed
> >to include kernel headers in userland.
> 
> That's not the problem, I think. Most of time.h, including the 
> definition of mktime, is #ifdef __KERNEL__, so it shouldn't be 
> breaking anything in userland even if you do include it. And you 
> might, in order to obtain the interface definition of struct 
> timespec. What's weird is: why is __KERNEL__ getting #defined in 
> Rick's userland?
> 
> There can't, of course, be any blanket prohibition against using 
> kernel headers in userland. Think about ioctl.h, for example.

Sounds like a clue. Thanks.

Rick

> -- 
> /Jonathan Lundell.
> 


      reply	other threads:[~2001-06-22 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-22  2:30 mktime in include/linux Rick Hohensee
2001-06-22 11:43 ` Erik Mouw
2001-06-22 15:16   ` Jonathan Lundell
2001-06-22 16:49     ` Rick Hohensee [this message]

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=200106221649.MAA11881@smarty.smart.net \
    --to=humbubba@smarty.smart.net \
    --cc=jlundell@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.