-1

I'm a student of DLUT. Recently I read the code of the telex project. While I am reading code, i met

st->client_conn = ioctl( fake_listen_sock, 0xFACE, &s_st );

enter image description here

code link- line: 331

I think ioctl is used to call the function "fake_accept_ioctl". But I don't understand what the "0xFACE" stands for here. Is there any correlation between the "0xFACE" and the function "fake_accept_ioctl"(there is no any configuration about that)? I have searched for a long time, but still have no idea.

Nayana_Das
  • 1,789
  • 4
  • 23
  • 48
loot
  • 1

1 Answers1

0

ioctl() which means "input-output control" is a kind of device-specific system call. Refer ioctl-linux-device-driver here Its explained really well there. Refer ioctl()man page also.

Community
  • 1
  • 1
jjm
  • 431
  • 3
  • 19