분류 전체보기683 getenv char * getenv(const char *name) #include #include char *__findenv(const char *name, int *offset); /* * __findenv -- *Returns pointer to value associated with name, if any, else NULL. *Sets offset to be the offset of the name/value combination in the *environmental array, for use by setenv(3) and unsetenv(3). *Explicitly removes '=' in argument name. * *This routine *should* be a static; don't us.. 2016. 7. 9. exit void exit(int status) #include #include #include #include #include "atexit.h" #include "thread_private.h" /* * This variable is zero until a process has created a thread. * It is used to avoid calling locking functions in libc when they * are not required. By default, libc is intended to be(come) * thread-safe, but without a (significant) penalty to non-threaded * processes. */ int __isthreaded .. 2016. 7. 9. heapsort int heapsort(void *vbase, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) #include #include #include /* * Swap two areas of size number of bytes. Although qsort(3) permits random * blocks of memory to be sorted, sorting pointers is almost certainly the * common case (and, were it not, could easily be made so). Regardless, it * isn't worth optimizing; the SWAP's get sped up .. 2016. 7. 9. malloc void * malloc(size_t size) #define SOME_JUNK0xd0/* as in "Duh" :-) */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "thread_private.h" /* * The basic parameters you can tweak. * * malloc_pageshiftpagesize = 1 next; memset(p, 0, sizeof *p); return p; } static struct pginfo * alloc_pginfo(void) { struct pginfo.. 2016. 7. 9. 이전 1 ··· 148 149 150 151 152 153 154 ··· 171 다음