cuse.c (ac60e801297c4366f5931396970d09f83a564780) cuse.c (9fb69c9d9d05d902ff05257ad85c0c5640bb0b5c)
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 2010-2013 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1123 unchanged lines hidden (view full) ---

1132 case CUSE_IOCTL_SET_PFH:
1133
1134 cuse_lock();
1135 pccmd = cuse_server_find_command(pcs, curthread);
1136
1137 if (pccmd != NULL) {
1138 pcc = pccmd->client;
1139 for (n = 0; n != CUSE_CMD_MAX; n++) {
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 2010-2013 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1123 unchanged lines hidden (view full) ---

1132 case CUSE_IOCTL_SET_PFH:
1133
1134 cuse_lock();
1135 pccmd = cuse_server_find_command(pcs, curthread);
1136
1137 if (pccmd != NULL) {
1138 pcc = pccmd->client;
1139 for (n = 0; n != CUSE_CMD_MAX; n++) {
1140 pcc->cmds[n].sub.per_file_handle = *(unsigned long *)data;
1140 pcc->cmds[n].sub.per_file_handle = *(uintptr_t *)data;
1141 }
1142 } else {
1143 error = ENXIO;
1144 }
1145 cuse_unlock();
1146 break;
1147
1148 case CUSE_IOCTL_CREATE_DEV:

--- 735 unchanged lines hidden ---
1141 }
1142 } else {
1143 error = ENXIO;
1144 }
1145 cuse_unlock();
1146 break;
1147
1148 case CUSE_IOCTL_CREATE_DEV:

--- 735 unchanged lines hidden ---