Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 157906 Details for
Bug 236736
No paper-out notification for USB devices
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
cups-usb-paperout.patch
cups-usb-paperout.patch (text/plain), 1.15 KB, created by
Tim Waugh
on 2007-06-26 14:44:31 UTC
(
hide
)
Description:
cups-usb-paperout.patch
Filename:
MIME Type:
Creator:
Tim Waugh
Created:
2007-06-26 14:44:31 UTC
Size:
1.15 KB
patch
obsolete
>--- cups-1.2.10/backend/usb-unix.c.usb-paperout 2007-06-26 15:11:14.000000000 +0100 >+++ cups-1.2.10/backend/usb-unix.c 2007-06-26 15:16:23.000000000 +0100 >@@ -39,6 +39,11 @@ > #include "ieee1284.c" > #include <sys/select.h> > >+#ifdef __linux >+#include <sys/ioctl.h> >+#include <linux/lp.h> >+#endif /* __linux */ >+ > > /* > * Local functions... >@@ -308,7 +313,19 @@ > if (!strncmp(uri, "usb:/dev/", 9)) > #ifdef __linux > { >- return (open(uri + 4, O_RDWR | O_EXCL)); >+ fd = open(uri + 4, O_RDWR | O_EXCL); >+ >+ if (fd != -1) >+ { >+ /* >+ * Tell the driver to return from write() with errno==ENOSPACE >+ * on paper-out. >+ */ >+ unsigned int t = 1; >+ ioctl (fd, LPABORT, &t); >+ } >+ >+ return fd; > } > else if (!strncmp(uri, "usb://", 6)) > { >@@ -374,7 +391,14 @@ > if (!strcmp(uri, device_uri)) > { > /* >- * Yes, return this file descriptor... >+ * Yes, tell the driver to return from write() with >+ * errno==ENOSPACE on paper-out. >+ */ >+ unsigned int t = 1; >+ ioctl (fd, LPABORT, &t); >+ >+ /* >+ * Return this file descriptor... > */ > > fprintf(stderr, "DEBUG: Printer using device file \"%s\"...\n", device);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236736
:
153022
|
155659
|
156865
|
157670
| 157906