File: misc.h

package info (click to toggle)
poc-streamer 0.4.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,000 kB
  • sloc: ansic: 8,782; makefile: 307; ruby: 152; perl: 135; yacc: 115; lex: 36; sh: 30
file content (16 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * (c) 2005 bl0rg.net
 *
 * Misc functions (mostly unix workarounds)
 */

#ifndef MISC_H__
#define MISC_H__

#include <sys/types.h>

int unix_write(int fd, unsigned char *buf, size_t size);
int unix_read(int fd, unsigned char *buf, size_t size);
void format_time(unsigned long time, char *str, unsigned int len);

#endif /* MISC_H__ */