taskThe GNU Hurd - Tasks: task #5726, GCC built-in functions

 
 

task #5726: GCC built-in functions

Submitted by:  Thomas Schwinge <tschwinge>
Submitted on:  Mon 17 Jul 2006 12:38:51 PM UTC  
 
Category: GNU MachShould Start On: Sun 16 Jul 2006 10:00:00 PM UTC
Should be Finished on: Sun 16 Jul 2006 10:00:00 PM UTCPriority: 1 - Later
Status: In ProgressPrivacy: Public
Percent Complete: 60%Assigned to: Samuel Thibault <sthibaul>
Open/Closed: OpenPlanned Release: GNU Mach 1.4
Effort: 0.00
Wiki-like text discussion box: 

Have implementation which should just be advertised: putchar(), puts()
Have odd implementation: exit()
Have implementation somewhere, should be shared (just put as macro in ctype.h ?): islower() (kd_islower), isupper() (kd_isupper), isdigit(), isspace()
Have no implementation: strstr(), ffs()

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 17 Jul 2006 12:38:51 PM UTC, original submission:

How to deal with GCC built-in functions?

22:52 <bddebian> We need prototypes for memcpy and memset in gnumach. It would alleviate alot of build warnings.
22:53 <antrik> in the linux drivers or in gnumach itself?
22:54 <bddebian> gnumach itself
22:54 <bddebian> I'm trying to find a "global" header file to stick them in :-)
22:55 <bddebian> port.h maybe
22:56 <antrik> do these functions exist anywhere in the source, or does it rely on compiler builtins?...
22:56 <bddebian> They are implicetly defined in several programs
22:57 <bddebian> ipc_entry.c for example:
22:57 <bddebian> if (!it_entries_reallocable(oits))
22:57 <bddebian> (void) memcpy((void ) table, (const void ) otable,
22:57 <bddebian> osize * sizeof(struct ipc_entry));
23:14 <bddebian> So, since all you guru's are here, what header file should I put prototypes for memcpy and memset in? :-)
23:15 <marcus> oh you are writing an allocator? :)
23:15 <marcus> malloc.h
23:15 <marcus> oh
23:16 <neal> memcpy and memset are usually in string.h

Thomas Schwinge <tschwinge>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one

Digest:
   task dependencies.

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 10 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 16 Nov 2006 12:22:33 PM UTCtschwingeDependencies-=>task #6111 is dependent
Fri 10 Nov 2006 12:12:16 AM UTCsthibaulWiki-like text discussion boxIt's done for memcpy/memset/str/printf*, should check whether there are still other functions=>Have implementation which should just be advertised: putchar(), puts() Have odd implementation: exit() Have implementation somewhere, should be shared (just put as macro in ctype.h ?): islower() (kd_islower), isupper() (kd_isupper), isdigit(), isspace() Have no implementation: strstr(), ffs()
Wed 08 Nov 2006 01:56:44 AM UTCsthibaulPercent Complete20%=>60%
  Wiki-like text discussion boxIt's done for memcpy/memset, but there are other functions, like printf (Barry is working on that one) and others (memcmp, ...)=>It's done for memcpy/memset/str/printf*, should check whether there are still other functions
Sun 05 Nov 2006 09:57:10 PM UTCsthibaulPercent Complete0%=>20%
  Wiki-like text discussion boxSamuel, Barry, this can be closed now, I guess? Or is anything left to be done w.r.t. this task? =>It's done for memcpy/memset, but there are other functions, like printf (Barry is working on that one) and others (memcmp, ...)
Sun 05 Nov 2006 09:47:22 PM UTCtschwingeStatusNone=>In Progress
  Assigned toNone=>sthibaul
  Wiki-like text discussion box=>Samuel, Barry, this can be closed now, I guess? Or is anything left to be done w.r.t. this task?
  Carbon-Copy-=>Added -unavailable-

Back to the top


Powered by Savane 3.1-cleanup