Re: Initialize kernel memory

1998-10-28 Thread Henrik Nordstrom
SookYoung Kim wrote: struct foo *p; Is it different from memset(p,0,sizeof(*p)) and memset(p,0,sizeof(struct foo)) ? They are the same. The type of "*p" is "struct foo". I prefer to write this way since it allows me to change "struct foo *p" to "struct foo2 *p" without changing every

Re: emacs problem

1998-10-28 Thread Vitaly Fedrushkov
Good $daytime, Date: Tue, 27 Oct 1998 15:23:17 +0800 From: Song Lining [EMAIL PROTECTED] To: Linux C Programming List [EMAIL PROTECTED] Subject: emacs problem I've been trying to use emacs to edit my C++ code, and I've used M-x auto-fill-mode to turn on the autofill mode, when I want to

Re: TSRs

1998-10-28 Thread Glynn Clements
Henrik Nordstrom wrote: There is a similar problem for descriptors 1 and 2, particularly in setuid programs. True. It isn't really a problem for daemons (deamons are usually not suid, and started in a controlled environment), but for suid programs yes. What about this code: [snip]

Re: Passing arguments to functions

1998-10-28 Thread Glynn Clements
holotko wrote: I saw something the other day which, after all the years I have been working with C. I had never seen before, (or at least never paid much attention to). The idea involved passing arguments to functions by reference, so that a reference to the variable/argument is passed to

ODBC Program Error in WIN'NT scheduled by AT command

1998-10-28 Thread Lucas Leonardo
Sorry about this question that has no relationship with LINUX Programming. I developed a program for Win' NT that use ODBC and have GUI. The program can work well when executed in interactive (from Win' NT desktop) but get error when I schedule it using AT command. It get error about the ODBC

changing time on a symlink

1998-10-28 Thread Salil Kumar
Hi, How can we change the time on a sym link through a C program ? Thanks, -Salil -