2012-12-24 15:36:14 +04:00
|
|
|
#ifndef __CR_FILE_IDS_H__
|
|
|
|
#define __CR_FILE_IDS_H__
|
2012-02-28 18:27:28 +04:00
|
|
|
|
|
|
|
#include "compiler.h"
|
2013-01-09 17:02:47 +04:00
|
|
|
#include "asm/types.h"
|
2012-02-28 18:27:28 +04:00
|
|
|
#include "rbtree.h"
|
|
|
|
|
2013-02-15 17:33:06 +04:00
|
|
|
#include "protobuf/fdinfo.pb-c.h"
|
2012-07-12 13:06:00 +04:00
|
|
|
|
2012-03-24 22:02:10 +04:00
|
|
|
#define FD_PID_INVALID (-2U)
|
2012-05-28 15:56:00 +04:00
|
|
|
#define FD_DESC_INVALID (-3U)
|
2012-02-28 18:27:28 +04:00
|
|
|
|
2012-03-24 22:02:10 +04:00
|
|
|
struct fdinfo_entry;
|
2014-02-05 16:17:18 +04:00
|
|
|
struct stat;
|
|
|
|
|
2014-04-21 18:23:29 +04:00
|
|
|
struct fd_parms;
|
|
|
|
extern int fd_id_generate(pid_t pid, FdinfoEntry *fe, struct fd_parms *p);
|
|
|
|
extern int fd_id_generate_special(struct fd_parms *p, u32 *id);
|
2012-02-28 18:27:28 +04:00
|
|
|
|
2012-12-25 22:40:24 +04:00
|
|
|
#endif /* __CR_FILE_IDS_H__ */
|