ps: built-in test code, etc.

This commit is contained in:
albert
2004-10-12 00:12:25 +00:00
parent 630b655893
commit 6ec1cff342
7 changed files with 67 additions and 20 deletions

View File

@@ -14,9 +14,6 @@ EXTERN_C_BEGIN
extern int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t n);
extern int escape_str(char *restrict dst, const char *restrict src, int bufsize, int maxglyphs);
extern int octal_escape_str(char *restrict dst, const char *restrict src, size_t n);
extern int simple_escape_str(char *restrict dst, const char *restrict src, size_t n);
extern int escape_command(char *restrict const outbuf, const proc_t *restrict const pp, int bytes, int glyphs, unsigned flags);
EXTERN_C_END

View File

@@ -204,7 +204,7 @@ static void init_libproc(void){
if(linux_version_code > LINUX_VERSION(2, 4, 0)){
Hertz = find_elf_note(AT_CLKTCK);
if(Hertz!=NOTE_NOT_FOUND) return;
fprintf(stderr, "2.4 kernel w/o ELF notes? -- report this\n");
fprintf(stderr, "2.4+ kernel w/o ELF notes? -- report this\n");
}
old_Hertz_hack();
}