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

 
 

task #5726: GCC built-in functions

Submitter:  Thomas Schwinge <tschwinge>
Submitted:  Mon 17 Jul 2006 12:38:51 PM UTC
   
 
Category:  GNU Mach Should Start On:  Sun 16 Jul 2006 10:00:00 PM UTC
Should be Finished on:  Sun 16 Jul 2006 10:00:00 PM UTC Priority:  * 1 - Later
Status:  In Progress Privacy:  Public
Assigned to:  sthibaul Percent Complete:  60%
Open/Closed:  Open Planned 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()

* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator

 

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

Attach Files:
   
   
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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 10 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-11-16 tschwinge Dependencies- task #6111 is dependent
2006-11-10 sthibaul Wiki-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()
2006-11-08 sthibaul Percent 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
2006-11-05 sthibaul Percent 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, ...)
2006-11-05 tschwinge StatusNone 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 -email is unavailable-

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code