| 937 | /* for API */ |
| 938 | |
| 939 | static int lwp_fd_new(int fdt_type) |
| 940 | { |
| 941 | struct dfs_fdtable *fdt; |
| 942 | |
| 943 | if (fdt_type) |
| 944 | { |
| 945 | fdt = dfs_fdtable_get_global(); |
| 946 | } |
| 947 | else |
| 948 | { |
| 949 | fdt = dfs_fdtable_get(); |
| 950 | } |
| 951 | return fdt_fd_new(fdt); |
| 952 | } |
| 953 | |
| 954 | static struct dfs_file *lwp_fd_get(int fdt_type, int fd) |
| 955 | { |
no test coverage detected