#/** * @package Akismet */ /* Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Automattic - Anti-spam Team Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ // Make sure we don't expose any info if called directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 62.109.13.187 / Your IP : 216.73.216.11 [ Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28 System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : mosrembit ( 6064) PHP Version : 8.2.28 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/src/snapapi26-1.0.5/ |
Upload File : |
/* snumbd_drv.c
Copyright (C) Acronis, 2004
Copyright (c) CyberProtect
*/
#include "snconfig.h"
#include "snumbd.h"
#include "debug.h"
#include "version.h"
#ifdef HAVE_UNLOCKED_IOCTL
long snumbdctl3_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
#else
int snumbdctl4_ioctl(struct inode *ino, struct file *file, unsigned int cmd,
unsigned long arg);
#endif
#ifdef HAVE_COMPAT_IOCTL
long snumbdctl_compat_ioctl(struct file *filep, unsigned int cmd, unsigned long arg);
#endif
int snumbdctl_open(struct inode *ino, struct file *file);
ssize_t snumbdctl_read(struct file * filp, char * buf, size_t count, loff_t *ppos);
ssize_t snumbdctl_write(struct file *filp, const char *buf, size_t count, loff_t *ppos);
unsigned int snumbdctl_poll(struct file *filp, poll_table *wait);
int snumbdctl_mmap(struct file * file, struct vm_area_struct * vma);
int snumbdctl_release(struct inode *ino, struct file *file);
void register_ioctl32(void);
void unregister_ioctl32(void);
static int snumbdctl_major;
static int snumbd_major;
const int * const snumbd_major_p = &snumbd_major;
static const struct file_operations snumbdctl_fops = {
owner: THIS_MODULE,
#ifdef HAVE_UNLOCKED_IOCTL
unlocked_ioctl: snumbdctl3_ioctl,
#else
ioctl: snumbdctl4_ioctl,
#endif
open: snumbdctl_open,
read: snumbdctl_read,
write: snumbdctl_write,
poll: snumbdctl_poll,
mmap: snumbdctl_mmap,
release: snumbdctl_release,
#ifdef HAVE_COMPAT_IOCTL
compat_ioctl: snumbdctl_compat_ioctl,
#endif
};
static int __init snumbd_init(void)
{
int ret;
ret = register_chrdev(0, SNUMBDCTL_NAME, &snumbdctl_fops);
if (ret < 0)
goto out_info;
snumbdctl_major = ret;
ret = register_blkdev(0, SNUMBD_NAME);
if (ret < 0) {
unregister_chrdev(snumbdctl_major, SNUMBDCTL_NAME);
goto out_info;
}
snumbd_major = ret;
register_ioctl32();
ret = 0;
out_info:
sa_info("Snumbd(v%d.%d.%d.%d) init %s. Ctl major %d, blk major %d.\n",
COMMON_VMAJOR, COMMON_VMINOR, COMMON_VSUBMINOR, BUILD_NUMBER,
!ret ? "OK" : "failed",
snumbdctl_major, snumbd_major);
return ret;
}
static void __exit snumbd_exit(void)
{
unregister_chrdev(snumbdctl_major, SNUMBDCTL_NAME);
unregister_blkdev(snumbd_major, SNUMBD_NAME);
unregister_ioctl32();
sa_info("Snumbd unloading...%s", "\n");
}
module_init(snumbd_init);
module_exit(snumbd_exit);
MODULE_AUTHOR("CyberProtect");
MODULE_DESCRIPTION("CyberProtect User Mode Block Device");
MODULE_LICENSE("GPL");
MODULE_VERSION(COMMON_MOD_VERSION);
MODULE_INFO(supported, "external");