aboutsummaryrefslogtreecommitdiff
path: root/sys/libkern
Commit message (Collapse)AuthorAgeFilesLines
* Extend to handle all radix < 37Poul-Henning Kamp1996-01-241-1/+2
| | | | Notes: svn path=/head/; revision=13617
* Moved BCD declarations to the correct header (libkern.h).Bruce Evans1996-01-161-25/+25
| | | | | | | | | | | Fixed BCD declarations. They didn't match their definitions... libkern.h, bcd.c: KNFised. `indent' worked 99% perfectly on bcd.c. It worked 99% _imperfectly_ on subr_prf.c. Notes: svn path=/head/; revision=13459
* My wife is busy making me a new conical hat, so you don't need toPoul-Henning Kamp1996-01-151-2/+2
| | | | | | | | send any to me this time. Commited an old copy of this files where the tables were swapped. Duh!. Notes: svn path=/head/; revision=13445
* Add the bcd <-> bin and hex -> ascii tables.Poul-Henning Kamp1996-01-151-0/+34
| | | | Notes: svn path=/head/; revision=13436
* recording cvs-1.6 file deathPeter Wemm1995-12-302-193/+0
| | | | Notes: svn path=/cvs2svn/branches/ATT/; revision=13122
* Copied mcount.c from the library again. #include'ing it via a relativeBruce Evans1995-12-301-3/+325
| | | | | | | path to a possibly-nonexistent place didn't work well enough. Sigh. Notes: svn path=/head/; revision=13116
* Implemented non-statistical kernel profiling. This is based onBruce Evans1995-12-291-179/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | looking at a high resolution clock for each of the following events: function call, function return, interrupt entry, interrupt exit, and interesting branches. The differences between the times of these events are added at appropriate places in a ordinary histogram (as if very fast statistical profiling sampled the pc at those places) so that ordinary gprof can be used to analyze the times. gmon.h: Histogram counters need to be 4 bytes for microsecond resolutions. They will need to be larger for the 586 clock. The comments were vax-centric and wrong even on vaxes. Does anyone disagree? gprof4.c: The standard gprof should support counters of all integral sizes and the size of the counter should be in the gmon header. This hack will do until then. (Use gprof4 -u to examine the results of non-statistical profiling.) config/*: Non-statistical profiling is configured with `config -pp'. `config -p' still gives ordinary profiling. kgmon/*: Non-statistical profiling is enabled with `kgmon -B'. `kgmon -b' still enables ordinary profiling (and distables non-statistical profiling) if non-statistical profiling is configured. Notes: svn path=/head/; revision=13107
* Removed almost all traces of libkern.a. The objects that were inBruce Evans1995-12-261-37/+0
| | | | | | | | | | libkern.a are now specified by listing their source files in files.${MACHINE}. The list is machine-dependent to save space. All the necessary object for each machine must be linked into the kernel in case an lkm wants one. Notes: svn path=/head/; revision=13031
* Added prototypes.Bruce Evans1995-12-262-5/+15
| | | | Notes: svn path=/head/; revision=13030
* Add-back strlen.c to the library in case a kernel is compiled withoutNate Williams1995-12-191-6/+5
| | | | | | | | optimization. Gcc only in-lines calls to strlen with optimization turned on. Notes: svn path=/head/; revision=12932
* Add qsort() to libkern, taken from libc.Poul-Henning Kamp1995-11-082-1/+175
| | | | Notes: svn path=/head/; revision=12151
* Comment out, but don't delete stuff we don't use.Poul-Henning Kamp1995-10-051-6/+18
| | | | | | | Classify in "gcc stuff" and "legitimate stuff". Notes: svn path=/head/; revision=11223
* Rearrange the inner loop of scanc() to get better code on i*86'sBruce Evans1995-07-111-2/+10
| | | | | | | | | | | | | | (on an i486, 10 cycles (+ cache misses) instead of 15). The change should be a no-op if the compiler is any good. The best possible i*86 code for the same algorithm is only 1 more cycle faster on i486's so I don't want to bother implementing an assembler version. scanc() is a bottleneck for OPOST processing. It is naturally about 4 times as slow as bcopy() on 32-bit systems. Notes: svn path=/head/; revision=9485
* Remove trailing whitespace.Rodney W. Grimes1995-05-304-8/+8
| | | | Notes: svn path=/head/; revision=8876
* Remove trailing whitespace.Rodney W. Grimes1995-05-302-3/+3
| | | | Notes: svn path=/head/; revision=8870
* Do not install libkern into /usr/lib, blank target install: added.Rodney W. Grimes1995-03-231-1/+3
| | | | Notes: svn path=/head/; revision=7268
* <libkern/libkern.h> has moved to <sys/libkern.h> (repository copy).Poul-Henning Kamp1995-03-174-8/+8
| | | | | | | | Since /usr/include/libkern doesn't and shouldn't exist, this is the least evil way to handle this. Notes: svn path=/head/; revision=7109
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'Bruce Evans1995-03-161-1/+3
| | | | | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones. Notes: svn path=/head/; revision=7090
* Add inet_ntoa() and replace ARP's private routine with same.Garrett Wollman1995-03-162-5/+54
| | | | Notes: svn path=/head/; revision=7088
* Add strncmp() function..I need it andUgen J.S. Antsilevich1995-02-272-2/+58
| | | | | | | hope nobody will eat me alive for this..:) Notes: svn path=/head/; revision=6761
* Always build libkern_p.a. `NOPROFILE' should only control user libraries.Bruce Evans1995-01-101-1/+3
| | | | Notes: svn path=/head/; revision=5460
* Hide the declaration of ffs() if an inline ffs() is implemented.Bruce Evans1994-11-141-1/+3
| | | | | | | | | | | | | | | | | I couldn't find a better way to avoid compiler warnings about redundant and/or inconsistent declaration of ffs(). I'd like to be able to declare prototypes in general headers without committing to implementing them as `static inline' or `extern', but there seems to be no way to do this with gcc-2.6.1. E.g., int foo(void); static __inline int foo(void) { return 1; } causes a warning about the linkage mismatch, while the opposite order causes a warning about the redundant declaration. Notes: svn path=/head/; revision=4477
* I'm going to nuke strtol() for now. Now I need strncmp() and ratherJordan K. Hubbard1994-10-261-2/+2
| | | | | | | | | | that add it too, and end up fighting an unwanted battle right now, I'm just going to back away from both and start including my own private copies of everything. I'm not going to use _anything_ from libkern until we decide its fate. Notes: svn path=/head/; revision=3891
* Add strtol() to libkern in support of some other work I'm doing.Jordan K. Hubbard1994-10-252-3/+131
| | | | | | | | | I just know I'm going to get flamed for adding for the miserable abortion that is libkern, but what am I supposed to do? At least I didn't drag in the ctype stuff! :-) Notes: svn path=/head/; revision=3854
* Use new-style declarations for min/max functions so thatBruce Evans1994-09-181-62/+11
| | | | | | | | | | | | | | | | | | | "gcc -Wstrict-prototypes" doesn't emit warnings about them. Write each min/max functions on a single line so that the similarity and triviality of the functions is more obvious. Put the quad min/max functions in the correct place (aphabetical order). The u_quad min/max functions are missing. Only 3 or 4 of the min/max functions are actually used. sys/socketvar.h ``should use "lmin" but it doesn't exist now''. lmin does exist now, but isn't used. Since we depend on gcc for `inline', perhaps we should depend on it for __typeof and function-expressions and use only macros min() and max() that work for any types (I'm not sure how to handle mixed types). Notes: svn path=/head/; revision=2872
* Added -DKERNEL and added support for kernel profiling.Paul Richards1994-09-152-3/+7
| | | | | | | Reviewed by: Bruce Notes: svn path=/head/; revision=2799
* Added qmin and qmax functions to deal with quad_t's.David Greenman1994-08-301-1/+14
| | | | Notes: svn path=/head/; revision=2412
* Added $Id$David Greenman1994-08-0235-108/+65
| | | | Notes: svn path=/head/; revision=1817
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-272-0/+251
| | | | Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-2435-0/+2626
Notes: svn path=/head/; revision=1541