syscalls.h or equivalent in cygwin or Linux

J

Jan van Mansum

Hello group,

I am reading Chapter 8 from "The C Programming Language" about
interfacing with the Unix system. I wanted to try out some of the
examples on Cygwin. However, the header "syscalls.h" is not found in
Cygwin. I have tried to locate the declarations for the read and write
functions I was trying to use, but no luck.

I know that "syscalls.h" is not part of standard C. I also tried on
Linux, just to make sure that this is not a Cygwin-only problem.

Thanks for any help,
Regards,
Jan van Mansum.
 
J

Jack Klein

Hello group,

I am reading Chapter 8 from "The C Programming Language" about
interfacing with the Unix system. I wanted to try out some of the
examples on Cygwin. However, the header "syscalls.h" is not found in
Cygwin. I have tried to locate the declarations for the read and write
functions I was trying to use, but no luck.

I know that "syscalls.h" is not part of standard C. I also tried on
Linux, just to make sure that this is not a Cygwin-only problem.

Thanks for any help,
Regards,
Jan van Mansum.

System calls are, by definition, specific to the operating system and
not part of the C language. As such they are off-topic and not
discussed here. You need to ask about them in platform specific
groups, such as and
 
R

Régis Troadec

Jan van Mansum said:
Hello group,
Hi,

I am reading Chapter 8 from "The C Programming Language" about
interfacing with the Unix system. I wanted to try out some of the
examples on Cygwin. However, the header "syscalls.h" is not found in
Cygwin. I have tried to locate the declarations for the read and write
functions I was trying to use, but no luck.

Read chapter 8 several times, you'll find that you must provide the
"syscalls.h" header.

Regis
 
J

Jan van Mansum

Jan said:
Hello group,

I am reading Chapter 8 from "The C Programming Language" about
interfacing with the Unix system. I wanted to try out some of the
examples on Cygwin. However, the header "syscalls.h" is not found in
Cygwin. I have tried to locate the declarations for the read and write
functions I was trying to use, but no luck.

I know that "syscalls.h" is not part of standard C. I also tried on
Linux, just to make sure that this is not a Cygwin-only problem.

Thanks for any help,
Regards,
Jan van Mansum.

OK, it seems my copy of The Book is a bit outdated. Anyway I figured out
that the calls I was looking for are defined in <sys/unistd.h>.

Thanks anyway,
Jan van Mansum.
 
J

Jan van Mansum

Read chapter 8 several times, you'll find that you must provide the
"syscalls.h" header.

Regis

You're right, I didn't read it well. Thanks,
regards,
Jan van Mansum.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top