libv.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #ifndef __LIBV_H
  10. #define __LIBV_H
  11. #ifndef _RESEARCH_SOURCE
  12. This header file is not defined in ANSI or POSIX
  13. #endif
  14. #pragma lib "/$M/lib/ape/libv.a"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. extern void srand(unsigned int);
  19. extern int rand(void);
  20. extern int nrand(int);
  21. extern int32_t lrand(void);
  22. extern double frand(void);
  23. extern char *getpass(char *);
  24. extern int tty_echoon(int);
  25. extern int tty_echooff(int);
  26. extern int min(int, int);
  27. extern int max(int, int);
  28. extern void _perror(char *);
  29. extern char *_progname;
  30. extern int nap(int);
  31. extern char *setfields(char *);
  32. extern int getfields(char *, char **, int);
  33. extern int getmfields(char *, char **, int);
  34. #ifdef __cplusplus
  35. };
  36. #endif
  37. #endif /* __LIBV_H */