]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/include/libc.h
libsec: use tsmemcmp() when comparing hashes, use mpfield() for ecc, use mptober...
[plan9front.git] / sys / include / libc.h
index a16ab4ef4beaa24f4311e3edcc87295417c9b4aa..bd273d8b8e23903c313485889927a100c4ee0bae 100644 (file)
@@ -41,10 +41,12 @@ extern      int     tokenize(char*, char**, int);
 
 enum
 {
-       UTFmax          = 3,            /* maximum bytes per rune */
+       UTFmax          = 4,            /* maximum bytes per rune */
        Runesync        = 0x80,         /* cannot represent part of a UTF sequence (<) */
        Runeself        = 0x80,         /* rune and UTF sequences are the same (<) */
        Runeerror       = 0xFFFD,       /* decoding error in UTF */
+       Runemax         = 0x10FFFF,     /* 21 bit rune */
+       Runemask        = 0x1FFFFF,     /* bits used by runes (see grep) */
 };
 
 /*
@@ -95,10 +97,10 @@ extern      ulong   msize(void*);
 extern void*   mallocalign(ulong, ulong, long, ulong);
 extern void*   calloc(ulong, ulong);
 extern void*   realloc(void*, ulong);
-extern void    setmalloctag(void*, ulong);
-extern void    setrealloctag(void*, ulong);
-extern ulong   getmalloctag(void*);
-extern ulong   getrealloctag(void*);
+extern void    setmalloctag(void*, uintptr);
+extern void    setrealloctag(void*, uintptr);
+extern uintptr getmalloctag(void*);
+extern uintptr getrealloctag(void*);
 extern void*   malloctopoolblock(void*);
 
 /*
@@ -328,8 +330,6 @@ extern      double  cputime(void);
 extern long    times(long*);
 extern long    tm2sec(Tm*);
 extern vlong   nsec(void);
-extern char*   isotime(Tm*);
-extern char*   isodate(Tm*);
 
 extern void    cycles(uvlong*);        /* 64-bit value of the cycle counter if there is one, 0 if there isn't */
 
@@ -474,7 +474,6 @@ extern      void    rsleep(Rendez*);        /* unlocks r->l, sleeps, locks r->l again */
 extern int     rwakeup(Rendez*);
 extern int     rwakeupall(Rendez*);
 extern void**  privalloc(void);
-extern void    privfree(void**);
 
 /*
  *  network dialing