search for: mkdev

Displaying 20 results from an estimated 123 matches for "mkdev".

Did you mean: mdev
2006 Jan 30
1
nearly there
...ocket wouldn't connect and it works now. However after auth, imap crashes with signal 6. This happens on 1 machine, the other (unixware too) work fine. The stack trace doesn't make much sense here it is anway... Core image of imap (process p1) created CORE FILE [makedev in cmd-status.c@sys/mkdev.h] SIGNALED 8 (fpe code[FPE_INTDIV] address[0x804e38b]) in p1 76: return __makedev(ver, maj, min); debug> Stack Trace for p1, Program imap *[0] makedev(maj=16, min=1, presumed: 0x8094258) [cmd-status.c@sys/mkdev.h@76] [1] cmd_store(cmd=0x0, presumed: 0x1, 0x80947a0) [cmd-store.c@139] [2] _cmd...
2017 Mar 01
2
[PATCH libguestfs] Use AC_HEADER_MAJOR to find definitions of major, minor, makedev.
...@@ strerror strndup symlinkat sys_select +sys_types sys_wait vasprintf vc-list-files diff --git a/cat/ls.c b/cat/ls.c index e0b5ff8..7568a5f 100644 --- a/cat/ls.c +++ b/cat/ls.c @@ -31,7 +31,14 @@ #include <assert.h> #include <time.h> #include <libintl.h> + +#if MAJOR_IN_MKDEV +#include <sys/mkdev.h> +#elif MAJOR_IN_SYSMACROS #include <sys/sysmacros.h> +#else +#include <sys/types.h> +#endif #include "human.h" #include "getprogname.h" diff --git a/daemon/mknod.c b/daemon/mknod.c index f8640ea..35dad15 100644 --- a/daemon/mknod.c...
2004 Oct 08
0
[Bug 1893] New: Interix fails build due to makedev() as wrong macro name
...vial Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: tv@duh.org QAContact: rsync-qa@samba.org Under Interix (Windows Services for Unix), the build of rsync fails at link because flist.c is calling makedev(), which is actually named mkdev() on Interix. To make rsync compatible with this, I suggest the following change (similar to what pkgsrc.org uses at the moment to make rsync work on Interix). --- rsync.h.orig +++ rsync.h @@ -255,6 +255,9 @@ enum msgcode { #if MAJOR_IN_MKDEV #include <sys/mkdev.h> +# if !defined(makede...
2005 Feb 17
2
[Bug 2357] error when compiling rsync under Windows Services for Unix
https://bugzilla.samba.org/show_bug.cgi?id=2357 ------- Additional Comments From happyspaceinvader@btopenworld.com 2005-02-17 11:09 ------- What I meant to ask was, can this be automatically determined somehow so other users of Windows Services for Unix don't have to hack flist.c like I did? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are
2004 Jun 02
0
[PATCH] kill 2.4 dev_t vs kdev_t crap
...dev; -#endif + if (fe->attribs == OCFS_ATTRIB_CHAR) inode->i_mode |= S_IFCHR; else if (fe->attribs == OCFS_ATTRIB_BLOCK) @@ -1892,18 +1884,8 @@ inode->i_mode |= S_IFSOCK; inode->i_rdev = OCFS_NODEV; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) - dev = MKDEV (fe->dev_major, fe->dev_minor); -#else - kdev = MKDEV (fe->dev_major, fe->dev_minor); -#endif - -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) - init_special_inode (inode, inode->i_mode, dev); -#else - init_special_inode (inode, inode->i_mode, - kdev_t_to_nr(kd...
2006 Jan 02
0
Getting Cannot compute sizeof (int) on rsync-2.6.6
Hello all, I searched the archives but could not find an answer to this. I was running configure on an RS6000 with Aix 5.1 and received the following error: checking whether sys/types.h defines makedev... no checking sys/mkdev.h usability... no checking sys/mkdev.h presence... no checking for sys/mkdev.h... no checking sys/sysmacros.h usability... yes checking sys/sysmacros...
2013 Aug 12
1
[PATCH v2 1/7] Intel MIC Host Driver for X100 family.
...+ dev_err(&pdev->dev, "Cannot remap Aperture BAR\n"); > + rc = -EIO; > + goto unmap_mmio; > + } > + > + mdev->ops->init(mdev); > + > + pci_set_drvdata(pdev, mdev); > + > + mdev->sdev = device_create(g_mic.mic_class, &pdev->dev, > + MKDEV(MAJOR(g_mic.mdev_id), mdev->id), NULL, "%s", mdev->name); > + if (IS_ERR(mdev->sdev)) { > + rc = PTR_ERR(mdev->sdev); > + dev_err(&pdev->dev, "device_create failed rc %d\n", rc); > + goto unmap_aper; > + } > + > + rc = sysfs_create_grou...
2013 Aug 12
1
[PATCH v2 1/7] Intel MIC Host Driver for X100 family.
...+ dev_err(&pdev->dev, "Cannot remap Aperture BAR\n"); > + rc = -EIO; > + goto unmap_mmio; > + } > + > + mdev->ops->init(mdev); > + > + pci_set_drvdata(pdev, mdev); > + > + mdev->sdev = device_create(g_mic.mic_class, &pdev->dev, > + MKDEV(MAJOR(g_mic.mdev_id), mdev->id), NULL, "%s", mdev->name); > + if (IS_ERR(mdev->sdev)) { > + rc = PTR_ERR(mdev->sdev); > + dev_err(&pdev->dev, "device_create failed rc %d\n", rc); > + goto unmap_aper; > + } > + > + rc = sysfs_create_grou...
2006 Jan 02
0
SUMMARY--Getting Cannot compute sizeof (int) on rsync-2.6.6
...Getting Cannot compute sizeof (int) on rsync-2.6.6 Hello all, I searched the archives but could not find an answer to this. I was running configure on an RS6000 with Aix 5.1 and received the following error: checking whether sys/types.h defines makedev... no checking sys/mkdev.h usability... no checking sys/mkdev.h presence... no checking for sys/mkdev.h... no checking sys/sysmacros.h usability... yes checking sys/sysmacros...
2020 Feb 18
2
[PATCH] vhost: introduce vDPA based backend
...+ v->virtio_id = ops->get_device_id(vdpa); > + > + mutex_lock(&vhost_vdpa.mutex); > + > + minor = vhost_vdpa_alloc_minor(v); > + if (minor < 0) { > + r = minor; > + goto err_alloc_minor; > + } > + > + d = device_create(vhost_vdpa.class, NULL, > + MKDEV(MAJOR(vhost_vdpa.devt), minor), > + v, "%d", vdpa->index); > + if (IS_ERR(d)) { > + r = PTR_ERR(d); > + goto err_device_create; > + } > + I can't understand what this messing around with major/minor numbers does. Without allocating a cdev via cdev_add/etc t...
2020 Feb 18
2
[PATCH] vhost: introduce vDPA based backend
...+ v->virtio_id = ops->get_device_id(vdpa); > + > + mutex_lock(&vhost_vdpa.mutex); > + > + minor = vhost_vdpa_alloc_minor(v); > + if (minor < 0) { > + r = minor; > + goto err_alloc_minor; > + } > + > + d = device_create(vhost_vdpa.class, NULL, > + MKDEV(MAJOR(vhost_vdpa.devt), minor), > + v, "%d", vdpa->index); > + if (IS_ERR(d)) { > + r = PTR_ERR(d); > + goto err_device_create; > + } > + I can't understand what this messing around with major/minor numbers does. Without allocating a cdev via cdev_add/etc t...
2005 Jan 11
17
[Fwd: Installing from distribution CDs]
Sorry, hit send instead of attach again. Rest of patches included. -- Anthony Liguori Samba, Linux/Windows Interoperability Linux Technology Center (LTC) - IBM Austin E-mail: aliguori@us.ibm.com Phone: (512) 838-1208 Tie Line: 678-1208
2020 Feb 19
0
[PATCH] vhost: introduce vDPA based backend
...> + > > + mutex_lock(&vhost_vdpa.mutex); > > + > > + minor = vhost_vdpa_alloc_minor(v); > > + if (minor < 0) { > > + r = minor; > > + goto err_alloc_minor; > > + } > > + > > + d = device_create(vhost_vdpa.class, NULL, > > + MKDEV(MAJOR(vhost_vdpa.devt), minor), > > + v, "%d", vdpa->index); > > + if (IS_ERR(d)) { > > + r = PTR_ERR(d); > > + goto err_device_create; > > + } > > + > > I can't understand what this messing around with major/minor numbers > does....
2017 Mar 01
3
[PATCH supermin 0/2] Use AC_HEADER_MAJOR to find definitions of major, minor, makedev.
Quite a complex fix in the end, see the comment in the second commit. Rich.
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...- ret = copy_single_xattr(trans, root, objectid, - entry, data, datalen); - if (ret) - goto out; - entry = EXT2_EXT_ATTR_NEXT(entry); - } -out: - if (buffer != NULL) - free(buffer); - if ((void *)ext2_inode != inode_buf) - free(ext2_inode); - return ret; -} -#define MINORBITS 20 -#define MKDEV(ma, mi) (((ma) << MINORBITS) | (mi)) - -static inline dev_t old_decode_dev(u16 val) -{ - return MKDEV((val >> 8) & 255, val & 255); -} - -static inline dev_t new_decode_dev(u32 dev) -{ - unsigned major = (dev & 0xfff00) >> 8; - unsigned minor = (dev & 0xff) | ((dev...
2011 Apr 05
3
3.5 kernel panic on boot
Yes, I know 3.5 is old. However in this case it's required for a legacy app. a fresh install get's me: kmod: failed to exec /sbin/modprobe -s -k block-major-104, errno = 2 followed by: VFS: Cannot open root device "cciss/c0d0p2" or 68:02 The system is an HP DL380 G4. any thought on what could cause this? the rescue system is able to mount the disk and grub-install
2005 Feb 17
0
[Bug 2357] New: error when compiling rsync under Windows Services for Unix
...ReportedBy: happyspaceinvader@btopenworld.com QAContact: rsync-qa@samba.org Error: "undefined reference to `_makedev'" occurs when compiling under Windows Services for Unix 3.5. To remedy, simply edit flist.c and change every occurrence of 'makedev' to 'mkdev'. Once you run make again, it compiles fine and runs on Windows with no problems (so far). -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
2006 May 26
1
DO NOT REPLY [Bug 3806] New: makedev has 3 arguments in qnx
...makedev(0,a,b) and then replaced makedev with MAKEDEV in the file flist.c The code compiled and appears to be working properly. So it would be good to add a test to the configure script that tests for the 3 argument form of makedev and sets the define shown above accordingly and also handles the mkdev define mentioned in bug report 2357 (https://bugzilla.samba.org/show_bug.cgi?id=2357) that is currently handled. Anyway hope this helps someone. Adrian -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA c...
2005 Dec 29
0
AIX 5L 5.3 Error after Compiling the SAMBA 3.0.21.0
....loader section symbols with the > 'dump -Tv' command. > > do any one can help me? > > Yes. try the following: $ lsdev -Cc posix_aio posix_aio0 Available Posix Asynchronous I/O If the above says "Defined" instead of "Available": $ mkdev -l posix_aio0 posix_aio0 Available Retry your commands. Cheers, Bill
2019 Oct 16
0
[ANNOUNCE] libdrm 2.4.100
...intel: sync i915_pciids.h with kernel Emil Velikov (1): *-symbols-check: use normal shell over bash Eric Engestrom (7): xf86drm: dedupe `#define`s xf86drm: use max size of drm node name instead of arbitrary size xf86drm: dedupe drmGetDeviceName() logic meson: fix sys/mkdev.h detection on Solaris *-symbols-check: let meson figure out how to execute the scripts RELEASING: update instructions to use meson instead of autotools libdrm: remove autotools support Flora Cui (3): tests/amdgpu: fix for dispatch/draw test tests/amdgpu: add gpu rese...