Search Results

Search: Posts Made By: Yifan_Guo
Forum: Programming 03-25-2005
4,509
Posted By Yifan_Guo
I checked under directory /proc/pid/ and there is...
I checked under directory /proc/pid/ and there is no such file called "psinfo."

There is a file called stat but that does not contain the information on the effective user and group id and names....
Forum: Programming 03-24-2005
4,509
Posted By Yifan_Guo
getting certain info for all processes currently running
i am writing a utility that displays information about all the running processes in the /proc directory.

I do not know how to get the following information for each of the processes in the /proc...
Forum: Programming 03-19-2005
2,267
Posted By Yifan_Guo
Using make utility to create an mini-app
The following is my makefile. When I run "make", it gives me a bunch of error. I've compiled each file separately and there are no compilation errors.

The target is "monprc". Have a look below: ...
Forum: Programming 03-14-2005
4,162
Posted By Yifan_Guo
ok thx for ur help. I got it but it took me 4...
ok thx for ur help. I got it but it took me 4 hours and I believe there's a better way to do it but im busy as it is so dont have time to figure it out. I wrote a really stupid method and basically...
Forum: Programming 03-12-2005
4,162
Posted By Yifan_Guo
C String manipulation/conversion help
Hi,

I need to be able to take an unsigned long value and convert it to a string that is separted by commas.

So for example, if i have the unsigned long value 1372516, I'm supposed to somehow...
Forum: Programming 03-11-2005
16,437
Posted By Yifan_Guo
Understanding the purpose of dup/dup2
I'm having difficulty understanding the purposes of using dup/dup2 when involving forks.

for example, if we call fork() once, that is, we are creating a child process. In what cases would we need...
Forum: Programming 03-11-2005
4,614
Posted By Yifan_Guo
thanks a lot. It works.
thanks a lot. It works.
Forum: Programming 03-02-2005
4,614
Posted By Yifan_Guo
1) The inode number is from the struct dirent and...
1) The inode number is from the struct dirent and it is of type ino_t. What exactly is ino_t? If my inode number is 25 for example, can I compare an integer to something of type ino_t?

2) Also,...
Forum: Programming 03-02-2005
4,614
Posted By Yifan_Guo
Ignoring symbolic/hard links while scanning through a directory
Hi,

I am writing a unix system utility that is supposed to scan through a directory, collecting
information about the files and subdirectories. That part is going well.

The tricky part is that...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 04:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy