Description:
Q&A for people programming under Unix.
|
|
|
Using Subversion (svn) to manage website files?
|
| |
[Apologies if you have seen this already: I didn't get any replies to
my post in more local groups, so re-posting to worldwide groups.
Apologies in particular if this is only tenuously on-topic in the
programming groups, more a question about a programming utility, rather
than about programming itself..]... more »
|
|
protoent struct example
|
| |
Can someone show me how to use the struct protoent from netdb.h ? I believe UDP port 69 is tftp but my /etc/protocols list doesn't list it. I want to use getprotoentbynumber() and any other functions needed to read the database.
stuck
Bill
|
|
Best Dropbox alternative with 10GB free space!!
|
| |
There is a new cloud storage start up copy.com. Similar to Dropbox but more user friendly and intuitive design. Moreover you will get free 10 GB easily. 5GB on signup and 5GB if you use the following referral link.
* hit the referral link [link]
* create an account (5GB)
* install client on any device (5GB)... more »
|
|
Write() to stdin works??
|
| |
System is Linux with gcc version 4.7.1 (Debian 4.7.1-2) and
the following code writes to stdin.
...
int main()
{
if (write(0, "Hello world!\n", 13) != 13)
fprintf(stderr, "Write failed\n");
return 0;
...
Any pointers will be appreciated.
-ishwar
|
|
Pixmap vs double buffering in Xlib
|
| |
Hi
It seems to be possible to attain flicker free animation in Xlib either
using double buffering via the Xdbe extention or by writing everything to
a pixmap then using XCopyArea(). Does anyone have any idea or experience about which is better or more efficient for this purpose? I know some Window... more »
|
|
HTML version of SUSv4 updated to include TC1
|
| |
The Open Group announced today that the freely available HTML version
of the Base volumes of the Single UNIX Specification, version 4 (aka
POSIX.1-2008) have been updated to a 2013 edition that incorporates
Technical Corrigendum 1.
The online version has been updated in place, so those of you who... more »
|
|
Reading to the end of medium
|
| |
Consider the following code extract to read a file:
int input_fd;
char *input_buf; /* Buffer is malloc()ed elsewhere */
ssize_t input_len;
off_t offset = 0;
/* Open input file */
if ((input_fd = open(filename, O_RDONLY)) == -1) {
fprintf(stderr, "Error opening input file \"%s\": %s\n", filename, strerror(errno));... more »
|
|
Question about TIOCSTI (permissions)
|
| |
Under Linux (x86).
I've written a small C program to "fake" keystrokes, using TIOCSTI.
The operative line of code is:
ioctl(fd,TIOCSTI,"X");
(running as non-root) It works fine if fd refers to the current tty, but
fails (with "Operation not permitted") if fd refers to some other tty EVEN... more »
|
|
Getting/Monitoring Control Signal Non-Modem lines
|
| |
How do you monitor or getting the status bit of a RS-232 line on a non-modem controlled line; as in TIOCMGET in ioctl () , I am looking to get a similar status of signal as in a modem line like TIOCM_DTR.
I’ve looked at the POSIX serial guide and other place on net , but they all speak of modem control line, and my lines are not modem controlled lines. ie... more »
|
|
|