* directories for newbies
@ 2002-07-21 4:11 danny
[not found] ` <20020721164957.GA16367@satyr.sylvan.com>
0 siblings, 1 reply; 11+ messages in thread
From: danny @ 2002-07-21 4:11 UTC (permalink / raw)
To: gcc gnu
Hey Now Gcc People,
I'm an old borland dos dude. For directory listing I'm used to findfirst
and findnext. I was looking around the gcc site for linux instructions
but could not find any. I bet there right under my nose but I don't
c'em. Basically I wish for an interactive web page that has all the
standard functions used for linux in gcc.
Any one know of where I should go?
Thanks
Danny
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
[not found] ` <20020721164957.GA16367@satyr.sylvan.com>
@ 2002-07-21 13:00 ` danny
[not found] ` <20020721203537.GA20277@satyr.sylvan.com>
0 siblings, 1 reply; 11+ messages in thread
From: danny @ 2002-07-21 13:00 UTC (permalink / raw)
To: Kayvan A. Sylvan, gcc gnu
Hey Now That helps,
What I'm really looking for is documentation for these functions and many others.
Any place on line that any one knows of?
Thanks
Danny
"Kayvan A. Sylvan" wrote:
> On Sun, Jul 21, 2002 at 03:42:38AM -0700, danny wrote:
> > Hey Now Gcc People,
> >
> > I'm an old borland dos dude. For directory listing I'm used to findfirst
> > and findnext. I was looking around the gcc site for linux instructions
> > but could not find any. I bet there right under my nose but I don't
> > c'em. Basically I wish for an interactive web page that has all the
> > standard functions used for linux in gcc.
> >
> > Any one know of where I should go?
> >
> > Thanks
> > Danny
> >
> >
>
> opendir(), readdir(), etc.
>
> --
> Kayvan A. Sylvan | Proud husband of | Father to my kids:
> Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89)
> http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
[not found] ` <20020721203537.GA20277@satyr.sylvan.com>
@ 2002-07-21 18:41 ` danny
2002-07-21 20:15 ` H.S.Rai
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: danny @ 2002-07-21 18:41 UTC (permalink / raw)
To: Kayvan A. Sylvan, gcc gnu
Hey Kayvan,
That helped too. Now I need a function that will let me determine the attributes of a
file. Specifically, I wanna know if a file is a directory or not. In the dos world
there was a program called dos_atrib. U got one like that for linux?
Also what I'd really like is some online manual that grouped all the standard lib
functions into different categories. Such as file management, networking, disk
management, strings, etc. Anything like that around?
One last thing on my wish list. A good debugger. Does linux have a standard debugger
already installed on my system? Any thoughts?
Thanks
Danny
"Kayvan A. Sylvan" wrote:
> On Sun, Jul 21, 2002 at 12:30:19PM -0700, danny wrote:
> > Hey Now That helps,
> >
> > What I'm really looking for is documentation for these functions and many others.
> > Any place on line that any one knows of?
> >
> > Thanks
> > Danny
> >
>
> try "man opendir", "man readdir", etc.
>
> --
> Kayvan A. Sylvan | Proud husband of | Father to my kids:
> Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89)
> http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
2002-07-21 18:41 ` danny
@ 2002-07-21 20:15 ` H.S.Rai
2002-07-21 20:41 ` danny
2002-07-22 6:32 ` Ish Rattan
2002-08-10 5:02 ` Nix
2 siblings, 1 reply; 11+ messages in thread
From: H.S.Rai @ 2002-07-21 20:15 UTC (permalink / raw)
To: gcc gnu; +Cc: danny
Yesterday at 6:10pm -0700 danny wrote:
> Does linux have a standard debugger
gdb
This is GNU debugger. man gdb for detail.
--
H.S.Rai
:
####[ Linux One Stanza Tip (LOST) ]###########################
Sub : Unix to DOS conversion (#1) LOST #219
If you have vim editor installed, the following script will do
Unix (text file) to DOS conversion:
#!/bin/sh # Save u2d, chmod +x u2d
vim -c ":set ff=dos" -c ":wq" $1 # Usage: u2d filename.txt
####<binand@cysphere.com>#####################################
:
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
2002-07-21 20:15 ` H.S.Rai
@ 2002-07-21 20:41 ` danny
0 siblings, 0 replies; 11+ messages in thread
From: danny @ 2002-07-21 20:41 UTC (permalink / raw)
To: gcc gnu
Hey Now that helps thanks.
I'm look for a function to get me the attributes of a file. Such as is
the file a directory or not. Any ideas?
Thanks
Danny
"H.S.Rai" wrote:
> Yesterday at 6:10pm -0700 danny wrote:
>
> > Does linux have a standard debugger
>
> gdb
>
> This is GNU debugger. man gdb for detail.
>
> --
> H.S.Rai
>
> :
> ####[ Linux One Stanza Tip (LOST) ]###########################
>
> Sub : Unix to DOS conversion (#1) LOST #219
>
> If you have vim editor installed, the following script will do
> Unix (text file) to DOS conversion:
> #!/bin/sh # Save u2d, chmod +x u2d
> vim -c ":set ff=dos" -c ":wq" $1 # Usage: u2d filename.txt
>
> ####<binand@cysphere.com>#####################################
> :
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
2002-07-21 18:41 ` danny
2002-07-21 20:15 ` H.S.Rai
@ 2002-07-22 6:32 ` Ish Rattan
2002-07-22 6:37 ` Nelson Guedes Paulo Junior
2002-08-10 5:02 ` Nix
2 siblings, 1 reply; 11+ messages in thread
From: Ish Rattan @ 2002-07-22 6:32 UTC (permalink / raw)
To: gcc gnu
On Sun, 21 Jul 2002, danny wrote:
> Hey Kayvan,
>
> That helped too. Now I need a function that will let me determine the attributes of a
> file. Specifically, I wanna know if a file is a directory or not. In the dos world
> there was a program called dos_atrib. U got one like that for linux?
All this is domain of the undelying OS (Linux) and has nothing to do with
gcc..
-ishwar
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
2002-07-22 6:32 ` Ish Rattan
@ 2002-07-22 6:37 ` Nelson Guedes Paulo Junior
0 siblings, 0 replies; 11+ messages in thread
From: Nelson Guedes Paulo Junior @ 2002-07-22 6:37 UTC (permalink / raw)
To: Ish Rattan; +Cc: gcc gnu
Try to read some book on Linux....
Linux is ** VERY ** diferent than DOS....
Try http://www.linuxdoc.org first... There you'll have more references on
books, tutorials, and such thinks....
This list is for the compiler, not for general programming or Linux
specific ones...
[]'s
-----
Nelson Guedes Paulo Junior
E-mail: <npaulo@linux.ime.usp.br> UIN: 2489382 (Tender [:alpha:]*)
"LAPTOPirose é a doença causada pela urina do mouse"
On Mon, 22 Jul 2002, Ish Rattan wrote:
> On Sun, 21 Jul 2002, danny wrote:
>
> > Hey Kayvan,
> >
> > That helped too. Now I need a function that will let me determine the attributes of a
> > file. Specifically, I wanna know if a file is a directory or not. In the dos world
> > there was a program called dos_atrib. U got one like that for linux?
> All this is domain of the undelying OS (Linux) and has nothing to do with
> gcc..
>
> -ishwar
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
2002-07-21 18:41 ` danny
2002-07-21 20:15 ` H.S.Rai
2002-07-22 6:32 ` Ish Rattan
@ 2002-08-10 5:02 ` Nix
2 siblings, 0 replies; 11+ messages in thread
From: Nix @ 2002-08-10 5:02 UTC (permalink / raw)
To: danny; +Cc: gcc gnu
On Mon, 22 Jul 2002, danny@3rdplanetsoftware.com moaned:
> Also what I'd really like is some online manual that grouped all the standard lib
> functions into different categories. Such as file management, networking, disk
> management, strings, etc. Anything like that around?
There's a manual/info book on the C library:
info libc
(which can also be typeset):
and at <http://www.opengroup.org/onlinepubs/007904975/nfindex.html> is
the Base Definitions for POSIX, which is the standard that you should
actually be following when writing portable code :)
By no means everything is in there (e.g. you won't find JPEG readers or
graphical stuff in there), but the core stuff is.
--
`There's something satisfying about killing JWZ over and over again.'
-- 1i, personal communication
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
2002-07-22 1:20 ` danny
@ 2002-07-22 2:39 ` Andrea 'Fyre Wyzard' Bocci
0 siblings, 0 replies; 11+ messages in thread
From: Andrea 'Fyre Wyzard' Bocci @ 2002-07-22 2:39 UTC (permalink / raw)
To: danny; +Cc: gcc-help
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
Hi Danny,
>Thanks for the stat function. U referred to section 1 & 2. What book is
>this?
It's not a book, it's the man(ual) pages you get on most Unix system.
To get the documentation for a program or library function, if the people
who provided those also provided the man pages, you can usually simply type
from the prompt
man name_of_the_function
The man pages are divided in sections, one for user programs, one for
system programs, one for C library routines, one for games, etc...
If a keyword is used in more than one section, you can chose which section
to search specifying te number on the command line, like
man 2 name_of_the_function
Hope this helps,
fwyzard
[-- Attachment #2: Type: application/pgp-signature, Size: 222 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: directories for newbies
2002-07-22 0:57 ` Rupert Wood
@ 2002-07-22 1:20 ` danny
2002-07-22 2:39 ` Andrea 'Fyre Wyzard' Bocci
0 siblings, 1 reply; 11+ messages in thread
From: danny @ 2002-07-22 1:20 UTC (permalink / raw)
To: Rupert Wood; +Cc: gcc-help
Hey Now Rupert,
Thanks for the stat function. U referred to section 1 & 2. What book is
this?
Thanks
Danny
Rupert Wood wrote:
> Danny wrote:
>
> > I'm look for a function to get me the attributes of a file. Such as is
> > the file a directory or not. Any ideas?
>
> Stat(); test for the S_IFDIR bit set in st_mode. See the manual pages
> for stat and the mknod function (in section 2 - not the mknod utility in
> section 1).
>
> Rup.
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: directories for newbies
[not found] <616BE6A276E3714788D2AC35C40CD18D71B3A6@whale.softwire.co.uk>
@ 2002-07-22 0:57 ` Rupert Wood
2002-07-22 1:20 ` danny
0 siblings, 1 reply; 11+ messages in thread
From: Rupert Wood @ 2002-07-22 0:57 UTC (permalink / raw)
To: 'danny'; +Cc: gcc-help
Danny wrote:
> I'm look for a function to get me the attributes of a file. Such as is
> the file a directory or not. Any ideas?
Stat(); test for the S_IFDIR bit set in st_mode. See the manual pages
for stat and the mknod function (in section 2 - not the mknod utility in
section 1).
Rup.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-08-10 12:02 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-21 4:11 directories for newbies danny
[not found] ` <20020721164957.GA16367@satyr.sylvan.com>
2002-07-21 13:00 ` danny
[not found] ` <20020721203537.GA20277@satyr.sylvan.com>
2002-07-21 18:41 ` danny
2002-07-21 20:15 ` H.S.Rai
2002-07-21 20:41 ` danny
2002-07-22 6:32 ` Ish Rattan
2002-07-22 6:37 ` Nelson Guedes Paulo Junior
2002-08-10 5:02 ` Nix
[not found] <616BE6A276E3714788D2AC35C40CD18D71B3A6@whale.softwire.co.uk>
2002-07-22 0:57 ` Rupert Wood
2002-07-22 1:20 ` danny
2002-07-22 2:39 ` Andrea 'Fyre Wyzard' Bocci
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).